diff options
author | drh <drh@noemail.net> | 2002-02-19 13:39:21 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-02-19 13:39:21 +0000 |
commit | aaab5725dba68b9c40288cdce11619d601b460c1 (patch) | |
tree | 6c86629d0d3df2720d50a732cab4bfcc67c6059c /src/build.c | |
parent | a80a1e6ae42f71331400db08120a8c8646a2f8e9 (diff) | |
download | sqlite-aaab5725dba68b9c40288cdce11619d601b460c1.tar.gz sqlite-aaab5725dba68b9c40288cdce11619d601b460c1.zip |
Change the name of the sanity_check PRAGMA to "integrity_check" and make
it available on all compiles. (CVS 381)
FossilOrigin-Name: c6e9048e66c8d8e2d5f6c62aa724eef3e9d9f572
Diffstat (limited to 'src/build.c')
-rw-r--r-- | src/build.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/build.c b/src/build.c index 6aa51b95c..afa4db7e5 100644 --- a/src/build.c +++ b/src/build.c @@ -25,7 +25,7 @@ ** ROLLBACK ** PRAGMA ** -** $Id: build.c,v 1.76 2002/02/18 22:49:59 drh Exp $ +** $Id: build.c,v 1.77 2002/02/19 13:39:22 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -1799,8 +1799,7 @@ void sqlitePragma(Parse *pParse, Token *pLeft, Token *pRight, int minusFlag){ }else #endif -#ifndef NDEBUG - if( sqliteStrICmp(zLeft, "sanity_check")==0 ){ + if( sqliteStrICmp(zLeft, "integrity_check")==0 ){ static VdbeOp checkDb[] = { { OP_SetInsert, 0, 0, "2"}, { OP_Open, 0, 2, 0}, @@ -1808,7 +1807,7 @@ void sqlitePragma(Parse *pParse, Token *pLeft, Token *pRight, int minusFlag){ { OP_Column, 0, 3, 0}, { OP_SetInsert, 0, 0, 0}, { OP_Next, 0, 3, 0}, - { OP_SanityCheck, 0, 0, 0}, + { OP_IntegrityCk, 0, 0, 0}, { OP_ColumnCount, 1, 0, 0}, { OP_ColumnName, 0, 0, "sanity_check"}, { OP_Callback, 1, 0, 0}, @@ -1817,7 +1816,6 @@ void sqlitePragma(Parse *pParse, Token *pLeft, Token *pRight, int minusFlag){ if( v==0 ) return; sqliteVdbeAddOpList(v, ArraySize(checkDb), checkDb); }else -#endif {} sqliteFree(zLeft); |