On 7 Nov 2013, at 6:03pm, L. Wood <[email protected]> wrote: > I did a simple experiment and got an error from sqlite3_step() after renaming > the file. This is what I did: > > After the call to sqlite3_open(), I halt/sleep my program for 10 seconds to > give me ample time to rename the file. I rename the file. The subsequent > sqlite3_prepare_v2() works without errors. However, the sqlite3_step() *does* > give an error: Error code 10, "disk I/O error". This does not happen if I do > not rename the file. > > Am I missing something?
SQLite's _open() function doesn't actually open the file. It sets things up so that the first proper operation on the file can open it, when it needs to. Simon. _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

