Fossil SCM
Rig the "fossil sql" command so that it always comes up in --quote mode. This mode is more useful for Fossil repos dues to the many binary blobs.
Commit
953aa7b4f5987d160555b937759e9b4adbdd112b5227b8b079637f8ec60659e3
Parent
ccf50f06192f86a…
1 file changed
+2
-1
+2
-1
| --- src/sqlcmd.c | ||
| +++ src/sqlcmd.c | ||
| @@ -298,9 +298,10 @@ | ||
| 298 | 298 | #ifndef _WIN32 |
| 299 | 299 | linenoiseSetMultiLine(1); |
| 300 | 300 | #endif |
| 301 | 301 | atexit(sqlcmd_atexit); |
| 302 | 302 | g.zConfigDbName = zConfigDb; |
| 303 | - sqlite3_shell(g.argc-1, g.argv+1); | |
| 303 | + g.argv[1] = "-quote"; | |
| 304 | + sqlite3_shell(g.argc, g.argv); | |
| 304 | 305 | sqlite3_cancel_auto_extension((void(*)(void))sqlcmd_autoinit); |
| 305 | 306 | fossil_close(0, noRepository); |
| 306 | 307 | } |
| 307 | 308 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -298,9 +298,10 @@ | |
| 298 | #ifndef _WIN32 |
| 299 | linenoiseSetMultiLine(1); |
| 300 | #endif |
| 301 | atexit(sqlcmd_atexit); |
| 302 | g.zConfigDbName = zConfigDb; |
| 303 | sqlite3_shell(g.argc-1, g.argv+1); |
| 304 | sqlite3_cancel_auto_extension((void(*)(void))sqlcmd_autoinit); |
| 305 | fossil_close(0, noRepository); |
| 306 | } |
| 307 |
| --- src/sqlcmd.c | |
| +++ src/sqlcmd.c | |
| @@ -298,9 +298,10 @@ | |
| 298 | #ifndef _WIN32 |
| 299 | linenoiseSetMultiLine(1); |
| 300 | #endif |
| 301 | atexit(sqlcmd_atexit); |
| 302 | g.zConfigDbName = zConfigDb; |
| 303 | g.argv[1] = "-quote"; |
| 304 | sqlite3_shell(g.argc, g.argv); |
| 305 | sqlite3_cancel_auto_extension((void(*)(void))sqlcmd_autoinit); |
| 306 | fossil_close(0, noRepository); |
| 307 | } |
| 308 |