diff options
author | drh <drh@noemail.net> | 2011-12-21 14:42:29 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2011-12-21 14:42:29 +0000 |
commit | f12b3f609f08e923833bc6c37863f11a82582c03 (patch) | |
tree | eac19e5f30021873963f5f39db83917425ab8931 /src/main.c | |
parent | f694aa6454630efdb04a7cb9f0d91c0fe5376770 (diff) | |
download | sqlite-f12b3f609f08e923833bc6c37863f11a82582c03.tar.gz sqlite-f12b3f609f08e923833bc6c37863f11a82582c03.zip |
Add the ability to enable or disable SQLITE_IOCAP_ZERO_DAMAGE using a URI
parameter for both unix and windows. Add a file-control to query or disable
the ZERO_DAMAGE setting. Add the -uri option to the "sqlite3" TCL command
in tclsqlite3.c. Allow the sqlite3_uri_parameter() interface to accept a
NULL pointer for its first parameter.
FossilOrigin-Name: c83627b73285f883719845c1b9fe85f378f28dd2
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c index 690b73c2e..ea64d8be9 100644 --- a/src/main.c +++ b/src/main.c @@ -2977,6 +2977,7 @@ int sqlite3_test_control(int op, ...){ ** returns a NULL pointer. */ const char *sqlite3_uri_parameter(const char *zFilename, const char *zParam){ + if( zFilename==0 ) return 0; zFilename += sqlite3Strlen30(zFilename) + 1; while( zFilename[0] ){ int x = strcmp(zFilename, zParam); |