Fossil

Check-in [fffcf60c]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Avoid attempting to preserve the default VFS if it has not been set.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:fffcf60cbc34bbbf775cfd7ae079c95efc65afab
User & Date: mistachkin 2013-12-10 21:15:44
Context
2013-12-11
12:06
Update the built-in SQLite to the latest version 3.8.3 alpha. check-in: faa2e9d5 user: drh tags: trunk
2013-12-10
21:15
Avoid attempting to preserve the default VFS if it has not been set. check-in: fffcf60c user: mistachkin tags: trunk
14:22
Make the default vfs survive after a sqlite3_shutdown (for "fossil sqlite" command). check-in: aa22b1b4 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqlcmd.c.

153
154
155
156
157
158
159
160
161
162
163
}

/*
** This routine is called by the patched sqlite3 command-line shell in order
** to load the name and database connection for the open Fossil database.
*/
void fossil_open(const char **pzRepoName){
  sqlite3_vfs_register(pDefaultVfs, 1);
  sqlite3_auto_extension((void(*)(void))sqlcmd_autoinit);
  *pzRepoName = g.zRepositoryName;
}







|



153
154
155
156
157
158
159
160
161
162
163
}

/*
** This routine is called by the patched sqlite3 command-line shell in order
** to load the name and database connection for the open Fossil database.
*/
void fossil_open(const char **pzRepoName){
  if( pDefaultVfs ) sqlite3_vfs_register(pDefaultVfs, 1);
  sqlite3_auto_extension((void(*)(void))sqlcmd_autoinit);
  *pzRepoName = g.zRepositoryName;
}