Fossil

Check-in [691a6492]
Login

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

Overview
Comment:Fix the previous fix so that it works even if TH1 hooks are disabled at compile-time.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 691a64923448492cf7d711c742b2de1d748d5466
User & Date: drh 2017-03-07 21:43:56
Context
2017-03-08
13:01
The default SHA3 hash size is 256, not 224. Fix the comments and the (unused) default initialization in the SHA3Init() routine. check-in: 4a31a093 user: drh tags: trunk
03:22
Enhancements to TH1 related to hashing. Add the 'hash' TH1 command. Leaf check-in: 357c3c68 user: mistachkin tags: th1Hash
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
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
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);







>

>







210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
**                              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**);
#ifdef FOSSIL_ENABLE_TH1_HOOKS
  g.fNoThHook = 1;
#endif
  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);