diff options
author | drh <drh@noemail.net> | 2018-01-10 00:40:06 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2018-01-10 00:40:06 +0000 |
commit | 6116ee4eeefeec9a0fc81ef4784cb774d50e36a2 (patch) | |
tree | db18275a5eac35261c27a73aaab8969e1d21d31c /src/tokenize.c | |
parent | dc006e05aa8ed9181b14924aa742e072dabba79a (diff) | |
download | sqlite-6116ee4eeefeec9a0fc81ef4784cb774d50e36a2.tar.gz sqlite-6116ee4eeefeec9a0fc81ef4784cb774d50e36a2.zip |
Compute the correct column name even if the column identifier is the
very last token in the SQL statement. This fixes a problem introduced
by check-in [0fdf97efe5df745510c6b] and reported by the community during
beta-testing.
FossilOrigin-Name: 36b89d728ff13d395fe0e1db8e7c01263f73dccb278b3ece27f6ef78e909b492
Diffstat (limited to 'src/tokenize.c')
-rw-r--r-- | src/tokenize.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tokenize.c b/src/tokenize.c index 2aab334ae..e6da3fb54 100644 --- a/src/tokenize.c +++ b/src/tokenize.c @@ -526,7 +526,7 @@ int sqlite3RunParser(Parse *pParse, const char *zSql, char **pzErrMsg){ }else{ tokenType = TK_SEMI; } - zSql -= n; + n = 0; } if( tokenType>=TK_SPACE ){ assert( tokenType==TK_SPACE || tokenType==TK_ILLEGAL ); |