Overview
SHA1 Hash: | 6b0196aeb874fe5f5d2f0dd5dcbb24e82b1f0cc7 |
---|---|
Date: | 2009-08-09 17:29:25 |
User: | drh |
Comment: | 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. |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/db.c from [fa41711549] to [503381e0ca].
@@ -629,11 +629,19 @@ void db_open_or_attach(const char *zDbName, const char *zLabel){ #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); db_connection_init();