Fossil

Check-in [d4935443]
Login

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

Overview
Comment:Do not run TH1 hooks on the "fossil sql" command.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: d493544369a6901038e8304528ac5e95c1f19629
User & Date: drh 2017-03-07 20:38:56
Context
2017-03-07
21:43
Fix the previous fix so that it works even if TH1 hooks are disabled at compile-time. check-in: 691a6492 user: drh tags: trunk
20:38
Do not run TH1 hooks on the "fossil sql" command. check-in: d4935443 user: drh tags: trunk
11:11
Remove RFC documentation from zlib redistribution. Motivation: bundled zlib documentation is under a potentially non-free license check-in: eea86cee user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/sqlcmd.c.

210
211
212
213
214
215
216

217
218
219
220
221
222
223
**                              all files contained in check-in X.  Example:
**                                SELECT * FROM files_of_checkin('trunk');
*/
void cmd_sqlite3(void){
  int noRepository;
  const char *zConfigDb;
  extern int sqlite3_shell(int, char**);

  noRepository = find_option("no-repository", 0, 0)!=0;
  if( !noRepository ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
  }
  db_open_config(1,0);
  zConfigDb = g.zConfigDbName;
  fossil_close(1, noRepository);







>







210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
**                              all files contained in check-in X.  Example:
**                                SELECT * FROM files_of_checkin('trunk');
*/
void cmd_sqlite3(void){
  int noRepository;
  const char *zConfigDb;
  extern int sqlite3_shell(int, char**);
  g.fNoThHook = 1;
  noRepository = find_option("no-repository", 0, 0)!=0;
  if( !noRepository ){
    db_find_and_open_repository(OPEN_ANY_SCHEMA, 0);
  }
  db_open_config(1,0);
  zConfigDb = g.zConfigDbName;
  fossil_close(1, noRepository);