diff options
author | drh <drh@noemail.net> | 2004-10-31 02:22:47 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2004-10-31 02:22:47 +0000 |
commit | b7f9164e98fa24ae6995c99dd792836b81ccc91d (patch) | |
tree | f55e787ff88094cfad5dd4abf2a6230ae5e5f4ee /src/pragma.c | |
parent | 27d258a3ec1cf88e2a9104650bb6221215ea4d76 (diff) | |
download | sqlite-b7f9164e98fa24ae6995c99dd792836b81ccc91d.tar.gz sqlite-b7f9164e98fa24ae6995c99dd792836b81ccc91d.zip |
Insert #ifdefs that can optionally remove features at compiletime resulting
in a database engine with a smaller footprint. (CVS 2034)
FossilOrigin-Name: be661acfa849bb0d5692797dd221f5a8a457f8ad
Diffstat (limited to 'src/pragma.c')
-rw-r--r-- | src/pragma.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/pragma.c b/src/pragma.c index d238d4264..4b10e1233 100644 --- a/src/pragma.c +++ b/src/pragma.c @@ -11,7 +11,7 @@ ************************************************************************* ** This file contains code used to implement the PRAGMA command. ** -** $Id: pragma.c,v 1.72 2004/10/25 20:33:44 drh Exp $ +** $Id: pragma.c,v 1.73 2004/10/31 02:22:49 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -444,6 +444,7 @@ void sqlite3Pragma( } }else +#ifndef SQLITE_OMIT_FOREIGN_KEY if( sqlite3StrICmp(zLeft, "foreign_key_list")==0 && zRight ){ FKey *pFK; Table *pTab; @@ -477,6 +478,7 @@ void sqlite3Pragma( } } }else +#endif /* !defined(SQLITE_OMIT_FOREIGN_KEY) */ if( sqlite3StrICmp(zLeft, "database_list")==0 ){ int i; @@ -507,6 +509,7 @@ void sqlite3Pragma( }else #endif +#ifndef SQLITE_OMIT_INTEGRITY_CHECK if( sqlite3StrICmp(zLeft, "integrity_check")==0 ){ int i, j, addr; @@ -631,6 +634,8 @@ void sqlite3Pragma( addr = sqlite3VdbeAddOpList(v, ArraySize(endCode), endCode); sqlite3VdbeChangeP2(v, addr+2, addr+ArraySize(endCode)); }else +#endif /* SQLITE_OMIT_INTEGRITY_CHECK */ + /* ** PRAGMA encoding ** PRAGMA encoding = "utf-8"|"utf-16"|"utf-16le"|"utf-16be" |