aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <Dan Kennedy>2024-01-20 16:46:25 +0000
committerdan <Dan Kennedy>2024-01-20 16:46:25 +0000
commit95295a7e9b59e90029ae7a90ebee1667c51a3139 (patch)
treedd515cf185a1f5b3613a10ba9c150094e52c07e2 /src
parent3eae6664a00961baf3d011229794cd98371aa9cf (diff)
downloadsqlite-95295a7e9b59e90029ae7a90ebee1667c51a3139.tar.gz
sqlite-95295a7e9b59e90029ae7a90ebee1667c51a3139.zip
Add test cases for the new code on this branch.
FossilOrigin-Name: 49f29a7b4f44f691ecf7a57b26477971e6ffaf2a0b1690b4926ffbb43fa3929b
Diffstat (limited to 'src')
-rw-r--r--src/tokenize.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/tokenize.c b/src/tokenize.c
index ae1f6da3f..592d6b8d8 100644
--- a/src/tokenize.c
+++ b/src/tokenize.c
@@ -635,10 +635,13 @@ int sqlite3RunParser(Parse *pParse, const char *zSql){
if( tokenType>=TK_WINDOW ){
assert( tokenType==TK_SPACE || tokenType==TK_OVER || tokenType==TK_FILTER
|| tokenType==TK_ILLEGAL || tokenType==TK_WINDOW
+ || tokenType==TK_QNUMBER
);
#else
if( tokenType>=TK_SPACE ){
- assert( tokenType==TK_SPACE || tokenType==TK_ILLEGAL );
+ assert( tokenType==TK_SPACE || tokenType==TK_ILLEGAL
+ || tokenType==TK_QNUMBER
+ );
#endif /* SQLITE_OMIT_WINDOWFUNC */
if( AtomicLoad(&db->u1.isInterrupted) ){
pParse->rc = SQLITE_INTERRUPT;
@@ -671,7 +674,7 @@ int sqlite3RunParser(Parse *pParse, const char *zSql){
assert( n==6 );
tokenType = analyzeFilterKeyword((const u8*)&zSql[6], lastTokenParsed);
#endif /* SQLITE_OMIT_WINDOWFUNC */
- }else{
+ }else if( tokenType!=TK_QNUMBER ){
Token x;
x.z = zSql;
x.n = n;