You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ apsw database.sqlite
SQLite version 3.8.7.1 (APSW 3.8.6-r1)
Enter ".help"for instructions
Enter SQL statements terminated with a ";"
sqlite> SELECT * FROM sqlite_master;
…output…
sqlite> -- SELECT * FROM sqlite_master;
..>;
sqlite>
Ouch!
This is important because I have commented out queries in .sqliterc and apsw shell has problems reading them.
The text was updated successfully, but these errors were encountered:
This is because I use sqlite3_complete to tell if there is complete input and it says no when there is a comment. The sqlite shell doesn't have the same problem so I need to investigate what they do differently.
I can't think of another way around this, short of writing a SQL parser to figure it out just like the shell did. A pure comment statement can be detected by sqlite3_prepare returning NULL, but it is easy to get outfoxed eg with SELECT 3; /* unterminated comment
Ouch!
This is important because I have commented out queries in .sqliterc and apsw shell has problems reading them.
The text was updated successfully, but these errors were encountered: