forked from crawshaw/sqlite
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
If a Conn is interrupted then Conn.Prep will return a Stmt with Stmt.stmt = nil. This causes SQLITE MISUSE errors to occur when any of the Bind functions are called on the Stmt. This is confusing to users as the error returned by Step is misleading and anyone using sqlite.Logger will see misleading MISUSE messages. Now we check if Stmt.stmt is not nil prior to using it in the Bind statements, which solves these issues and makes the interrupt obvious when Stmt.Step is later called. fix crawshaw#86
- Loading branch information
Showing
2 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters