Fix a problem with strange expressions being fed to an ATTACH or DETACH

statement. (CVS 3965)

FossilOrigin-Name: 0c91dc9ee0c5d441a7789b631476515260cb887f
This commit is contained in:
drh
2007-05-09 20:31:29 +00:00
parent de3bea7ba4
commit b63f274589
4 changed files with 24 additions and 11 deletions
+10 -1
View File
@@ -12,7 +12,7 @@
# focus of this script is testing the ATTACH and DETACH commands
# and related functionality.
#
# $Id: attach.test,v 1.43 2006/05/25 12:17:32 drh Exp $
# $Id: attach.test,v 1.44 2007/05/09 20:31:30 drh Exp $
#
set testdir [file dirname $argv0]
@@ -735,4 +735,13 @@ db close
file delete -force test2.db
file delete -force no-such-file
do_test attach-7.1 {
file delete -force test.db test.db-journal
sqlite3 db test.db
catchsql {
DETACH RAISE ( IGNORE ) IN ( SELECT "AAAAAA" . * ORDER BY
REGISTER LIMIT "AAAAAA" . "AAAAAA" OFFSET RAISE ( IGNORE ) NOT NULL )
}
} {1 {invalid name: "RAISE ( IGNORE ) IN ( SELECT "AAAAAA" . * ORDER BY
REGISTER LIMIT "AAAAAA" . "AAAAAA" OFFSET RAISE ( IGNORE ) NOT NULL )"}}
finish_test