Fossil SCM
Fix typo that prevented the --no-repository option from working.
Commit
0a2eaa5ac2a71a322f8f960805e362f38f93bb5e
Parent
b2e6a234c4d96e8…
1 file changed
+1
-1
+1
-1
| --- src/sqlcmd.c | ||
| +++ src/sqlcmd.c | ||
| @@ -198,11 +198,11 @@ | ||
| 198 | 198 | ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin; |
| 199 | 199 | ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk'); |
| 200 | 200 | */ |
| 201 | 201 | void cmd_sqlite3(void){ |
| 202 | 202 | extern int sqlite3_shell(int, char**); |
| 203 | - if( !find_option("no-repository", 0, 0)!=0 ){ | |
| 203 | + if( find_option("no-repository", 0, 0)==0 ){ | |
| 204 | 204 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 205 | 205 | db_close(1); |
| 206 | 206 | } |
| 207 | 207 | sqlite3_shutdown(); |
| 208 | 208 | sqlite3_shell(g.argc-1, g.argv+1); |
| 209 | 209 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -198,11 +198,11 @@ | |
| 198 | ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin; |
| 199 | ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk'); |
| 200 | */ |
| 201 | void cmd_sqlite3(void){ |
| 202 | extern int sqlite3_shell(int, char**); |
| 203 | if( !find_option("no-repository", 0, 0)!=0 ){ |
| 204 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 205 | db_close(1); |
| 206 | } |
| 207 | sqlite3_shutdown(); |
| 208 | sqlite3_shell(g.argc-1, g.argv+1); |
| 209 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -198,11 +198,11 @@ | |
| 198 | ** CREATE VIRTUAL TABLE temp.foci USING files_of_checkin; |
| 199 | ** SELECT * FROM foci WHERE checkinID=symbolic_name_to_rid('trunk'); |
| 200 | */ |
| 201 | void cmd_sqlite3(void){ |
| 202 | extern int sqlite3_shell(int, char**); |
| 203 | if( find_option("no-repository", 0, 0)==0 ){ |
| 204 | db_find_and_open_repository(OPEN_ANY_SCHEMA, 0); |
| 205 | db_close(1); |
| 206 | } |
| 207 | sqlite3_shutdown(); |
| 208 | sqlite3_shell(g.argc-1, g.argv+1); |
| 209 |