Differences From Artifact [c81155ddf8]:
- File src/sqlcmd.c — part of check-in [c693a3365c] at 2014-08-23 06:08:21 on branch optionalMiniz — Add miniz as a compile-time feature, leaving zlib as the default compression library. All makefiles should build. The DMC and PellesCGMake makefiles are not yet supported with miniz. Also, when using miniz, OpenSSL support for zlib is disabled in the MinGW makefile. (user: mistachkin size: 4800) [more...]
To Artifact [221f08cdc7]:
- File src/sqlcmd.c — part of check-in [b8b037610f] at 2014-10-17 23:51:38 on branch trunk — Use more aggressive cleanup when coming back from the 'sqlite' command, to permit TH1 hooks to exit cleanly. (user: mistachkin size: 4929) [more...]
| ︙ | |||
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 | + + + + |
*/
void cmd_sqlite3(void){
extern int sqlite3_shell(int, char**);
db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
db_close(1);
sqlite3_shutdown();
sqlite3_shell(g.argc-1, g.argv+1);
sqlite3_cancel_auto_extension((void(*)(void))sqlcmd_autoinit);
g.db = 0;
g.zMainDbType = 0;
g.repositoryOpen = 0;
g.localOpen = 0;
}
/*
** 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){
|
| ︙ |