On 4/22/15, Zsb?n Ambrus <ambrus at math.bme.hu> wrote:
>
> In that case, as you have a custom vfs, could you check if it's your
> vfs that is handling those pragmas?  The documentation at
> "http://sqlite.org/c3ref/c_fcntl_busyhandler.html#sqlitefcntlpragma";
> describes that when you run a PRAGMA statement on a database, sqlite
> will call the xFileControl method of the vfs file handle (as given in
> a sqlite3_io_methods structure) with SQLITE_FCNTL_PRAGMA as the second
> parameter.  If that method returns SQLITE_OK, then sqlite will assume
> the vfs has handled the pragma, and will not handle it itself.  This
> could cause pragmas to fail silently.

Ah - Nice insight, Ambrus.  This theory nicely covers the facts.
Thank you for thinking of this!
-- 
D. Richard Hipp
drh at sqlite.org

Reply via email to