aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2003-09-12 02:08:14 +0000
committerdrh <drh@noemail.net>2003-09-12 02:08:14 +0000
commit61b487d02a1ce8aebab61d367046be0f55a39f34 (patch)
tree04199865679075d5c23b89a8222c9095b350320e /test
parent9faae9411883b1ea0e1c6e0d83c1966fe718a4c7 (diff)
downloadsqlite-61b487d02a1ce8aebab61d367046be0f55a39f34.tar.gz
sqlite-61b487d02a1ce8aebab61d367046be0f55a39f34.zip
The tokenizer should never return a negative size of the next token.
Ticket #453. (CVS 1098) FossilOrigin-Name: 4fbca3ab09596c530da7c50657f3bc9140178dd5
Diffstat (limited to 'test')
-rw-r--r--test/misc2.test10
1 files changed, 9 insertions, 1 deletions
diff --git a/test/misc2.test b/test/misc2.test
index 60acb05c3..24b22b2e7 100644
--- a/test/misc2.test
+++ b/test/misc2.test
@@ -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}}