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

Report an error if the input SQL contains an unterminated string.

Ticket #1497. (CVS 2751)

FossilOrigin-Name: c9c476dd836c49255eabc6cce83064974c079ce3
This commit is contained in:
drh
2005-10-23 11:29:40 +00:00
parent d9cb6ac02f
commit eef8b55832
5 changed files with 26 additions and 14 deletions

View File

@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this file is exercising the code in main.c.
#
# $Id: main.test,v 1.21 2005/08/12 22:58:53 drh Exp $
# $Id: main.test,v 1.22 2005/10/23 11:29:40 drh Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -276,6 +276,12 @@ do_test main-3.2 {
set v [catch {execsql {SELECT * from T1 where @x}} msg]
lappend v $msg
} {1 {unrecognized token: "@"}}
do_test main-3.2.2 {
catchsql {select 'abc}
} {1 {unrecognized token: "'abc"}}
do_test main-3.2.3 {
catchsql {select "abc}
} {1 {unrecognized token: ""abc"}}
do_test main-3.3 {
catch {db close}