Diff
Not logged in

Differences From:

File src/db.c part of check-in [8b630bb57a] - Provide --user-override option on the ci command and the --date-override option on the new command. Make a correction to the file format document. by drh on 2009-08-08 22:40:28. [view]

To:

File src/db.c part of check-in [6b0196aeb8] - The FOSSIL_VFS environment variable, if it exists, determines which SQLite VFS is used. Use "export FOSSIL_VFS=unix-none" or "export FOSSIL_VFS=unix-dotfile" to work-around non-posix filesystems such as AFS on unix systems. by drh on 2009-08-09 17:29:25. [view]

@@ -630,9 +630,17 @@
 #ifdef __MINGW32__
   zDbName = mbcsToUtf8(zDbName);
 #endif
   if( !g.db ){
-    int rc = sqlite3_open(zDbName, &g.db);
+    int rc;
+    const char *zVfs;
+
+    zVfs = getenv("FOSSIL_VFS");
+    rc = sqlite3_open_v2(
+         zDbName, &g.db,
+         SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE,
+         zVfs
+    );
     if( rc!=SQLITE_OK ){
       db_err(sqlite3_errmsg(g.db));
     }
     sqlite3_busy_timeout(g.db, 5000);