From: drh Date: Mon, 19 Jan 2015 15:05:54 +0000 (+0000) Subject: Enhance the command-line shell with the ability to set the X-Git-Tag: version-3.8.9~164 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e4bb23a1a7f38eae02ba49c58854b674c37a8622;p=thirdparty%2Fsqlite.git Enhance the command-line shell with the ability to set the SQLITE_TESTCTRL_NEVER_CORRUPT flag using: ".testctrl never_corrupt 1". FossilOrigin-Name: 824328f9833d01fc155a9d0265ef41d338cf1ffb --- diff --git a/manifest b/manifest index 976365ad63..136cb71f94 100644 --- 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 diff --git a/manifest.uuid b/manifest.uuid index fbfc967ad3..a042232dda 100644 --- a/manifest.uuid +++ b/manifest.uuid @@ -1 +1 @@ -10321910990195878c0af1e94b34ae0cdc0cb31b \ No newline at end of file +824328f9833d01fc155a9d0265ef41d338cf1ffb \ No newline at end of file diff --git a/src/shell.c b/src/shell.c index 5643e4f242..1d9c80798c 100644 --- a/src/shell.c +++ b/src/shell.c @@ -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);