3 # The author disclaims copyright to this source code. In place of
4 # a legal notice, here is a blessing:
6 # May you do good and not evil.
7 # May you find forgiveness for yourself and forgive others.
8 # May you share freely, never taking more than you give.
10 #***********************************************************************
12 # The focus of this file is testing that ticket #3363 is fixed.
15 if {![info exists testdir]} {
16 set testdir [file join [file dirname [info script]] .. .. test]
18 source [file join [file dirname [info script]] rtree_util.tcl]
19 source $testdir/tester.tcl
27 execsql { CREATE VIRTUAL TABLE t1 USING rtree(ii, x1, x2, y1, y2) }
31 for {set ii 1} {$ii < 50} {incr ii} {
33 set y [expr 4000000 + $ii*10]
34 execsql { INSERT INTO t1 VALUES($ii, $x, $x, $y, $y) }
40 SELECT count(*) FROM t1 WHERE +y2>4000425.0;
46 SELECT count(*) FROM t1 WHERE y2>4000425.0;