OLD | NEW |
1 # 2008 Jul 14 | 1 # 2008 Jul 14 |
2 # | 2 # |
3 # The author disclaims copyright to this source code. In place of | 3 # The author disclaims copyright to this source code. In place of |
4 # a legal notice, here is a blessing: | 4 # a legal notice, here is a blessing: |
5 # | 5 # |
6 # May you do good and not evil. | 6 # May you do good and not evil. |
7 # May you find forgiveness for yourself and forgive others. | 7 # May you find forgiveness for yourself and forgive others. |
8 # May you share freely, never taking more than you give. | 8 # May you share freely, never taking more than you give. |
9 # | 9 # |
10 #*********************************************************************** | 10 #*********************************************************************** |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 do_test rtree5-1.5 { | 42 do_test rtree5-1.5 { |
43 execsql { SELECT x1==5.2 FROM t1 } | 43 execsql { SELECT x1==5.2 FROM t1 } |
44 } {0} | 44 } {0} |
45 do_test rtree5-1.6 { | 45 do_test rtree5-1.6 { |
46 execsql { SELECT x1==5.0 FROM t1 } | 46 execsql { SELECT x1==5.0 FROM t1 } |
47 } {1} | 47 } {1} |
48 | 48 |
49 do_test rtree5-1.7 { | 49 do_test rtree5-1.7 { |
50 execsql { SELECT count(*) FROM t1 WHERE x1==5 } | 50 execsql { SELECT count(*) FROM t1 WHERE x1==5 } |
51 } {1} | 51 } {1} |
52 do_test rtree5-1.8 { | 52 ifcapable !rtree_int_only { |
53 execsql { SELECT count(*) FROM t1 WHERE x1==5.2 } | 53 do_test rtree5-1.8 { |
54 } {0} | 54 execsql { SELECT count(*) FROM t1 WHERE x1==5.2 } |
| 55 } {0} |
| 56 } |
55 do_test rtree5-1.9 { | 57 do_test rtree5-1.9 { |
56 execsql { SELECT count(*) FROM t1 WHERE x1==5.0 } | 58 execsql { SELECT count(*) FROM t1 WHERE x1==5.0 } |
57 } {1} | 59 } {1} |
58 | 60 |
59 do_test rtree5-1.10 { | 61 do_test rtree5-1.10 { |
60 execsql { SELECT (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5 } | 62 execsql { SELECT (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5 } |
61 } {2147483643 2147483647 -2147483648 -2147483643} | 63 } {2147483643 2147483647 -2147483648 -2147483643} |
62 do_test rtree5-1.10 { | 64 do_test rtree5-1.11 { |
63 execsql { | 65 execsql { |
64 INSERT INTO t1 VALUES(2, (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5) | 66 INSERT INTO t1 VALUES(2, (1<<31)-5, (1<<31)-1, -1*(1<<31), -1*(1<<31)+5) |
65 } | 67 } |
66 } {} | 68 } {} |
67 do_test rtree5-1.12 { | 69 do_test rtree5-1.12 { |
68 execsql { SELECT * FROM t1 WHERE id=2 } | 70 execsql { SELECT * FROM t1 WHERE id=2 } |
69 } {2 2147483643 2147483647 -2147483648 -2147483643} | 71 } {2 2147483643 2147483647 -2147483648 -2147483643} |
70 do_test rtree5-1.13 { | 72 do_test rtree5-1.13 { |
71 execsql { | 73 execsql { |
72 SELECT * FROM t1 WHERE | 74 SELECT * FROM t1 WHERE |
73 x1=2147483643 AND x2=2147483647 AND | 75 x1=2147483643 AND x2=2147483647 AND |
74 y1=-2147483648 AND y2=-2147483643 | 76 y1=-2147483648 AND y2=-2147483643 |
75 } | 77 } |
76 } {2 2147483643 2147483647 -2147483648 -2147483643} | 78 } {2 2147483643 2147483647 -2147483648 -2147483643} |
77 | 79 |
78 finish_test | 80 finish_test |
OLD | NEW |