Fossil SCM
Fix the previous fix so that it works even if TH1 hooks are disabled at compile-time.
Commit
691a64923448492cf7d711c742b2de1d748d5466
Parent
d493544369a6901…
1 file changed
+2
+2
| --- src/sqlcmd.c | ||
| +++ src/sqlcmd.c | ||
| @@ -212,11 +212,13 @@ | ||
| 212 | 212 | */ |
| 213 | 213 | void cmd_sqlite3(void){ |
| 214 | 214 | int noRepository; |
| 215 | 215 | const char *zConfigDb; |
| 216 | 216 | extern int sqlite3_shell(int, char**); |
| 217 | +#ifdef FOSSIL_ENABLE_TH1_HOOKS | |
| 217 | 218 | g.fNoThHook = 1; |
| 219 | +#endif | |
| 218 | 220 | noRepository = find_option("no-repository", 0, 0)!=0; |
| 219 | 221 | if( !noRepository ){ |
| 220 | 222 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 221 | 223 | } |
| 222 | 224 | db_open_config(1,0); |
| 223 | 225 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -212,11 +212,13 @@ | |
| 212 | */ |
| 213 | void cmd_sqlite3(void){ |
| 214 | int noRepository; |
| 215 | const char *zConfigDb; |
| 216 | extern int sqlite3_shell(int, char**); |
| 217 | g.fNoThHook = 1; |
| 218 | noRepository = find_option("no-repository", 0, 0)!=0; |
| 219 | if( !noRepository ){ |
| 220 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 221 | } |
| 222 | db_open_config(1,0); |
| 223 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -212,11 +212,13 @@ | |
| 212 | */ |
| 213 | void cmd_sqlite3(void){ |
| 214 | int noRepository; |
| 215 | const char *zConfigDb; |
| 216 | extern int sqlite3_shell(int, char**); |
| 217 | #ifdef FOSSIL_ENABLE_TH1_HOOKS |
| 218 | g.fNoThHook = 1; |
| 219 | #endif |
| 220 | noRepository = find_option("no-repository", 0, 0)!=0; |
| 221 | if( !noRepository ){ |
| 222 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 223 | } |
| 224 | db_open_config(1,0); |
| 225 |