]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Enhance the command-line shell with the ability to set the
authordrh <drh@noemail.net>
Mon, 19 Jan 2015 15:05:54 +0000 (15:05 +0000)
committerdrh <drh@noemail.net>
Mon, 19 Jan 2015 15:05:54 +0000 (15:05 +0000)
SQLITE_TESTCTRL_NEVER_CORRUPT flag using: ".testctrl never_corrupt 1".

FossilOrigin-Name: 824328f9833d01fc155a9d0265ef41d338cf1ffb

manifest
manifest.uuid
src/shell.c

index 976365ad63a5219ad4ce2159e420d29e69cd74a7..136cb71f94a17113994c82f4612c0e438093c489 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Eliminate\sall\suse\sof\ssprintf(),\sstrcpy()\sand\sstrcat()\sfrom\stest\slogic\sbecause\nOpenBSD\shates\sthose\sfunctions.
-D 2015-01-19T00:35:53.426
+C Enhance\sthe\scommand-line\sshell\swith\sthe\sability\sto\sset\sthe\nSQLITE_TESTCTRL_NEVER_CORRUPT\sflag\susing:\s".testctrl\snever_corrupt\s1".
+D 2015-01-19T15:05:54.471
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 5407a688f4d77a05c18a8142be8ae5a2829dd610
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -230,7 +230,7 @@ F src/random.c ba2679f80ec82c4190062d756f22d0c358180696
 F src/resolve.c f6c46d3434439ab2084618d603e6d6dbeb0d6ada
 F src/rowset.c eccf6af6d620aaa4579bd3b72c1b6395d9e9fa1e
 F src/select.c e4c38c75e36f28aed80a69a725d888751bfd53df
-F src/shell.c 4958f393be95eaf223dd51f7eb799f6c5e800060
+F src/shell.c d2d3b46701e44369dd314bd6817541c60e2c39ea
 F src/sqlite.h.in 9dfc99d6533d36d6a549c4f3f01cacc8be956ada
 F src/sqlite3.rc 992c9f5fb8285ae285d6be28240a7e8d3a7f2bad
 F src/sqlite3ext.h 17d487c3c91b0b8c584a32fbeb393f6f795eea7d
@@ -1236,7 +1236,7 @@ F tool/vdbe_profile.tcl 67746953071a9f8f2f668b73fe899074e2c6d8c1
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh 0abfd78ceb09b7f7c27c688c8e3fe93268a13b32
 F tool/win/sqlite.vsix deb315d026cc8400325c5863eef847784a219a2f
-P 7096e6c06d9a3e48d3f0d134f5f3275dde796be2
-R 7d263eb98fc5c91928b9a60626248b0a
+P 10321910990195878c0af1e94b34ae0cdc0cb31b
+R 1842536563f5d094d57991d4a5161858
 U drh
-Z 962c42be5c17a76b63845109393eb3c7
+Z b40ce48cd42cd2dd2358d0667c50be5c
index fbfc967ad3d23da03f7becf052ba0fab5d9b4966..a042232dda36b1bd4d3df51f24568bb976c9f9e1 100644 (file)
@@ -1 +1 @@
-10321910990195878c0af1e94b34ae0cdc0cb31b
\ No newline at end of file
+824328f9833d01fc155a9d0265ef41d338cf1ffb
\ No newline at end of file
index 5643e4f242cbc4a0ea5a280488e4937786877deb..1d9c80798cdb734c4ee4ea2c267d841f17e8adbd 100644 (file)
@@ -3535,6 +3535,7 @@ static int do_meta_command(char *zLine, ShellState *p){
       { "iskeyword",             SQLITE_TESTCTRL_ISKEYWORD              },
       { "scratchmalloc",         SQLITE_TESTCTRL_SCRATCHMALLOC          },
       { "byteorder",             SQLITE_TESTCTRL_BYTEORDER              },
+      { "never_corrupt",         SQLITE_TESTCTRL_NEVER_CORRUPT          },
     };
     int testctrl = -1;
     int rc = 0;
@@ -3601,7 +3602,8 @@ static int do_meta_command(char *zLine, ShellState *p){
           
         /* sqlite3_test_control(int, int) */
         case SQLITE_TESTCTRL_ASSERT:              
-        case SQLITE_TESTCTRL_ALWAYS:              
+        case SQLITE_TESTCTRL_ALWAYS:      
+        case SQLITE_TESTCTRL_NEVER_CORRUPT:        
           if( nArg==3 ){
             int opt = booleanValue(azArg[2]);        
             rc = sqlite3_test_control(testctrl, opt);