1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-09 14:21:03 +03:00

Performance enhancement to the tokenizer.

FossilOrigin-Name: 6ea2df86c95c226052f528424e9bee367a2e765a
This commit is contained in:
drh
2015-11-10 03:30:51 +00:00
parent 07b09a9420
commit 54bb56d82a
4 changed files with 30 additions and 46 deletions

View File

@@ -369,8 +369,8 @@ int sqlite3GetToken(const unsigned char *z, int *tokenType){
break;
}
for(i=1; IdChar(z[i]); i++){}
*tokenType = keywordCode((char*)z, i);
return i;
*tokenType = TK_ID;
return keywordCode((char*)z, i, tokenType);
}
}
*tokenType = TK_ILLEGAL;