Closed jssmith closed 6 years ago
this one is really strange. with tracing turned on it just does a single status request with SQLITE_FCNTL_POWERSAFE_OVERWRITE which is supposed to be a set, and we should return SQLITE_OK. then the parser throws a syntax error.
I tried looking at it a little bit earlier… assuming that the wrong SQL is getting built somehow.
oh, this turned out to be pretty straightforward, as the result of kind of a dumb vfs thing.
there is an open-ended fcntl called pragma. if you return SQLITE_OK, it assumes you did the work. in this case its allowing the vfs to provide the database list....not sure exactly why, so if you dont return SQLITE_NOTFOUND, it assumes there are no databases. fixed in gperf
After opening a database some of the basic shell commands are broken, e.g.: