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

Further test coverage improvements for rtree.c.

FossilOrigin-Name: 05f6c1aebbe757dd3b54fd027057b9db7ae3a990
This commit is contained in:
dan
2010-08-25 19:04:38 +00:00
parent 92e01aafe1
commit f836afd44a
5 changed files with 50 additions and 29 deletions

View File

@ -104,13 +104,24 @@ do_catchsql_test rtree8-2.1.5 {
} {1 {database disk image is malformed}}
do_execsql_test rtree8-2.1.6 {
DELETE FROM t1_node;
DELETE FROM t1_parent;
DELETE FROM t1_rowid;
DROP TABLE t1;
CREATE VIRTUAL TABLE t1 USING rtree_i32(id, x1, x2);
} {}
populate_t1 50
do_execsql_test rtree8-2.2.1 {
DELETE FROM t1_parent
} {}
do_catchsql_test rtree8-2.2.2 {
DELETE FROM t1 WHERE id=25
} {1 {database disk image is malformed}}
do_execsql_test rtree8-2.2.3 {
DROP TABLE t1;
CREATE VIRTUAL TABLE t1 USING rtree_i32(id, x1, x2);
} {}
#-------------------------------------------------------------------------
# Test that trying to use the MATCH operator with the r-tree module does
# not confuse it.
@ -119,7 +130,7 @@ breakpoint
populate_t1 10
do_catchsql_test rtree8-3.1 {
SELECT * FROM t1 WHERE x1 MATCH '1234'
} {1 {}}
} {1 {unable to use function MATCH in the requested context}}
finish_test