diff options
author | drh <drh@noemail.net> | 2005-02-26 17:31:26 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2005-02-26 17:31:26 +0000 |
commit | ccae6026e6b817121bee172fd9e29a6aa67ca8d6 (patch) | |
tree | 240216cff1844d6779b6f7f31936ee1440444bcc /src/tokenize.c | |
parent | 75308731329019295e4230dd179af84f307cfb1d (diff) | |
download | sqlite-ccae6026e6b817121bee172fd9e29a6aa67ca8d6.tar.gz sqlite-ccae6026e6b817121bee172fd9e29a6aa67ca8d6.zip |
Fix an assertion fault that can occur while autovacuuming a corrupt database
file. Add the SQLITE_OMIT_COMPLETE compile-time parameter. (CVS 2361)
FossilOrigin-Name: bb0e7e3857a06347b08d93553ac603e737322262
Diffstat (limited to 'src/tokenize.c')
-rw-r--r-- | src/tokenize.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index 4fc1d3d7c..1c3d19949 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -15,7 +15,7 @@ ** individual tokens and sends those tokens one-by-one over to the ** parser for analysis. ** -** $Id: tokenize.c,v 1.100 2005/01/31 12:42:29 danielk1977 Exp $ +** $Id: tokenize.c,v 1.101 2005/02/26 17:31:27 drh Exp $ */ #include "sqliteInt.h" #include "os.h" @@ -431,6 +431,11 @@ abort_parse: return nErr; } +/* The sqlite3_complete() API may be omitted (to save code space) by +** defining the following symbol. +*/ +#ifndef SQLITE_OMIT_COMPLETE + /* ** Token types used by the sqlite3_complete() routine. See the header ** comments on that procedure for additional information. @@ -662,3 +667,4 @@ int sqlite3_complete16(const void *zSql){ return rc; } #endif /* SQLITE_OMIT_UTF16 */ +#endif /* SQLITE_OMIT_COMPLETE */ |