Return a meaningful error message if a keyword is used as an rtree table column name. Ticket #3970. (CVS 6902)

FossilOrigin-Name: 046efe46b50fbe928f39a0cda1b1006d486ce9f5
This commit is contained in:
danielk1977
2009-07-17 16:54:48 +00:00
parent 9a8cee7f73
commit 33c54a989e
4 changed files with 22 additions and 12 deletions
+9 -1
View File
@@ -11,7 +11,7 @@
#
# The focus of this file is testing the r-tree extension.
#
# $Id: rtree1.test,v 1.6 2008/12/22 15:04:32 danielk1977 Exp $
# $Id: rtree1.test,v 1.7 2009/07/17 16:54:48 danielk1977 Exp $
#
if {![info exists testdir]} {
@@ -393,4 +393,12 @@ do_test rtree-9.3 {
}
} {1600}
#-------------------------------------------------------------------------
# Ticket #3970: Check that the error message is meaningful when a
# keyword is used as a column name.
#
do_test rtree-10.1 {
catchsql { CREATE VIRTUAL TABLE t7 USING rtree(index, x1, y1, x2, y2) }
} {1 {near "index": syntax error}}
finish_test