1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-24 22:22:08 +03:00

The tokenizer should never return a negative size of the next token.

Ticket #453. (CVS 1098)

FossilOrigin-Name: 4fbca3ab09596c530da7c50657f3bc9140178dd5
This commit is contained in:
drh
2003-09-12 02:08:14 +00:00
parent 9faae94118
commit 61b487d02a
4 changed files with 20 additions and 15 deletions

View File

@ -13,7 +13,7 @@
# This file implements tests for miscellanous features that were
# left out of other test files.
#
# $Id: misc2.test,v 1.8 2003/08/27 22:54:32 drh Exp $
# $Id: misc2.test,v 1.9 2003/09/12 02:08:16 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -179,3 +179,11 @@ do_test misc2-7.4 {
} msg]
lappend rc $msg
} {1 {database table is locked}}
# Ticket #453. If the SQL ended with "-", the tokenizer was calling that
# an incomplete token, which caused problem. The solution was to just call
# it a minus sign.
#
do_test misc2-8.1 {
catchsql {-}
} {1 {near "-": syntax error}}