Skip to content

Conversation

@jjhbw
Copy link
Contributor

@jjhbw jjhbw commented Oct 26, 2020

Description of change

Check if the connection is closed before executing a query. This prevents SQLITE_MISUSE errors (https://sqlite.org/rescode.html#misuse) originating from SQLite itself, which are considered something to avoid by the SQLite authors.

Also includes a test case.

Pull-Request Checklist

  • Code is up-to-date with the master branch
  • npm run lint passes with this change
  • npm run test passes with this change
  • This pull request links relevant issues as Fixes #0000NA-no related issue
  • There are new or updated unit tests validating the change
  • Documentation has been updated to reflect this change NA; IMO this change reflects expected behaviour
  • The new commits follow conventions explained in CONTRIBUTING.md

@pleerock pleerock merged commit 5f6bbec into typeorm:master Oct 26, 2020
@jjhbw jjhbw deleted the sqlite-driver-improvements branch October 26, 2020 12:45
@imnotjames imnotjames added the hacktoberfest-accepted label hacktoberfest label Oct 26, 2020
dolsup pushed a commit to dolsup/typeorm that referenced this pull request Nov 3, 2020
zaro pushed a commit to zaro/typeorm that referenced this pull request Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted label hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants