aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2016-02-24 16:14:07 +0000
committerdan <dan@noemail.net>2016-02-24 16:14:07 +0000
commita73086dd9eb4d7a41340920a773e0369ec7db204 (patch)
tree293b5530e38bb7fa405f9d13c836174fb31fffea /src
parent0e0089679fa2a5f191aedde660512d4b5c95d0d1 (diff)
downloadsqlite-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')
-rw-r--r--src/tokenize.c4
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;