summaryrefslogtreecommitdiffstats
path: root/ext/rtree/rtree1.test
diff options
context:
space:
mode:
Diffstat (limited to 'ext/rtree/rtree1.test')
-rw-r--r--ext/rtree/rtree1.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/ext/rtree/rtree1.test b/ext/rtree/rtree1.test
index 61664e1..e596df7 100644
--- a/ext/rtree/rtree1.test
+++ b/ext/rtree/rtree1.test
@@ -797,4 +797,22 @@ do_test 23.0 {
db eval {PRAGMA integrity_check;}
} {ok}
+reset_db
+do_execsql_test 24.0 {
+ CREATE VIRTUAL TABLE rt1 USING rtree_i32(rid, c1, c2);
+ INSERT INTO rt1(rid, c1, c2) VALUES (9223372036854775807, 10, 18);
+}
+
+do_execsql_test 24.1 {
+ SELECT (rid = (CAST (9223372036854775807 AS REAL)))
+ FROM rt1 WHERE
+ (rid = (CAST (9223372036854775807 AS REAL)));
+}
+
+do_execsql_test 24.2 {
+ DELETE FROM rt1;
+ INSERT INTO rt1(rid, c1, c2) VALUES(1,2,3);
+ SELECT * FROM rt1 WHERE rid=1.005;
+} {}
+
finish_test