-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
execute
didn't work when SQL ends with a comment
Calling `execute` with SQL like the following didn't work: ``` INSERT INTO t (x, y, z) VALUES (7, 7, 7); INSERT INTO t (x, y, z) VALUES (8, 8, 8); -- this is a comment at the end ``` Executing that SQL results in a `Extralite::Error: not an error` error because `prepare_multi_stmt_impl` can set `stmt` to `NULL` when SQL ends with a comment. The documentation for `sqlite3_prepare_v2` states: > If the input text contains no SQL (if the input is an empty string or a comment) then *ppStmt is set to NULL.
- Loading branch information
Showing
2 changed files
with
51 additions
and
3 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