diff options
author | dan <dan@noemail.net> | 2016-02-24 16:14:07 +0000 |
---|---|---|
committer | dan <dan@noemail.net> | 2016-02-24 16:14:07 +0000 |
commit | a73086dd9eb4d7a41340920a773e0369ec7db204 (patch) | |
tree | 293b5530e38bb7fa405f9d13c836174fb31fffea /src/tokenize.c | |
parent | 0e0089679fa2a5f191aedde660512d4b5c95d0d1 (diff) | |
download | sqlite-a73086dd9eb4d7a41340920a773e0369ec7db204.tar.gz sqlite-a73086dd9eb4d7a41340920a773e0369ec7db204.zip |
Fix a problem with handling identifiers that start with "x" if SQLITE_OMIT_BLOB_LITERAL is defined.
FossilOrigin-Name: b65217c69c59cbe9cd1494e2eb42ecf22c336399
Diffstat (limited to 'src/tokenize.c')
-rw-r--r-- | src/tokenize.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index 60af259ca..19a5ddf04 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -435,8 +435,8 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){ *tokenType = TK_ID; return keywordCode((char*)z, i, tokenType); } -#ifndef SQLITE_OMIT_BLOB_LITERAL case CC_X: { +#ifndef SQLITE_OMIT_BLOB_LITERAL testcase( z[0]=='x' ); testcase( z[0]=='X' ); if( z[1]=='\'' ){ *tokenType = TK_BLOB; @@ -448,10 +448,10 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){ if( z[i] ) i++; return i; } +#endif /* If it is not a BLOB literal, then it must be an ID, since no ** SQL keywords start with the letter 'x'. Fall through */ } -#endif case CC_ID: { i = 1; break; |