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 #***********************************************************************
11 # This file implements regression tests for SQLite library.
13 # This file is automatically generated from a separate TCL script.
14 # This file seeks to exercise integer boundary values.
16 # $Id: boundary2.test,v 1.2 2009/01/02 15:45:48 shane Exp $
18 set testdir [file dirname $argv0]
19 source $testdir/tester.tcl
21 # Many of the boundary tests depend on a working 64-bit implementation.
22 if {![working_64bit_int]} { finish_test; return }
24 do_test boundary2-1.1 {
26 CREATE TABLE t1(r INTEGER, a INTEGER, x TEXT);
27 INSERT INTO t1 VALUES(-8388609,1,'ffffffffff7fffff');
28 INSERT INTO t1 VALUES(-36028797018963969,2,'ff7fffffffffffff');
29 INSERT INTO t1 VALUES(9223372036854775807,3,'7fffffffffffffff');
30 INSERT INTO t1 VALUES(127,4,'000000000000007f');
31 INSERT INTO t1 VALUES(3,5,'0000000000000003');
32 INSERT INTO t1 VALUES(16777216,6,'0000000001000000');
33 INSERT INTO t1 VALUES(4398046511103,7,'000003ffffffffff');
34 INSERT INTO t1 VALUES(16383,8,'0000000000003fff');
35 INSERT INTO t1 VALUES(16777215,9,'0000000000ffffff');
36 INSERT INTO t1 VALUES(281474976710655,10,'0000ffffffffffff');
37 INSERT INTO t1 VALUES(-2147483648,11,'ffffffff80000000');
38 INSERT INTO t1 VALUES(268435455,12,'000000000fffffff');
39 INSERT INTO t1 VALUES(562949953421311,13,'0001ffffffffffff');
40 INSERT INTO t1 VALUES(4294967295,14,'00000000ffffffff');
41 INSERT INTO t1 VALUES(2097151,15,'00000000001fffff');
42 INSERT INTO t1 VALUES(16384,16,'0000000000004000');
43 INSERT INTO t1 VALUES(72057594037927935,17,'00ffffffffffffff');
44 INSERT INTO t1 VALUES(8388607,18,'00000000007fffff');
45 INSERT INTO t1 VALUES(1099511627776,19,'0000010000000000');
46 INSERT INTO t1 VALUES(2147483647,20,'000000007fffffff');
47 INSERT INTO t1 VALUES(-140737488355329,21,'ffff7fffffffffff');
48 INSERT INTO t1 VALUES(34359738368,22,'0000000800000000');
49 INSERT INTO t1 VALUES(32767,23,'0000000000007fff');
50 INSERT INTO t1 VALUES(8388608,24,'0000000000800000');
51 INSERT INTO t1 VALUES(140737488355327,25,'00007fffffffffff');
52 INSERT INTO t1 VALUES(281474976710656,26,'0001000000000000');
53 INSERT INTO t1 VALUES(36028797018963967,27,'007fffffffffffff');
54 INSERT INTO t1 VALUES(72057594037927936,28,'0100000000000000');
55 INSERT INTO t1 VALUES(-32769,29,'ffffffffffff7fff');
56 INSERT INTO t1 VALUES(255,30,'00000000000000ff');
57 INSERT INTO t1 VALUES(4,31,'0000000000000004');
58 INSERT INTO t1 VALUES(-32768,32,'ffffffffffff8000');
59 INSERT INTO t1 VALUES(-2,33,'fffffffffffffffe');
60 INSERT INTO t1 VALUES(140737488355328,34,'0000800000000000');
61 INSERT INTO t1 VALUES(549755813888,35,'0000008000000000');
62 INSERT INTO t1 VALUES(4294967296,36,'0000000100000000');
63 INSERT INTO t1 VALUES(-8388608,37,'ffffffffff800000');
64 INSERT INTO t1 VALUES(-1,38,'ffffffffffffffff');
65 INSERT INTO t1 VALUES(34359738367,39,'00000007ffffffff');
66 INSERT INTO t1 VALUES(268435456,40,'0000000010000000');
67 INSERT INTO t1 VALUES(2,41,'0000000000000002');
68 INSERT INTO t1 VALUES(2097152,42,'0000000000200000');
69 INSERT INTO t1 VALUES(562949953421312,43,'0002000000000000');
70 INSERT INTO t1 VALUES(-140737488355328,44,'ffff800000000000');
71 INSERT INTO t1 VALUES(36028797018963968,45,'0080000000000000');
72 INSERT INTO t1 VALUES(549755813887,46,'0000007fffffffff');
73 INSERT INTO t1 VALUES(-2147483649,47,'ffffffff7fffffff');
74 INSERT INTO t1 VALUES(65535,48,'000000000000ffff');
75 INSERT INTO t1 VALUES(128,49,'0000000000000080');
76 INSERT INTO t1 VALUES(32768,50,'0000000000008000');
77 INSERT INTO t1 VALUES(2147483648,51,'0000000080000000');
78 INSERT INTO t1 VALUES(-3,52,'fffffffffffffffd');
79 INSERT INTO t1 VALUES(-128,53,'ffffffffffffff80');
80 INSERT INTO t1 VALUES(-129,54,'ffffffffffffff7f');
81 INSERT INTO t1 VALUES(-9223372036854775808,55,'8000000000000000');
82 INSERT INTO t1 VALUES(4398046511104,56,'0000040000000000');
83 INSERT INTO t1 VALUES(1099511627775,57,'000000ffffffffff');
84 INSERT INTO t1 VALUES(-549755813889,58,'ffffff7fffffffff');
85 INSERT INTO t1 VALUES(0,59,'0000000000000000');
86 INSERT INTO t1 VALUES(1,60,'0000000000000001');
87 INSERT INTO t1 VALUES(256,61,'0000000000000100');
88 INSERT INTO t1 VALUES(65536,62,'0000000000010000');
89 INSERT INTO t1 VALUES(-549755813888,63,'ffffff8000000000');
90 INSERT INTO t1 VALUES(-36028797018963968,64,'ff80000000000000');
91 CREATE INDEX t1i1 ON t1(r);
92 CREATE INDEX t1i2 ON t1(a);
93 CREATE INDEX t1i3 ON t1(x);
96 do_test boundary2-1.2 {
98 SELECT count(*) FROM t1
101 do_test boundary2-2.1.1 {
103 SELECT * FROM t1 WHERE r=72057594037927935
105 } {72057594037927935 17 00ffffffffffffff}
106 do_test boundary2-2.1.2 {
108 SELECT r, a FROM t1 WHERE x='00ffffffffffffff'
110 } {72057594037927935 17}
111 do_test boundary2-2.1.3 {
113 SELECT r, x FROM t1 WHERE a=17
115 } {72057594037927935 00ffffffffffffff}
116 do_test boundary2-2.1.gt.1 {
118 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY a
121 do_test boundary2-2.1.gt.2 {
123 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY a DESC
126 do_test boundary2-2.1.gt.3 {
128 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY r
131 do_test boundary2-2.1.gt.4 {
133 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY r DESC
136 do_test boundary2-2.1.gt.5 {
138 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY x
141 do_test boundary2-2.1.ge.1 {
143 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY a
146 do_test boundary2-2.1.ge.2 {
148 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY a DESC
151 do_test boundary2-2.1.ge.3 {
153 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY r
156 do_test boundary2-2.1.ge.4 {
158 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY r DESC
161 do_test boundary2-2.1.ge.5 {
163 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY x
166 do_test boundary2-2.1.lt.1 {
168 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY a
170 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
171 do_test boundary2-2.1.lt.2 {
173 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY a DESC
175 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
176 do_test boundary2-2.1.lt.3 {
178 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY r
180 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45}
181 do_test boundary2-2.1.lt.4 {
183 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY r DESC
185 } {45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
186 do_test boundary2-2.1.lt.5 {
188 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY x
190 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
191 do_test boundary2-2.1.le.1 {
193 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY a
195 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
196 do_test boundary2-2.1.le.2 {
198 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY a DESC
200 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
201 do_test boundary2-2.1.le.3 {
203 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY r
205 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17}
206 do_test boundary2-2.1.le.4 {
208 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY r DESC
210 } {17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
211 do_test boundary2-2.1.le.5 {
213 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY x
215 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
216 do_test boundary2-2.2.1 {
218 SELECT * FROM t1 WHERE r=16384
220 } {16384 16 0000000000004000}
221 do_test boundary2-2.2.2 {
223 SELECT r, a FROM t1 WHERE x='0000000000004000'
226 do_test boundary2-2.2.3 {
228 SELECT r, x FROM t1 WHERE a=16
230 } {16384 0000000000004000}
231 do_test boundary2-2.2.gt.1 {
233 SELECT a FROM t1 WHERE r > 16384 ORDER BY a
235 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
236 do_test boundary2-2.2.gt.2 {
238 SELECT a FROM t1 WHERE r > 16384 ORDER BY a DESC
240 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
241 do_test boundary2-2.2.gt.3 {
243 SELECT a FROM t1 WHERE r > 16384 ORDER BY r
245 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
246 do_test boundary2-2.2.gt.4 {
248 SELECT a FROM t1 WHERE r > 16384 ORDER BY r DESC
250 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23}
251 do_test boundary2-2.2.gt.5 {
253 SELECT a FROM t1 WHERE r > 16384 ORDER BY x
255 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
256 do_test boundary2-2.2.ge.1 {
258 SELECT a FROM t1 WHERE r >= 16384 ORDER BY a
260 } {3 6 7 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
261 do_test boundary2-2.2.ge.2 {
263 SELECT a FROM t1 WHERE r >= 16384 ORDER BY a DESC
265 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 7 6 3}
266 do_test boundary2-2.2.ge.3 {
268 SELECT a FROM t1 WHERE r >= 16384 ORDER BY r
270 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
271 do_test boundary2-2.2.ge.4 {
273 SELECT a FROM t1 WHERE r >= 16384 ORDER BY r DESC
275 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16}
276 do_test boundary2-2.2.ge.5 {
278 SELECT a FROM t1 WHERE r >= 16384 ORDER BY x
280 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
281 do_test boundary2-2.2.lt.1 {
283 SELECT a FROM t1 WHERE r < 16384 ORDER BY a
285 } {1 2 4 5 8 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
286 do_test boundary2-2.2.lt.2 {
288 SELECT a FROM t1 WHERE r < 16384 ORDER BY a DESC
290 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 8 5 4 2 1}
291 do_test boundary2-2.2.lt.3 {
293 SELECT a FROM t1 WHERE r < 16384 ORDER BY r
295 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8}
296 do_test boundary2-2.2.lt.4 {
298 SELECT a FROM t1 WHERE r < 16384 ORDER BY r DESC
300 } {8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
301 do_test boundary2-2.2.lt.5 {
303 SELECT a FROM t1 WHERE r < 16384 ORDER BY x
305 } {59 60 41 5 31 4 49 30 61 8 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
306 do_test boundary2-2.2.le.1 {
308 SELECT a FROM t1 WHERE r <= 16384 ORDER BY a
310 } {1 2 4 5 8 11 16 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
311 do_test boundary2-2.2.le.2 {
313 SELECT a FROM t1 WHERE r <= 16384 ORDER BY a DESC
315 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 16 11 8 5 4 2 1}
316 do_test boundary2-2.2.le.3 {
318 SELECT a FROM t1 WHERE r <= 16384 ORDER BY r
320 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16}
321 do_test boundary2-2.2.le.4 {
323 SELECT a FROM t1 WHERE r <= 16384 ORDER BY r DESC
325 } {16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
326 do_test boundary2-2.2.le.5 {
328 SELECT a FROM t1 WHERE r <= 16384 ORDER BY x
330 } {59 60 41 5 31 4 49 30 61 8 16 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
331 do_test boundary2-2.3.1 {
333 SELECT * FROM t1 WHERE r=4294967296
335 } {4294967296 36 0000000100000000}
336 do_test boundary2-2.3.2 {
338 SELECT r, a FROM t1 WHERE x='0000000100000000'
341 do_test boundary2-2.3.3 {
343 SELECT r, x FROM t1 WHERE a=36
345 } {4294967296 0000000100000000}
346 do_test boundary2-2.3.gt.1 {
348 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY a
350 } {3 7 10 13 17 19 22 25 26 27 28 34 35 39 43 45 46 56 57}
351 do_test boundary2-2.3.gt.2 {
353 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY a DESC
355 } {57 56 46 45 43 39 35 34 28 27 26 25 22 19 17 13 10 7 3}
356 do_test boundary2-2.3.gt.3 {
358 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY r
360 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
361 do_test boundary2-2.3.gt.4 {
363 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY r DESC
365 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39}
366 do_test boundary2-2.3.gt.5 {
368 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY x
370 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
371 do_test boundary2-2.3.ge.1 {
373 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY a
375 } {3 7 10 13 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
376 do_test boundary2-2.3.ge.2 {
378 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY a DESC
380 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 13 10 7 3}
381 do_test boundary2-2.3.ge.3 {
383 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY r
385 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
386 do_test boundary2-2.3.ge.4 {
388 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY r DESC
390 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36}
391 do_test boundary2-2.3.ge.5 {
393 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY x
395 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
396 do_test boundary2-2.3.lt.1 {
398 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY a
400 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
401 do_test boundary2-2.3.lt.2 {
403 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY a DESC
405 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
406 do_test boundary2-2.3.lt.3 {
408 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY r
410 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14}
411 do_test boundary2-2.3.lt.4 {
413 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY r DESC
415 } {14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
416 do_test boundary2-2.3.lt.5 {
418 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY x
420 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
421 do_test boundary2-2.3.le.1 {
423 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY a
425 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
426 do_test boundary2-2.3.le.2 {
428 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY a DESC
430 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
431 do_test boundary2-2.3.le.3 {
433 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY r
435 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36}
436 do_test boundary2-2.3.le.4 {
438 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY r DESC
440 } {36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
441 do_test boundary2-2.3.le.5 {
443 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY x
445 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
446 do_test boundary2-2.4.1 {
448 SELECT * FROM t1 WHERE r=16777216
450 } {16777216 6 0000000001000000}
451 do_test boundary2-2.4.2 {
453 SELECT r, a FROM t1 WHERE x='0000000001000000'
456 do_test boundary2-2.4.3 {
458 SELECT r, x FROM t1 WHERE a=6
460 } {16777216 0000000001000000}
461 do_test boundary2-2.4.gt.1 {
463 SELECT a FROM t1 WHERE r > 16777216 ORDER BY a
465 } {3 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
466 do_test boundary2-2.4.gt.2 {
468 SELECT a FROM t1 WHERE r > 16777216 ORDER BY a DESC
470 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 3}
471 do_test boundary2-2.4.gt.3 {
473 SELECT a FROM t1 WHERE r > 16777216 ORDER BY r
475 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
476 do_test boundary2-2.4.gt.4 {
478 SELECT a FROM t1 WHERE r > 16777216 ORDER BY r DESC
480 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12}
481 do_test boundary2-2.4.gt.5 {
483 SELECT a FROM t1 WHERE r > 16777216 ORDER BY x
485 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
486 do_test boundary2-2.4.ge.1 {
488 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY a
490 } {3 6 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
491 do_test boundary2-2.4.ge.2 {
493 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY a DESC
495 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 6 3}
496 do_test boundary2-2.4.ge.3 {
498 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY r
500 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
501 do_test boundary2-2.4.ge.4 {
503 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY r DESC
505 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6}
506 do_test boundary2-2.4.ge.5 {
508 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY x
510 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
511 do_test boundary2-2.4.lt.1 {
513 SELECT a FROM t1 WHERE r < 16777216 ORDER BY a
515 } {1 2 4 5 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
516 do_test boundary2-2.4.lt.2 {
518 SELECT a FROM t1 WHERE r < 16777216 ORDER BY a DESC
520 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 5 4 2 1}
521 do_test boundary2-2.4.lt.3 {
523 SELECT a FROM t1 WHERE r < 16777216 ORDER BY r
525 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9}
526 do_test boundary2-2.4.lt.4 {
528 SELECT a FROM t1 WHERE r < 16777216 ORDER BY r DESC
530 } {9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
531 do_test boundary2-2.4.lt.5 {
533 SELECT a FROM t1 WHERE r < 16777216 ORDER BY x
535 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
536 do_test boundary2-2.4.le.1 {
538 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY a
540 } {1 2 4 5 6 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
541 do_test boundary2-2.4.le.2 {
543 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY a DESC
545 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 6 5 4 2 1}
546 do_test boundary2-2.4.le.3 {
548 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY r
550 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6}
551 do_test boundary2-2.4.le.4 {
553 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY r DESC
555 } {6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
556 do_test boundary2-2.4.le.5 {
558 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY x
560 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
561 do_test boundary2-2.5.1 {
563 SELECT * FROM t1 WHERE r=-32769
565 } {-32769 29 ffffffffffff7fff}
566 do_test boundary2-2.5.2 {
568 SELECT r, a FROM t1 WHERE x='ffffffffffff7fff'
571 do_test boundary2-2.5.3 {
573 SELECT r, x FROM t1 WHERE a=29
575 } {-32769 ffffffffffff7fff}
576 do_test boundary2-2.5.gt.1 {
578 SELECT a FROM t1 WHERE r > -32769 ORDER BY a
580 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
581 do_test boundary2-2.5.gt.2 {
583 SELECT a FROM t1 WHERE r > -32769 ORDER BY a DESC
585 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
586 do_test boundary2-2.5.gt.3 {
588 SELECT a FROM t1 WHERE r > -32769 ORDER BY r
590 } {32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
591 do_test boundary2-2.5.gt.4 {
593 SELECT a FROM t1 WHERE r > -32769 ORDER BY r DESC
595 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32}
596 do_test boundary2-2.5.gt.5 {
598 SELECT a FROM t1 WHERE r > -32769 ORDER BY x
600 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 32 54 53 52 33 38}
601 do_test boundary2-2.5.ge.1 {
603 SELECT a FROM t1 WHERE r >= -32769 ORDER BY a
605 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
606 do_test boundary2-2.5.ge.2 {
608 SELECT a FROM t1 WHERE r >= -32769 ORDER BY a DESC
610 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
611 do_test boundary2-2.5.ge.3 {
613 SELECT a FROM t1 WHERE r >= -32769 ORDER BY r
615 } {29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
616 do_test boundary2-2.5.ge.4 {
618 SELECT a FROM t1 WHERE r >= -32769 ORDER BY r DESC
620 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29}
621 do_test boundary2-2.5.ge.5 {
623 SELECT a FROM t1 WHERE r >= -32769 ORDER BY x
625 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 29 32 54 53 52 33 38}
626 do_test boundary2-2.5.lt.1 {
628 SELECT a FROM t1 WHERE r < -32769 ORDER BY a
630 } {1 2 11 21 37 44 47 55 58 63 64}
631 do_test boundary2-2.5.lt.2 {
633 SELECT a FROM t1 WHERE r < -32769 ORDER BY a DESC
635 } {64 63 58 55 47 44 37 21 11 2 1}
636 do_test boundary2-2.5.lt.3 {
638 SELECT a FROM t1 WHERE r < -32769 ORDER BY r
640 } {55 2 64 21 44 58 63 47 11 1 37}
641 do_test boundary2-2.5.lt.4 {
643 SELECT a FROM t1 WHERE r < -32769 ORDER BY r DESC
645 } {37 1 11 47 63 58 44 21 64 2 55}
646 do_test boundary2-2.5.lt.5 {
648 SELECT a FROM t1 WHERE r < -32769 ORDER BY x
650 } {55 2 64 21 44 58 63 47 11 1 37}
651 do_test boundary2-2.5.le.1 {
653 SELECT a FROM t1 WHERE r <= -32769 ORDER BY a
655 } {1 2 11 21 29 37 44 47 55 58 63 64}
656 do_test boundary2-2.5.le.2 {
658 SELECT a FROM t1 WHERE r <= -32769 ORDER BY a DESC
660 } {64 63 58 55 47 44 37 29 21 11 2 1}
661 do_test boundary2-2.5.le.3 {
663 SELECT a FROM t1 WHERE r <= -32769 ORDER BY r
665 } {55 2 64 21 44 58 63 47 11 1 37 29}
666 do_test boundary2-2.5.le.4 {
668 SELECT a FROM t1 WHERE r <= -32769 ORDER BY r DESC
670 } {29 37 1 11 47 63 58 44 21 64 2 55}
671 do_test boundary2-2.5.le.5 {
673 SELECT a FROM t1 WHERE r <= -32769 ORDER BY x
675 } {55 2 64 21 44 58 63 47 11 1 37 29}
676 do_test boundary2-2.6.1 {
678 SELECT * FROM t1 WHERE r=-140737488355329
680 } {-140737488355329 21 ffff7fffffffffff}
681 do_test boundary2-2.6.2 {
683 SELECT r, a FROM t1 WHERE x='ffff7fffffffffff'
685 } {-140737488355329 21}
686 do_test boundary2-2.6.3 {
688 SELECT r, x FROM t1 WHERE a=21
690 } {-140737488355329 ffff7fffffffffff}
691 do_test boundary2-2.6.gt.1 {
693 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY a
695 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
696 do_test boundary2-2.6.gt.2 {
698 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY a DESC
700 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
701 do_test boundary2-2.6.gt.3 {
703 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY r
705 } {44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
706 do_test boundary2-2.6.gt.4 {
708 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY r DESC
710 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44}
711 do_test boundary2-2.6.gt.5 {
713 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY x
715 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
716 do_test boundary2-2.6.ge.1 {
718 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY a
720 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
721 do_test boundary2-2.6.ge.2 {
723 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY a DESC
725 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
726 do_test boundary2-2.6.ge.3 {
728 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY r
730 } {21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
731 do_test boundary2-2.6.ge.4 {
733 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY r DESC
735 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21}
736 do_test boundary2-2.6.ge.5 {
738 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY x
740 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
741 do_test boundary2-2.6.lt.1 {
743 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY a
746 do_test boundary2-2.6.lt.2 {
748 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY a DESC
751 do_test boundary2-2.6.lt.3 {
753 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY r
756 do_test boundary2-2.6.lt.4 {
758 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY r DESC
761 do_test boundary2-2.6.lt.5 {
763 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY x
766 do_test boundary2-2.6.le.1 {
768 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY a
771 do_test boundary2-2.6.le.2 {
773 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY a DESC
776 do_test boundary2-2.6.le.3 {
778 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY r
781 do_test boundary2-2.6.le.4 {
783 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY r DESC
786 do_test boundary2-2.6.le.5 {
788 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY x
791 do_test boundary2-2.7.1 {
793 SELECT * FROM t1 WHERE r=2
795 } {2 41 0000000000000002}
796 do_test boundary2-2.7.2 {
798 SELECT r, a FROM t1 WHERE x='0000000000000002'
801 do_test boundary2-2.7.3 {
803 SELECT r, x FROM t1 WHERE a=41
805 } {2 0000000000000002}
806 do_test boundary2-2.7.gt.1 {
808 SELECT a FROM t1 WHERE r > 2 ORDER BY a
810 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
811 do_test boundary2-2.7.gt.2 {
813 SELECT a FROM t1 WHERE r > 2 ORDER BY a DESC
815 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
816 do_test boundary2-2.7.gt.3 {
818 SELECT a FROM t1 WHERE r > 2 ORDER BY r
820 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
821 do_test boundary2-2.7.gt.4 {
823 SELECT a FROM t1 WHERE r > 2 ORDER BY r DESC
825 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5}
826 do_test boundary2-2.7.gt.5 {
828 SELECT a FROM t1 WHERE r > 2 ORDER BY x
830 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
831 do_test boundary2-2.7.ge.1 {
833 SELECT a FROM t1 WHERE r >= 2 ORDER BY a
835 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 61 62}
836 do_test boundary2-2.7.ge.2 {
838 SELECT a FROM t1 WHERE r >= 2 ORDER BY a DESC
840 } {62 61 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
841 do_test boundary2-2.7.ge.3 {
843 SELECT a FROM t1 WHERE r >= 2 ORDER BY r
845 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
846 do_test boundary2-2.7.ge.4 {
848 SELECT a FROM t1 WHERE r >= 2 ORDER BY r DESC
850 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41}
851 do_test boundary2-2.7.ge.5 {
853 SELECT a FROM t1 WHERE r >= 2 ORDER BY x
855 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
856 do_test boundary2-2.7.lt.1 {
858 SELECT a FROM t1 WHERE r < 2 ORDER BY a
860 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 60 63 64}
861 do_test boundary2-2.7.lt.2 {
863 SELECT a FROM t1 WHERE r < 2 ORDER BY a DESC
865 } {64 63 60 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
866 do_test boundary2-2.7.lt.3 {
868 SELECT a FROM t1 WHERE r < 2 ORDER BY r
870 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60}
871 do_test boundary2-2.7.lt.4 {
873 SELECT a FROM t1 WHERE r < 2 ORDER BY r DESC
875 } {60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
876 do_test boundary2-2.7.lt.5 {
878 SELECT a FROM t1 WHERE r < 2 ORDER BY x
880 } {59 60 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
881 do_test boundary2-2.7.le.1 {
883 SELECT a FROM t1 WHERE r <= 2 ORDER BY a
885 } {1 2 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
886 do_test boundary2-2.7.le.2 {
888 SELECT a FROM t1 WHERE r <= 2 ORDER BY a DESC
890 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 2 1}
891 do_test boundary2-2.7.le.3 {
893 SELECT a FROM t1 WHERE r <= 2 ORDER BY r
895 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41}
896 do_test boundary2-2.7.le.4 {
898 SELECT a FROM t1 WHERE r <= 2 ORDER BY r DESC
900 } {41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
901 do_test boundary2-2.7.le.5 {
903 SELECT a FROM t1 WHERE r <= 2 ORDER BY x
905 } {59 60 41 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
906 do_test boundary2-2.8.1 {
908 SELECT * FROM t1 WHERE r=4
910 } {4 31 0000000000000004}
911 do_test boundary2-2.8.2 {
913 SELECT r, a FROM t1 WHERE x='0000000000000004'
916 do_test boundary2-2.8.3 {
918 SELECT r, x FROM t1 WHERE a=31
920 } {4 0000000000000004}
921 do_test boundary2-2.8.gt.1 {
923 SELECT a FROM t1 WHERE r > 4 ORDER BY a
925 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
926 do_test boundary2-2.8.gt.2 {
928 SELECT a FROM t1 WHERE r > 4 ORDER BY a DESC
930 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
931 do_test boundary2-2.8.gt.3 {
933 SELECT a FROM t1 WHERE r > 4 ORDER BY r
935 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
936 do_test boundary2-2.8.gt.4 {
938 SELECT a FROM t1 WHERE r > 4 ORDER BY r DESC
940 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4}
941 do_test boundary2-2.8.gt.5 {
943 SELECT a FROM t1 WHERE r > 4 ORDER BY x
945 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
946 do_test boundary2-2.8.ge.1 {
948 SELECT a FROM t1 WHERE r >= 4 ORDER BY a
950 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
951 do_test boundary2-2.8.ge.2 {
953 SELECT a FROM t1 WHERE r >= 4 ORDER BY a DESC
955 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
956 do_test boundary2-2.8.ge.3 {
958 SELECT a FROM t1 WHERE r >= 4 ORDER BY r
960 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
961 do_test boundary2-2.8.ge.4 {
963 SELECT a FROM t1 WHERE r >= 4 ORDER BY r DESC
965 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31}
966 do_test boundary2-2.8.ge.5 {
968 SELECT a FROM t1 WHERE r >= 4 ORDER BY x
970 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
971 do_test boundary2-2.8.lt.1 {
973 SELECT a FROM t1 WHERE r < 4 ORDER BY a
975 } {1 2 5 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
976 do_test boundary2-2.8.lt.2 {
978 SELECT a FROM t1 WHERE r < 4 ORDER BY a DESC
980 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 5 2 1}
981 do_test boundary2-2.8.lt.3 {
983 SELECT a FROM t1 WHERE r < 4 ORDER BY r
985 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5}
986 do_test boundary2-2.8.lt.4 {
988 SELECT a FROM t1 WHERE r < 4 ORDER BY r DESC
990 } {5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
991 do_test boundary2-2.8.lt.5 {
993 SELECT a FROM t1 WHERE r < 4 ORDER BY x
995 } {59 60 41 5 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
996 do_test boundary2-2.8.le.1 {
998 SELECT a FROM t1 WHERE r <= 4 ORDER BY a
1000 } {1 2 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
1001 do_test boundary2-2.8.le.2 {
1003 SELECT a FROM t1 WHERE r <= 4 ORDER BY a DESC
1005 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 2 1}
1006 do_test boundary2-2.8.le.3 {
1008 SELECT a FROM t1 WHERE r <= 4 ORDER BY r
1010 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31}
1011 do_test boundary2-2.8.le.4 {
1013 SELECT a FROM t1 WHERE r <= 4 ORDER BY r DESC
1015 } {31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1016 do_test boundary2-2.8.le.5 {
1018 SELECT a FROM t1 WHERE r <= 4 ORDER BY x
1020 } {59 60 41 5 31 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1021 do_test boundary2-2.9.1 {
1023 SELECT * FROM t1 WHERE r=562949953421311
1025 } {562949953421311 13 0001ffffffffffff}
1026 do_test boundary2-2.9.2 {
1028 SELECT r, a FROM t1 WHERE x='0001ffffffffffff'
1030 } {562949953421311 13}
1031 do_test boundary2-2.9.3 {
1033 SELECT r, x FROM t1 WHERE a=13
1035 } {562949953421311 0001ffffffffffff}
1036 do_test boundary2-2.9.gt.1 {
1038 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY a
1040 } {3 17 27 28 43 45}
1041 do_test boundary2-2.9.gt.2 {
1043 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY a DESC
1045 } {45 43 28 27 17 3}
1046 do_test boundary2-2.9.gt.3 {
1048 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY r
1050 } {43 27 45 17 28 3}
1051 do_test boundary2-2.9.gt.4 {
1053 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY r DESC
1055 } {3 28 17 45 27 43}
1056 do_test boundary2-2.9.gt.5 {
1058 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY x
1060 } {43 27 45 17 28 3}
1061 do_test boundary2-2.9.ge.1 {
1063 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY a
1065 } {3 13 17 27 28 43 45}
1066 do_test boundary2-2.9.ge.2 {
1068 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY a DESC
1070 } {45 43 28 27 17 13 3}
1071 do_test boundary2-2.9.ge.3 {
1073 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY r
1075 } {13 43 27 45 17 28 3}
1076 do_test boundary2-2.9.ge.4 {
1078 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY r DESC
1080 } {3 28 17 45 27 43 13}
1081 do_test boundary2-2.9.ge.5 {
1083 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY x
1085 } {13 43 27 45 17 28 3}
1086 do_test boundary2-2.9.lt.1 {
1088 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY a
1090 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
1091 do_test boundary2-2.9.lt.2 {
1093 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY a DESC
1095 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
1096 do_test boundary2-2.9.lt.3 {
1098 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY r
1100 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26}
1101 do_test boundary2-2.9.lt.4 {
1103 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY r DESC
1105 } {26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1106 do_test boundary2-2.9.lt.5 {
1108 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY x
1110 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1111 do_test boundary2-2.9.le.1 {
1113 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY a
1115 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
1116 do_test boundary2-2.9.le.2 {
1118 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY a DESC
1120 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
1121 do_test boundary2-2.9.le.3 {
1123 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY r
1125 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13}
1126 do_test boundary2-2.9.le.4 {
1128 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY r DESC
1130 } {13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1131 do_test boundary2-2.9.le.5 {
1133 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY x
1135 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1136 do_test boundary2-2.10.1 {
1138 SELECT * FROM t1 WHERE r=256
1140 } {256 61 0000000000000100}
1141 do_test boundary2-2.10.2 {
1143 SELECT r, a FROM t1 WHERE x='0000000000000100'
1146 do_test boundary2-2.10.3 {
1148 SELECT r, x FROM t1 WHERE a=61
1150 } {256 0000000000000100}
1151 do_test boundary2-2.10.gt.1 {
1153 SELECT a FROM t1 WHERE r > 256 ORDER BY a
1155 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
1156 do_test boundary2-2.10.gt.2 {
1158 SELECT a FROM t1 WHERE r > 256 ORDER BY a DESC
1160 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
1161 do_test boundary2-2.10.gt.3 {
1163 SELECT a FROM t1 WHERE r > 256 ORDER BY r
1165 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1166 do_test boundary2-2.10.gt.4 {
1168 SELECT a FROM t1 WHERE r > 256 ORDER BY r DESC
1170 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8}
1171 do_test boundary2-2.10.gt.5 {
1173 SELECT a FROM t1 WHERE r > 256 ORDER BY x
1175 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1176 do_test boundary2-2.10.ge.1 {
1178 SELECT a FROM t1 WHERE r >= 256 ORDER BY a
1180 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
1181 do_test boundary2-2.10.ge.2 {
1183 SELECT a FROM t1 WHERE r >= 256 ORDER BY a DESC
1185 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
1186 do_test boundary2-2.10.ge.3 {
1188 SELECT a FROM t1 WHERE r >= 256 ORDER BY r
1190 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1191 do_test boundary2-2.10.ge.4 {
1193 SELECT a FROM t1 WHERE r >= 256 ORDER BY r DESC
1195 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61}
1196 do_test boundary2-2.10.ge.5 {
1198 SELECT a FROM t1 WHERE r >= 256 ORDER BY x
1200 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1201 do_test boundary2-2.10.lt.1 {
1203 SELECT a FROM t1 WHERE r < 256 ORDER BY a
1205 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
1206 do_test boundary2-2.10.lt.2 {
1208 SELECT a FROM t1 WHERE r < 256 ORDER BY a DESC
1210 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
1211 do_test boundary2-2.10.lt.3 {
1213 SELECT a FROM t1 WHERE r < 256 ORDER BY r
1215 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30}
1216 do_test boundary2-2.10.lt.4 {
1218 SELECT a FROM t1 WHERE r < 256 ORDER BY r DESC
1220 } {30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1221 do_test boundary2-2.10.lt.5 {
1223 SELECT a FROM t1 WHERE r < 256 ORDER BY x
1225 } {59 60 41 5 31 4 49 30 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1226 do_test boundary2-2.10.le.1 {
1228 SELECT a FROM t1 WHERE r <= 256 ORDER BY a
1230 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
1231 do_test boundary2-2.10.le.2 {
1233 SELECT a FROM t1 WHERE r <= 256 ORDER BY a DESC
1235 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
1236 do_test boundary2-2.10.le.3 {
1238 SELECT a FROM t1 WHERE r <= 256 ORDER BY r
1240 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61}
1241 do_test boundary2-2.10.le.4 {
1243 SELECT a FROM t1 WHERE r <= 256 ORDER BY r DESC
1245 } {61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1246 do_test boundary2-2.10.le.5 {
1248 SELECT a FROM t1 WHERE r <= 256 ORDER BY x
1250 } {59 60 41 5 31 4 49 30 61 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1251 do_test boundary2-2.11.1 {
1253 SELECT * FROM t1 WHERE r=34359738368
1255 } {34359738368 22 0000000800000000}
1256 do_test boundary2-2.11.2 {
1258 SELECT r, a FROM t1 WHERE x='0000000800000000'
1261 do_test boundary2-2.11.3 {
1263 SELECT r, x FROM t1 WHERE a=22
1265 } {34359738368 0000000800000000}
1266 do_test boundary2-2.11.gt.1 {
1268 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY a
1270 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 46 56 57}
1271 do_test boundary2-2.11.gt.2 {
1273 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY a DESC
1275 } {57 56 46 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
1276 do_test boundary2-2.11.gt.3 {
1278 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY r
1280 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1281 do_test boundary2-2.11.gt.4 {
1283 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY r DESC
1285 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46}
1286 do_test boundary2-2.11.gt.5 {
1288 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY x
1290 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1291 do_test boundary2-2.11.ge.1 {
1293 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY a
1295 } {3 7 10 13 17 19 22 25 26 27 28 34 35 43 45 46 56 57}
1296 do_test boundary2-2.11.ge.2 {
1298 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY a DESC
1300 } {57 56 46 45 43 35 34 28 27 26 25 22 19 17 13 10 7 3}
1301 do_test boundary2-2.11.ge.3 {
1303 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY r
1305 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1306 do_test boundary2-2.11.ge.4 {
1308 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY r DESC
1310 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22}
1311 do_test boundary2-2.11.ge.5 {
1313 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY x
1315 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1316 do_test boundary2-2.11.lt.1 {
1318 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY a
1320 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
1321 do_test boundary2-2.11.lt.2 {
1323 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY a DESC
1325 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
1326 do_test boundary2-2.11.lt.3 {
1328 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY r
1330 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39}
1331 do_test boundary2-2.11.lt.4 {
1333 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY r DESC
1335 } {39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1336 do_test boundary2-2.11.lt.5 {
1338 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY x
1340 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1341 do_test boundary2-2.11.le.1 {
1343 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY a
1345 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
1346 do_test boundary2-2.11.le.2 {
1348 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY a DESC
1350 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
1351 do_test boundary2-2.11.le.3 {
1353 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY r
1355 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22}
1356 do_test boundary2-2.11.le.4 {
1358 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY r DESC
1360 } {22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1361 do_test boundary2-2.11.le.5 {
1363 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY x
1365 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1366 do_test boundary2-2.12.1 {
1368 SELECT * FROM t1 WHERE r=65536
1370 } {65536 62 0000000000010000}
1371 do_test boundary2-2.12.2 {
1373 SELECT r, a FROM t1 WHERE x='0000000000010000'
1376 do_test boundary2-2.12.3 {
1378 SELECT r, x FROM t1 WHERE a=62
1380 } {65536 0000000000010000}
1381 do_test boundary2-2.12.gt.1 {
1383 SELECT a FROM t1 WHERE r > 65536 ORDER BY a
1385 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
1386 do_test boundary2-2.12.gt.2 {
1388 SELECT a FROM t1 WHERE r > 65536 ORDER BY a DESC
1390 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
1391 do_test boundary2-2.12.gt.3 {
1393 SELECT a FROM t1 WHERE r > 65536 ORDER BY r
1395 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1396 do_test boundary2-2.12.gt.4 {
1398 SELECT a FROM t1 WHERE r > 65536 ORDER BY r DESC
1400 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15}
1401 do_test boundary2-2.12.gt.5 {
1403 SELECT a FROM t1 WHERE r > 65536 ORDER BY x
1405 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1406 do_test boundary2-2.12.ge.1 {
1408 SELECT a FROM t1 WHERE r >= 65536 ORDER BY a
1410 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57 62}
1411 do_test boundary2-2.12.ge.2 {
1413 SELECT a FROM t1 WHERE r >= 65536 ORDER BY a DESC
1415 } {62 57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
1416 do_test boundary2-2.12.ge.3 {
1418 SELECT a FROM t1 WHERE r >= 65536 ORDER BY r
1420 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1421 do_test boundary2-2.12.ge.4 {
1423 SELECT a FROM t1 WHERE r >= 65536 ORDER BY r DESC
1425 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62}
1426 do_test boundary2-2.12.ge.5 {
1428 SELECT a FROM t1 WHERE r >= 65536 ORDER BY x
1430 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1431 do_test boundary2-2.12.lt.1 {
1433 SELECT a FROM t1 WHERE r < 65536 ORDER BY a
1435 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 63 64}
1436 do_test boundary2-2.12.lt.2 {
1438 SELECT a FROM t1 WHERE r < 65536 ORDER BY a DESC
1440 } {64 63 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
1441 do_test boundary2-2.12.lt.3 {
1443 SELECT a FROM t1 WHERE r < 65536 ORDER BY r
1445 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48}
1446 do_test boundary2-2.12.lt.4 {
1448 SELECT a FROM t1 WHERE r < 65536 ORDER BY r DESC
1450 } {48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1451 do_test boundary2-2.12.lt.5 {
1453 SELECT a FROM t1 WHERE r < 65536 ORDER BY x
1455 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1456 do_test boundary2-2.12.le.1 {
1458 SELECT a FROM t1 WHERE r <= 65536 ORDER BY a
1460 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
1461 do_test boundary2-2.12.le.2 {
1463 SELECT a FROM t1 WHERE r <= 65536 ORDER BY a DESC
1465 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
1466 do_test boundary2-2.12.le.3 {
1468 SELECT a FROM t1 WHERE r <= 65536 ORDER BY r
1470 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62}
1471 do_test boundary2-2.12.le.4 {
1473 SELECT a FROM t1 WHERE r <= 65536 ORDER BY r DESC
1475 } {62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1476 do_test boundary2-2.12.le.5 {
1478 SELECT a FROM t1 WHERE r <= 65536 ORDER BY x
1480 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1481 do_test boundary2-2.13.1 {
1483 SELECT * FROM t1 WHERE r=268435456
1485 } {268435456 40 0000000010000000}
1486 do_test boundary2-2.13.2 {
1488 SELECT r, a FROM t1 WHERE x='0000000010000000'
1491 do_test boundary2-2.13.3 {
1493 SELECT r, x FROM t1 WHERE a=40
1495 } {268435456 0000000010000000}
1496 do_test boundary2-2.13.gt.1 {
1498 SELECT a FROM t1 WHERE r > 268435456 ORDER BY a
1500 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
1501 do_test boundary2-2.13.gt.2 {
1503 SELECT a FROM t1 WHERE r > 268435456 ORDER BY a DESC
1505 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
1506 do_test boundary2-2.13.gt.3 {
1508 SELECT a FROM t1 WHERE r > 268435456 ORDER BY r
1510 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1511 do_test boundary2-2.13.gt.4 {
1513 SELECT a FROM t1 WHERE r > 268435456 ORDER BY r DESC
1515 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20}
1516 do_test boundary2-2.13.gt.5 {
1518 SELECT a FROM t1 WHERE r > 268435456 ORDER BY x
1520 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1521 do_test boundary2-2.13.ge.1 {
1523 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY a
1525 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
1526 do_test boundary2-2.13.ge.2 {
1528 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY a DESC
1530 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
1531 do_test boundary2-2.13.ge.3 {
1533 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY r
1535 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1536 do_test boundary2-2.13.ge.4 {
1538 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY r DESC
1540 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40}
1541 do_test boundary2-2.13.ge.5 {
1543 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY x
1545 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1546 do_test boundary2-2.13.lt.1 {
1548 SELECT a FROM t1 WHERE r < 268435456 ORDER BY a
1550 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
1551 do_test boundary2-2.13.lt.2 {
1553 SELECT a FROM t1 WHERE r < 268435456 ORDER BY a DESC
1555 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
1556 do_test boundary2-2.13.lt.3 {
1558 SELECT a FROM t1 WHERE r < 268435456 ORDER BY r
1560 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12}
1561 do_test boundary2-2.13.lt.4 {
1563 SELECT a FROM t1 WHERE r < 268435456 ORDER BY r DESC
1565 } {12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1566 do_test boundary2-2.13.lt.5 {
1568 SELECT a FROM t1 WHERE r < 268435456 ORDER BY x
1570 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1571 do_test boundary2-2.13.le.1 {
1573 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY a
1575 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
1576 do_test boundary2-2.13.le.2 {
1578 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY a DESC
1580 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
1581 do_test boundary2-2.13.le.3 {
1583 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY r
1585 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40}
1586 do_test boundary2-2.13.le.4 {
1588 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY r DESC
1590 } {40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1591 do_test boundary2-2.13.le.5 {
1593 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY x
1595 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1596 do_test boundary2-2.14.1 {
1598 SELECT * FROM t1 WHERE r=-140737488355328
1600 } {-140737488355328 44 ffff800000000000}
1601 do_test boundary2-2.14.2 {
1603 SELECT r, a FROM t1 WHERE x='ffff800000000000'
1605 } {-140737488355328 44}
1606 do_test boundary2-2.14.3 {
1608 SELECT r, x FROM t1 WHERE a=44
1610 } {-140737488355328 ffff800000000000}
1611 do_test boundary2-2.14.gt.1 {
1613 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY a
1615 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
1616 do_test boundary2-2.14.gt.2 {
1618 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY a DESC
1620 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
1621 do_test boundary2-2.14.gt.3 {
1623 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY r
1625 } {58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1626 do_test boundary2-2.14.gt.4 {
1628 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY r DESC
1630 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58}
1631 do_test boundary2-2.14.gt.5 {
1633 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY x
1635 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 58 63 47 11 1 37 29 32 54 53 52 33 38}
1636 do_test boundary2-2.14.ge.1 {
1638 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY a
1640 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
1641 do_test boundary2-2.14.ge.2 {
1643 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY a DESC
1645 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
1646 do_test boundary2-2.14.ge.3 {
1648 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY r
1650 } {44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1651 do_test boundary2-2.14.ge.4 {
1653 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY r DESC
1655 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44}
1656 do_test boundary2-2.14.ge.5 {
1658 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY x
1660 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1661 do_test boundary2-2.14.lt.1 {
1663 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY a
1666 do_test boundary2-2.14.lt.2 {
1668 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY a DESC
1671 do_test boundary2-2.14.lt.3 {
1673 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY r
1676 do_test boundary2-2.14.lt.4 {
1678 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY r DESC
1681 do_test boundary2-2.14.lt.5 {
1683 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY x
1686 do_test boundary2-2.14.le.1 {
1688 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY a
1691 do_test boundary2-2.14.le.2 {
1693 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY a DESC
1696 do_test boundary2-2.14.le.3 {
1698 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY r
1701 do_test boundary2-2.14.le.4 {
1703 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY r DESC
1706 do_test boundary2-2.14.le.5 {
1708 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY x
1711 do_test boundary2-2.15.1 {
1713 SELECT * FROM t1 WHERE r=1099511627776
1715 } {1099511627776 19 0000010000000000}
1716 do_test boundary2-2.15.2 {
1718 SELECT r, a FROM t1 WHERE x='0000010000000000'
1720 } {1099511627776 19}
1721 do_test boundary2-2.15.3 {
1723 SELECT r, x FROM t1 WHERE a=19
1725 } {1099511627776 0000010000000000}
1726 do_test boundary2-2.15.gt.1 {
1728 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY a
1730 } {3 7 10 13 17 25 26 27 28 34 43 45 56}
1731 do_test boundary2-2.15.gt.2 {
1733 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY a DESC
1735 } {56 45 43 34 28 27 26 25 17 13 10 7 3}
1736 do_test boundary2-2.15.gt.3 {
1738 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY r
1740 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
1741 do_test boundary2-2.15.gt.4 {
1743 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY r DESC
1745 } {3 28 17 45 27 43 13 26 10 34 25 56 7}
1746 do_test boundary2-2.15.gt.5 {
1748 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY x
1750 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
1751 do_test boundary2-2.15.ge.1 {
1753 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY a
1755 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56}
1756 do_test boundary2-2.15.ge.2 {
1758 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY a DESC
1760 } {56 45 43 34 28 27 26 25 19 17 13 10 7 3}
1761 do_test boundary2-2.15.ge.3 {
1763 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY r
1765 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1766 do_test boundary2-2.15.ge.4 {
1768 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY r DESC
1770 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19}
1771 do_test boundary2-2.15.ge.5 {
1773 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY x
1775 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1776 do_test boundary2-2.15.lt.1 {
1778 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY a
1780 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
1781 do_test boundary2-2.15.lt.2 {
1783 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY a DESC
1785 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
1786 do_test boundary2-2.15.lt.3 {
1788 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY r
1790 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57}
1791 do_test boundary2-2.15.lt.4 {
1793 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY r DESC
1795 } {57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1796 do_test boundary2-2.15.lt.5 {
1798 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY x
1800 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1801 do_test boundary2-2.15.le.1 {
1803 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY a
1805 } {1 2 4 5 6 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
1806 do_test boundary2-2.15.le.2 {
1808 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY a DESC
1810 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 6 5 4 2 1}
1811 do_test boundary2-2.15.le.3 {
1813 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY r
1815 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19}
1816 do_test boundary2-2.15.le.4 {
1818 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY r DESC
1820 } {19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1821 do_test boundary2-2.15.le.5 {
1823 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY x
1825 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1826 do_test boundary2-2.16.gt.1 {
1828 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY a
1831 do_test boundary2-2.16.gt.2 {
1833 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY a DESC
1836 do_test boundary2-2.16.gt.3 {
1838 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY r
1841 do_test boundary2-2.16.gt.4 {
1843 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY r DESC
1846 do_test boundary2-2.16.gt.5 {
1848 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY x
1851 do_test boundary2-2.16.ge.1 {
1853 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY a
1856 do_test boundary2-2.16.ge.2 {
1858 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY a DESC
1861 do_test boundary2-2.16.ge.3 {
1863 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY r
1866 do_test boundary2-2.16.ge.4 {
1868 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY r DESC
1871 do_test boundary2-2.16.ge.5 {
1873 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY x
1876 do_test boundary2-2.16.lt.1 {
1878 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY a
1880 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
1881 do_test boundary2-2.16.lt.2 {
1883 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY a DESC
1885 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
1886 do_test boundary2-2.16.lt.3 {
1888 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY r
1890 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28}
1891 do_test boundary2-2.16.lt.4 {
1893 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY r DESC
1895 } {28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1896 do_test boundary2-2.16.lt.5 {
1898 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY x
1900 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1901 do_test boundary2-2.16.le.1 {
1903 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY a
1905 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
1906 do_test boundary2-2.16.le.2 {
1908 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY a DESC
1910 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
1911 do_test boundary2-2.16.le.3 {
1913 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY r
1915 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1916 do_test boundary2-2.16.le.4 {
1918 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY r DESC
1920 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
1921 do_test boundary2-2.16.le.5 {
1923 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY x
1925 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
1926 do_test boundary2-2.17.1 {
1928 SELECT * FROM t1 WHERE r=32768
1930 } {32768 50 0000000000008000}
1931 do_test boundary2-2.17.2 {
1933 SELECT r, a FROM t1 WHERE x='0000000000008000'
1936 do_test boundary2-2.17.3 {
1938 SELECT r, x FROM t1 WHERE a=50
1940 } {32768 0000000000008000}
1941 do_test boundary2-2.17.gt.1 {
1943 SELECT a FROM t1 WHERE r > 32768 ORDER BY a
1945 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 51 56 57 62}
1946 do_test boundary2-2.17.gt.2 {
1948 SELECT a FROM t1 WHERE r > 32768 ORDER BY a DESC
1950 } {62 57 56 51 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
1951 do_test boundary2-2.17.gt.3 {
1953 SELECT a FROM t1 WHERE r > 32768 ORDER BY r
1955 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1956 do_test boundary2-2.17.gt.4 {
1958 SELECT a FROM t1 WHERE r > 32768 ORDER BY r DESC
1960 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48}
1961 do_test boundary2-2.17.gt.5 {
1963 SELECT a FROM t1 WHERE r > 32768 ORDER BY x
1965 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1966 do_test boundary2-2.17.ge.1 {
1968 SELECT a FROM t1 WHERE r >= 32768 ORDER BY a
1970 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
1971 do_test boundary2-2.17.ge.2 {
1973 SELECT a FROM t1 WHERE r >= 32768 ORDER BY a DESC
1975 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
1976 do_test boundary2-2.17.ge.3 {
1978 SELECT a FROM t1 WHERE r >= 32768 ORDER BY r
1980 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1981 do_test boundary2-2.17.ge.4 {
1983 SELECT a FROM t1 WHERE r >= 32768 ORDER BY r DESC
1985 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50}
1986 do_test boundary2-2.17.ge.5 {
1988 SELECT a FROM t1 WHERE r >= 32768 ORDER BY x
1990 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
1991 do_test boundary2-2.17.lt.1 {
1993 SELECT a FROM t1 WHERE r < 32768 ORDER BY a
1995 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
1996 do_test boundary2-2.17.lt.2 {
1998 SELECT a FROM t1 WHERE r < 32768 ORDER BY a DESC
2000 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
2001 do_test boundary2-2.17.lt.3 {
2003 SELECT a FROM t1 WHERE r < 32768 ORDER BY r
2005 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23}
2006 do_test boundary2-2.17.lt.4 {
2008 SELECT a FROM t1 WHERE r < 32768 ORDER BY r DESC
2010 } {23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2011 do_test boundary2-2.17.lt.5 {
2013 SELECT a FROM t1 WHERE r < 32768 ORDER BY x
2015 } {59 60 41 5 31 4 49 30 61 8 16 23 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2016 do_test boundary2-2.17.le.1 {
2018 SELECT a FROM t1 WHERE r <= 32768 ORDER BY a
2020 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 50 52 53 54 55 58 59 60 61 63 64}
2021 do_test boundary2-2.17.le.2 {
2023 SELECT a FROM t1 WHERE r <= 32768 ORDER BY a DESC
2025 } {64 63 61 60 59 58 55 54 53 52 50 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
2026 do_test boundary2-2.17.le.3 {
2028 SELECT a FROM t1 WHERE r <= 32768 ORDER BY r
2030 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50}
2031 do_test boundary2-2.17.le.4 {
2033 SELECT a FROM t1 WHERE r <= 32768 ORDER BY r DESC
2035 } {50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2036 do_test boundary2-2.17.le.5 {
2038 SELECT a FROM t1 WHERE r <= 32768 ORDER BY x
2040 } {59 60 41 5 31 4 49 30 61 8 16 23 50 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2041 do_test boundary2-2.18.1 {
2043 SELECT * FROM t1 WHERE r=-36028797018963968
2045 } {-36028797018963968 64 ff80000000000000}
2046 do_test boundary2-2.18.2 {
2048 SELECT r, a FROM t1 WHERE x='ff80000000000000'
2050 } {-36028797018963968 64}
2051 do_test boundary2-2.18.3 {
2053 SELECT r, x FROM t1 WHERE a=64
2055 } {-36028797018963968 ff80000000000000}
2056 do_test boundary2-2.18.gt.1 {
2058 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY a
2060 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
2061 do_test boundary2-2.18.gt.2 {
2063 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY a DESC
2065 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
2066 do_test boundary2-2.18.gt.3 {
2068 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY r
2070 } {21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2071 do_test boundary2-2.18.gt.4 {
2073 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY r DESC
2075 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21}
2076 do_test boundary2-2.18.gt.5 {
2078 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY x
2080 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2081 do_test boundary2-2.18.ge.1 {
2083 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY a
2085 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
2086 do_test boundary2-2.18.ge.2 {
2088 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY a DESC
2090 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
2091 do_test boundary2-2.18.ge.3 {
2093 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY r
2095 } {64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2096 do_test boundary2-2.18.ge.4 {
2098 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY r DESC
2100 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64}
2101 do_test boundary2-2.18.ge.5 {
2103 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY x
2105 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2106 do_test boundary2-2.18.lt.1 {
2108 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY a
2111 do_test boundary2-2.18.lt.2 {
2113 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY a DESC
2116 do_test boundary2-2.18.lt.3 {
2118 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY r
2121 do_test boundary2-2.18.lt.4 {
2123 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY r DESC
2126 do_test boundary2-2.18.lt.5 {
2128 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY x
2131 do_test boundary2-2.18.le.1 {
2133 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY a
2136 do_test boundary2-2.18.le.2 {
2138 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY a DESC
2141 do_test boundary2-2.18.le.3 {
2143 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY r
2146 do_test boundary2-2.18.le.4 {
2148 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY r DESC
2151 do_test boundary2-2.18.le.5 {
2153 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY x
2156 do_test boundary2-2.19.1 {
2158 SELECT * FROM t1 WHERE r=65535
2160 } {65535 48 000000000000ffff}
2161 do_test boundary2-2.19.2 {
2163 SELECT r, a FROM t1 WHERE x='000000000000ffff'
2166 do_test boundary2-2.19.3 {
2168 SELECT r, x FROM t1 WHERE a=48
2170 } {65535 000000000000ffff}
2171 do_test boundary2-2.19.gt.1 {
2173 SELECT a FROM t1 WHERE r > 65535 ORDER BY a
2175 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57 62}
2176 do_test boundary2-2.19.gt.2 {
2178 SELECT a FROM t1 WHERE r > 65535 ORDER BY a DESC
2180 } {62 57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
2181 do_test boundary2-2.19.gt.3 {
2183 SELECT a FROM t1 WHERE r > 65535 ORDER BY r
2185 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2186 do_test boundary2-2.19.gt.4 {
2188 SELECT a FROM t1 WHERE r > 65535 ORDER BY r DESC
2190 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62}
2191 do_test boundary2-2.19.gt.5 {
2193 SELECT a FROM t1 WHERE r > 65535 ORDER BY x
2195 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2196 do_test boundary2-2.19.ge.1 {
2198 SELECT a FROM t1 WHERE r >= 65535 ORDER BY a
2200 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 51 56 57 62}
2201 do_test boundary2-2.19.ge.2 {
2203 SELECT a FROM t1 WHERE r >= 65535 ORDER BY a DESC
2205 } {62 57 56 51 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
2206 do_test boundary2-2.19.ge.3 {
2208 SELECT a FROM t1 WHERE r >= 65535 ORDER BY r
2210 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2211 do_test boundary2-2.19.ge.4 {
2213 SELECT a FROM t1 WHERE r >= 65535 ORDER BY r DESC
2215 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48}
2216 do_test boundary2-2.19.ge.5 {
2218 SELECT a FROM t1 WHERE r >= 65535 ORDER BY x
2220 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2221 do_test boundary2-2.19.lt.1 {
2223 SELECT a FROM t1 WHERE r < 65535 ORDER BY a
2225 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 50 52 53 54 55 58 59 60 61 63 64}
2226 do_test boundary2-2.19.lt.2 {
2228 SELECT a FROM t1 WHERE r < 65535 ORDER BY a DESC
2230 } {64 63 61 60 59 58 55 54 53 52 50 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
2231 do_test boundary2-2.19.lt.3 {
2233 SELECT a FROM t1 WHERE r < 65535 ORDER BY r
2235 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50}
2236 do_test boundary2-2.19.lt.4 {
2238 SELECT a FROM t1 WHERE r < 65535 ORDER BY r DESC
2240 } {50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2241 do_test boundary2-2.19.lt.5 {
2243 SELECT a FROM t1 WHERE r < 65535 ORDER BY x
2245 } {59 60 41 5 31 4 49 30 61 8 16 23 50 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2246 do_test boundary2-2.19.le.1 {
2248 SELECT a FROM t1 WHERE r <= 65535 ORDER BY a
2250 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 63 64}
2251 do_test boundary2-2.19.le.2 {
2253 SELECT a FROM t1 WHERE r <= 65535 ORDER BY a DESC
2255 } {64 63 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
2256 do_test boundary2-2.19.le.3 {
2258 SELECT a FROM t1 WHERE r <= 65535 ORDER BY r
2260 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48}
2261 do_test boundary2-2.19.le.4 {
2263 SELECT a FROM t1 WHERE r <= 65535 ORDER BY r DESC
2265 } {48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2266 do_test boundary2-2.19.le.5 {
2268 SELECT a FROM t1 WHERE r <= 65535 ORDER BY x
2270 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2271 do_test boundary2-2.20.1 {
2273 SELECT * FROM t1 WHERE r=4294967295
2275 } {4294967295 14 00000000ffffffff}
2276 do_test boundary2-2.20.2 {
2278 SELECT r, a FROM t1 WHERE x='00000000ffffffff'
2281 do_test boundary2-2.20.3 {
2283 SELECT r, x FROM t1 WHERE a=14
2285 } {4294967295 00000000ffffffff}
2286 do_test boundary2-2.20.gt.1 {
2288 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY a
2290 } {3 7 10 13 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
2291 do_test boundary2-2.20.gt.2 {
2293 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY a DESC
2295 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 13 10 7 3}
2296 do_test boundary2-2.20.gt.3 {
2298 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY r
2300 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2301 do_test boundary2-2.20.gt.4 {
2303 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY r DESC
2305 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36}
2306 do_test boundary2-2.20.gt.5 {
2308 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY x
2310 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2311 do_test boundary2-2.20.ge.1 {
2313 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY a
2315 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
2316 do_test boundary2-2.20.ge.2 {
2318 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY a DESC
2320 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
2321 do_test boundary2-2.20.ge.3 {
2323 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY r
2325 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2326 do_test boundary2-2.20.ge.4 {
2328 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY r DESC
2330 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14}
2331 do_test boundary2-2.20.ge.5 {
2333 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY x
2335 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2336 do_test boundary2-2.20.lt.1 {
2338 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY a
2340 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
2341 do_test boundary2-2.20.lt.2 {
2343 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY a DESC
2345 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
2346 do_test boundary2-2.20.lt.3 {
2348 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY r
2350 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51}
2351 do_test boundary2-2.20.lt.4 {
2353 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY r DESC
2355 } {51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2356 do_test boundary2-2.20.lt.5 {
2358 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY x
2360 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2361 do_test boundary2-2.20.le.1 {
2363 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY a
2365 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
2366 do_test boundary2-2.20.le.2 {
2368 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY a DESC
2370 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
2371 do_test boundary2-2.20.le.3 {
2373 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY r
2375 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14}
2376 do_test boundary2-2.20.le.4 {
2378 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY r DESC
2380 } {14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2381 do_test boundary2-2.20.le.5 {
2383 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY x
2385 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2386 do_test boundary2-2.21.1 {
2388 SELECT * FROM t1 WHERE r=1099511627775
2390 } {1099511627775 57 000000ffffffffff}
2391 do_test boundary2-2.21.2 {
2393 SELECT r, a FROM t1 WHERE x='000000ffffffffff'
2395 } {1099511627775 57}
2396 do_test boundary2-2.21.3 {
2398 SELECT r, x FROM t1 WHERE a=57
2400 } {1099511627775 000000ffffffffff}
2401 do_test boundary2-2.21.gt.1 {
2403 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY a
2405 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56}
2406 do_test boundary2-2.21.gt.2 {
2408 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY a DESC
2410 } {56 45 43 34 28 27 26 25 19 17 13 10 7 3}
2411 do_test boundary2-2.21.gt.3 {
2413 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY r
2415 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2416 do_test boundary2-2.21.gt.4 {
2418 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY r DESC
2420 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19}
2421 do_test boundary2-2.21.gt.5 {
2423 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY x
2425 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2426 do_test boundary2-2.21.ge.1 {
2428 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY a
2430 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56 57}
2431 do_test boundary2-2.21.ge.2 {
2433 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY a DESC
2435 } {57 56 45 43 34 28 27 26 25 19 17 13 10 7 3}
2436 do_test boundary2-2.21.ge.3 {
2438 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY r
2440 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2441 do_test boundary2-2.21.ge.4 {
2443 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY r DESC
2445 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57}
2446 do_test boundary2-2.21.ge.5 {
2448 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY x
2450 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2451 do_test boundary2-2.21.lt.1 {
2453 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY a
2455 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
2456 do_test boundary2-2.21.lt.2 {
2458 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY a DESC
2460 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
2461 do_test boundary2-2.21.lt.3 {
2463 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY r
2465 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35}
2466 do_test boundary2-2.21.lt.4 {
2468 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY r DESC
2470 } {35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2471 do_test boundary2-2.21.lt.5 {
2473 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY x
2475 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2476 do_test boundary2-2.21.le.1 {
2478 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY a
2480 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
2481 do_test boundary2-2.21.le.2 {
2483 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY a DESC
2485 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
2486 do_test boundary2-2.21.le.3 {
2488 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY r
2490 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57}
2491 do_test boundary2-2.21.le.4 {
2493 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY r DESC
2495 } {57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2496 do_test boundary2-2.21.le.5 {
2498 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY x
2500 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2501 do_test boundary2-2.22.1 {
2503 SELECT * FROM t1 WHERE r=-8388608
2505 } {-8388608 37 ffffffffff800000}
2506 do_test boundary2-2.22.2 {
2508 SELECT r, a FROM t1 WHERE x='ffffffffff800000'
2511 do_test boundary2-2.22.3 {
2513 SELECT r, x FROM t1 WHERE a=37
2515 } {-8388608 ffffffffff800000}
2516 do_test boundary2-2.22.gt.1 {
2518 SELECT a FROM t1 WHERE r > -8388608 ORDER BY a
2520 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
2521 do_test boundary2-2.22.gt.2 {
2523 SELECT a FROM t1 WHERE r > -8388608 ORDER BY a DESC
2525 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
2526 do_test boundary2-2.22.gt.3 {
2528 SELECT a FROM t1 WHERE r > -8388608 ORDER BY r
2530 } {29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2531 do_test boundary2-2.22.gt.4 {
2533 SELECT a FROM t1 WHERE r > -8388608 ORDER BY r DESC
2535 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29}
2536 do_test boundary2-2.22.gt.5 {
2538 SELECT a FROM t1 WHERE r > -8388608 ORDER BY x
2540 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 29 32 54 53 52 33 38}
2541 do_test boundary2-2.22.ge.1 {
2543 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY a
2545 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
2546 do_test boundary2-2.22.ge.2 {
2548 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY a DESC
2550 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
2551 do_test boundary2-2.22.ge.3 {
2553 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY r
2555 } {37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2556 do_test boundary2-2.22.ge.4 {
2558 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY r DESC
2560 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37}
2561 do_test boundary2-2.22.ge.5 {
2563 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY x
2565 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 37 29 32 54 53 52 33 38}
2566 do_test boundary2-2.22.lt.1 {
2568 SELECT a FROM t1 WHERE r < -8388608 ORDER BY a
2570 } {1 2 11 21 44 47 55 58 63 64}
2571 do_test boundary2-2.22.lt.2 {
2573 SELECT a FROM t1 WHERE r < -8388608 ORDER BY a DESC
2575 } {64 63 58 55 47 44 21 11 2 1}
2576 do_test boundary2-2.22.lt.3 {
2578 SELECT a FROM t1 WHERE r < -8388608 ORDER BY r
2580 } {55 2 64 21 44 58 63 47 11 1}
2581 do_test boundary2-2.22.lt.4 {
2583 SELECT a FROM t1 WHERE r < -8388608 ORDER BY r DESC
2585 } {1 11 47 63 58 44 21 64 2 55}
2586 do_test boundary2-2.22.lt.5 {
2588 SELECT a FROM t1 WHERE r < -8388608 ORDER BY x
2590 } {55 2 64 21 44 58 63 47 11 1}
2591 do_test boundary2-2.22.le.1 {
2593 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY a
2595 } {1 2 11 21 37 44 47 55 58 63 64}
2596 do_test boundary2-2.22.le.2 {
2598 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY a DESC
2600 } {64 63 58 55 47 44 37 21 11 2 1}
2601 do_test boundary2-2.22.le.3 {
2603 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY r
2605 } {55 2 64 21 44 58 63 47 11 1 37}
2606 do_test boundary2-2.22.le.4 {
2608 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY r DESC
2610 } {37 1 11 47 63 58 44 21 64 2 55}
2611 do_test boundary2-2.22.le.5 {
2613 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY x
2615 } {55 2 64 21 44 58 63 47 11 1 37}
2616 do_test boundary2-2.23.1 {
2618 SELECT * FROM t1 WHERE r=549755813888
2620 } {549755813888 35 0000008000000000}
2621 do_test boundary2-2.23.2 {
2623 SELECT r, a FROM t1 WHERE x='0000008000000000'
2626 do_test boundary2-2.23.3 {
2628 SELECT r, x FROM t1 WHERE a=35
2630 } {549755813888 0000008000000000}
2631 do_test boundary2-2.23.gt.1 {
2633 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY a
2635 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56 57}
2636 do_test boundary2-2.23.gt.2 {
2638 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY a DESC
2640 } {57 56 45 43 34 28 27 26 25 19 17 13 10 7 3}
2641 do_test boundary2-2.23.gt.3 {
2643 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY r
2645 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2646 do_test boundary2-2.23.gt.4 {
2648 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY r DESC
2650 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57}
2651 do_test boundary2-2.23.gt.5 {
2653 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY x
2655 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2656 do_test boundary2-2.23.ge.1 {
2658 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY a
2660 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 56 57}
2661 do_test boundary2-2.23.ge.2 {
2663 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY a DESC
2665 } {57 56 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
2666 do_test boundary2-2.23.ge.3 {
2668 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY r
2670 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2671 do_test boundary2-2.23.ge.4 {
2673 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY r DESC
2675 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35}
2676 do_test boundary2-2.23.ge.5 {
2678 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY x
2680 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2681 do_test boundary2-2.23.lt.1 {
2683 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY a
2685 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
2686 do_test boundary2-2.23.lt.2 {
2688 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY a DESC
2690 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
2691 do_test boundary2-2.23.lt.3 {
2693 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY r
2695 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46}
2696 do_test boundary2-2.23.lt.4 {
2698 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY r DESC
2700 } {46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2701 do_test boundary2-2.23.lt.5 {
2703 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY x
2705 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2706 do_test boundary2-2.23.le.1 {
2708 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY a
2710 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
2711 do_test boundary2-2.23.le.2 {
2713 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY a DESC
2715 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
2716 do_test boundary2-2.23.le.3 {
2718 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY r
2720 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35}
2721 do_test boundary2-2.23.le.4 {
2723 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY r DESC
2725 } {35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2726 do_test boundary2-2.23.le.5 {
2728 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY x
2730 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2731 do_test boundary2-2.24.1 {
2733 SELECT * FROM t1 WHERE r=8388607
2735 } {8388607 18 00000000007fffff}
2736 do_test boundary2-2.24.2 {
2738 SELECT r, a FROM t1 WHERE x='00000000007fffff'
2741 do_test boundary2-2.24.3 {
2743 SELECT r, x FROM t1 WHERE a=18
2745 } {8388607 00000000007fffff}
2746 do_test boundary2-2.24.gt.1 {
2748 SELECT a FROM t1 WHERE r > 8388607 ORDER BY a
2750 } {3 6 7 9 10 12 13 14 17 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
2751 do_test boundary2-2.24.gt.2 {
2753 SELECT a FROM t1 WHERE r > 8388607 ORDER BY a DESC
2755 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 17 14 13 12 10 9 7 6 3}
2756 do_test boundary2-2.24.gt.3 {
2758 SELECT a FROM t1 WHERE r > 8388607 ORDER BY r
2760 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2761 do_test boundary2-2.24.gt.4 {
2763 SELECT a FROM t1 WHERE r > 8388607 ORDER BY r DESC
2765 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24}
2766 do_test boundary2-2.24.gt.5 {
2768 SELECT a FROM t1 WHERE r > 8388607 ORDER BY x
2770 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2771 do_test boundary2-2.24.ge.1 {
2773 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY a
2775 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
2776 do_test boundary2-2.24.ge.2 {
2778 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY a DESC
2780 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
2781 do_test boundary2-2.24.ge.3 {
2783 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY r
2785 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2786 do_test boundary2-2.24.ge.4 {
2788 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY r DESC
2790 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18}
2791 do_test boundary2-2.24.ge.5 {
2793 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY x
2795 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2796 do_test boundary2-2.24.lt.1 {
2798 SELECT a FROM t1 WHERE r < 8388607 ORDER BY a
2800 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
2801 do_test boundary2-2.24.lt.2 {
2803 SELECT a FROM t1 WHERE r < 8388607 ORDER BY a DESC
2805 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
2806 do_test boundary2-2.24.lt.3 {
2808 SELECT a FROM t1 WHERE r < 8388607 ORDER BY r
2810 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42}
2811 do_test boundary2-2.24.lt.4 {
2813 SELECT a FROM t1 WHERE r < 8388607 ORDER BY r DESC
2815 } {42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2816 do_test boundary2-2.24.lt.5 {
2818 SELECT a FROM t1 WHERE r < 8388607 ORDER BY x
2820 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2821 do_test boundary2-2.24.le.1 {
2823 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY a
2825 } {1 2 4 5 8 11 15 16 18 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
2826 do_test boundary2-2.24.le.2 {
2828 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY a DESC
2830 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 18 16 15 11 8 5 4 2 1}
2831 do_test boundary2-2.24.le.3 {
2833 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY r
2835 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18}
2836 do_test boundary2-2.24.le.4 {
2838 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY r DESC
2840 } {18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2841 do_test boundary2-2.24.le.5 {
2843 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY x
2845 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
2846 do_test boundary2-2.25.1 {
2848 SELECT * FROM t1 WHERE r=-3
2850 } {-3 52 fffffffffffffffd}
2851 do_test boundary2-2.25.2 {
2853 SELECT r, a FROM t1 WHERE x='fffffffffffffffd'
2856 do_test boundary2-2.25.3 {
2858 SELECT r, x FROM t1 WHERE a=52
2860 } {-3 fffffffffffffffd}
2861 do_test boundary2-2.25.gt.1 {
2863 SELECT a FROM t1 WHERE r > -3 ORDER BY a
2865 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
2866 do_test boundary2-2.25.gt.2 {
2868 SELECT a FROM t1 WHERE r > -3 ORDER BY a DESC
2870 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
2871 do_test boundary2-2.25.gt.3 {
2873 SELECT a FROM t1 WHERE r > -3 ORDER BY r
2875 } {33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2876 do_test boundary2-2.25.gt.4 {
2878 SELECT a FROM t1 WHERE r > -3 ORDER BY r DESC
2880 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33}
2881 do_test boundary2-2.25.gt.5 {
2883 SELECT a FROM t1 WHERE r > -3 ORDER BY x
2885 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 33 38}
2886 do_test boundary2-2.25.ge.1 {
2888 SELECT a FROM t1 WHERE r >= -3 ORDER BY a
2890 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 56 57 59 60 61 62}
2891 do_test boundary2-2.25.ge.2 {
2893 SELECT a FROM t1 WHERE r >= -3 ORDER BY a DESC
2895 } {62 61 60 59 57 56 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
2896 do_test boundary2-2.25.ge.3 {
2898 SELECT a FROM t1 WHERE r >= -3 ORDER BY r
2900 } {52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2901 do_test boundary2-2.25.ge.4 {
2903 SELECT a FROM t1 WHERE r >= -3 ORDER BY r DESC
2905 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52}
2906 do_test boundary2-2.25.ge.5 {
2908 SELECT a FROM t1 WHERE r >= -3 ORDER BY x
2910 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 52 33 38}
2911 do_test boundary2-2.25.lt.1 {
2913 SELECT a FROM t1 WHERE r < -3 ORDER BY a
2915 } {1 2 11 21 29 32 37 44 47 53 54 55 58 63 64}
2916 do_test boundary2-2.25.lt.2 {
2918 SELECT a FROM t1 WHERE r < -3 ORDER BY a DESC
2920 } {64 63 58 55 54 53 47 44 37 32 29 21 11 2 1}
2921 do_test boundary2-2.25.lt.3 {
2923 SELECT a FROM t1 WHERE r < -3 ORDER BY r
2925 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
2926 do_test boundary2-2.25.lt.4 {
2928 SELECT a FROM t1 WHERE r < -3 ORDER BY r DESC
2930 } {53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2931 do_test boundary2-2.25.lt.5 {
2933 SELECT a FROM t1 WHERE r < -3 ORDER BY x
2935 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
2936 do_test boundary2-2.25.le.1 {
2938 SELECT a FROM t1 WHERE r <= -3 ORDER BY a
2940 } {1 2 11 21 29 32 37 44 47 52 53 54 55 58 63 64}
2941 do_test boundary2-2.25.le.2 {
2943 SELECT a FROM t1 WHERE r <= -3 ORDER BY a DESC
2945 } {64 63 58 55 54 53 52 47 44 37 32 29 21 11 2 1}
2946 do_test boundary2-2.25.le.3 {
2948 SELECT a FROM t1 WHERE r <= -3 ORDER BY r
2950 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
2951 do_test boundary2-2.25.le.4 {
2953 SELECT a FROM t1 WHERE r <= -3 ORDER BY r DESC
2955 } {52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
2956 do_test boundary2-2.25.le.5 {
2958 SELECT a FROM t1 WHERE r <= -3 ORDER BY x
2960 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
2961 do_test boundary2-2.26.1 {
2963 SELECT * FROM t1 WHERE r=0
2965 } {0 59 0000000000000000}
2966 do_test boundary2-2.26.2 {
2968 SELECT r, a FROM t1 WHERE x='0000000000000000'
2971 do_test boundary2-2.26.3 {
2973 SELECT r, x FROM t1 WHERE a=59
2975 } {0 0000000000000000}
2976 do_test boundary2-2.26.gt.1 {
2978 SELECT a FROM t1 WHERE r > 0 ORDER BY a
2980 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 60 61 62}
2981 do_test boundary2-2.26.gt.2 {
2983 SELECT a FROM t1 WHERE r > 0 ORDER BY a DESC
2985 } {62 61 60 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
2986 do_test boundary2-2.26.gt.3 {
2988 SELECT a FROM t1 WHERE r > 0 ORDER BY r
2990 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
2991 do_test boundary2-2.26.gt.4 {
2993 SELECT a FROM t1 WHERE r > 0 ORDER BY r DESC
2995 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60}
2996 do_test boundary2-2.26.gt.5 {
2998 SELECT a FROM t1 WHERE r > 0 ORDER BY x
3000 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3001 do_test boundary2-2.26.ge.1 {
3003 SELECT a FROM t1 WHERE r >= 0 ORDER BY a
3005 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
3006 do_test boundary2-2.26.ge.2 {
3008 SELECT a FROM t1 WHERE r >= 0 ORDER BY a DESC
3010 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
3011 do_test boundary2-2.26.ge.3 {
3013 SELECT a FROM t1 WHERE r >= 0 ORDER BY r
3015 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3016 do_test boundary2-2.26.ge.4 {
3018 SELECT a FROM t1 WHERE r >= 0 ORDER BY r DESC
3020 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59}
3021 do_test boundary2-2.26.ge.5 {
3023 SELECT a FROM t1 WHERE r >= 0 ORDER BY x
3025 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3026 do_test boundary2-2.26.lt.1 {
3028 SELECT a FROM t1 WHERE r < 0 ORDER BY a
3030 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 63 64}
3031 do_test boundary2-2.26.lt.2 {
3033 SELECT a FROM t1 WHERE r < 0 ORDER BY a DESC
3035 } {64 63 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
3036 do_test boundary2-2.26.lt.3 {
3038 SELECT a FROM t1 WHERE r < 0 ORDER BY r
3040 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3041 do_test boundary2-2.26.lt.4 {
3043 SELECT a FROM t1 WHERE r < 0 ORDER BY r DESC
3045 } {38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3046 do_test boundary2-2.26.lt.5 {
3048 SELECT a FROM t1 WHERE r < 0 ORDER BY x
3050 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3051 do_test boundary2-2.26.le.1 {
3053 SELECT a FROM t1 WHERE r <= 0 ORDER BY a
3055 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 63 64}
3056 do_test boundary2-2.26.le.2 {
3058 SELECT a FROM t1 WHERE r <= 0 ORDER BY a DESC
3060 } {64 63 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
3061 do_test boundary2-2.26.le.3 {
3063 SELECT a FROM t1 WHERE r <= 0 ORDER BY r
3065 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59}
3066 do_test boundary2-2.26.le.4 {
3068 SELECT a FROM t1 WHERE r <= 0 ORDER BY r DESC
3070 } {59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3071 do_test boundary2-2.26.le.5 {
3073 SELECT a FROM t1 WHERE r <= 0 ORDER BY x
3075 } {59 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3076 do_test boundary2-2.27.1 {
3078 SELECT * FROM t1 WHERE r=-1
3080 } {-1 38 ffffffffffffffff}
3081 do_test boundary2-2.27.2 {
3083 SELECT r, a FROM t1 WHERE x='ffffffffffffffff'
3086 do_test boundary2-2.27.3 {
3088 SELECT r, x FROM t1 WHERE a=38
3090 } {-1 ffffffffffffffff}
3091 do_test boundary2-2.27.gt.1 {
3093 SELECT a FROM t1 WHERE r > -1 ORDER BY a
3095 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
3096 do_test boundary2-2.27.gt.2 {
3098 SELECT a FROM t1 WHERE r > -1 ORDER BY a DESC
3100 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
3101 do_test boundary2-2.27.gt.3 {
3103 SELECT a FROM t1 WHERE r > -1 ORDER BY r
3105 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3106 do_test boundary2-2.27.gt.4 {
3108 SELECT a FROM t1 WHERE r > -1 ORDER BY r DESC
3110 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59}
3111 do_test boundary2-2.27.gt.5 {
3113 SELECT a FROM t1 WHERE r > -1 ORDER BY x
3115 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3116 do_test boundary2-2.27.ge.1 {
3118 SELECT a FROM t1 WHERE r >= -1 ORDER BY a
3120 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
3121 do_test boundary2-2.27.ge.2 {
3123 SELECT a FROM t1 WHERE r >= -1 ORDER BY a DESC
3125 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
3126 do_test boundary2-2.27.ge.3 {
3128 SELECT a FROM t1 WHERE r >= -1 ORDER BY r
3130 } {38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3131 do_test boundary2-2.27.ge.4 {
3133 SELECT a FROM t1 WHERE r >= -1 ORDER BY r DESC
3135 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38}
3136 do_test boundary2-2.27.ge.5 {
3138 SELECT a FROM t1 WHERE r >= -1 ORDER BY x
3140 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 38}
3141 do_test boundary2-2.27.lt.1 {
3143 SELECT a FROM t1 WHERE r < -1 ORDER BY a
3145 } {1 2 11 21 29 32 33 37 44 47 52 53 54 55 58 63 64}
3146 do_test boundary2-2.27.lt.2 {
3148 SELECT a FROM t1 WHERE r < -1 ORDER BY a DESC
3150 } {64 63 58 55 54 53 52 47 44 37 33 32 29 21 11 2 1}
3151 do_test boundary2-2.27.lt.3 {
3153 SELECT a FROM t1 WHERE r < -1 ORDER BY r
3155 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
3156 do_test boundary2-2.27.lt.4 {
3158 SELECT a FROM t1 WHERE r < -1 ORDER BY r DESC
3160 } {33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3161 do_test boundary2-2.27.lt.5 {
3163 SELECT a FROM t1 WHERE r < -1 ORDER BY x
3165 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
3166 do_test boundary2-2.27.le.1 {
3168 SELECT a FROM t1 WHERE r <= -1 ORDER BY a
3170 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 63 64}
3171 do_test boundary2-2.27.le.2 {
3173 SELECT a FROM t1 WHERE r <= -1 ORDER BY a DESC
3175 } {64 63 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
3176 do_test boundary2-2.27.le.3 {
3178 SELECT a FROM t1 WHERE r <= -1 ORDER BY r
3180 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3181 do_test boundary2-2.27.le.4 {
3183 SELECT a FROM t1 WHERE r <= -1 ORDER BY r DESC
3185 } {38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3186 do_test boundary2-2.27.le.5 {
3188 SELECT a FROM t1 WHERE r <= -1 ORDER BY x
3190 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3191 do_test boundary2-2.28.1 {
3193 SELECT * FROM t1 WHERE r=-2
3195 } {-2 33 fffffffffffffffe}
3196 do_test boundary2-2.28.2 {
3198 SELECT r, a FROM t1 WHERE x='fffffffffffffffe'
3201 do_test boundary2-2.28.3 {
3203 SELECT r, x FROM t1 WHERE a=33
3205 } {-2 fffffffffffffffe}
3206 do_test boundary2-2.28.gt.1 {
3208 SELECT a FROM t1 WHERE r > -2 ORDER BY a
3210 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
3211 do_test boundary2-2.28.gt.2 {
3213 SELECT a FROM t1 WHERE r > -2 ORDER BY a DESC
3215 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
3216 do_test boundary2-2.28.gt.3 {
3218 SELECT a FROM t1 WHERE r > -2 ORDER BY r
3220 } {38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3221 do_test boundary2-2.28.gt.4 {
3223 SELECT a FROM t1 WHERE r > -2 ORDER BY r DESC
3225 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38}
3226 do_test boundary2-2.28.gt.5 {
3228 SELECT a FROM t1 WHERE r > -2 ORDER BY x
3230 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 38}
3231 do_test boundary2-2.28.ge.1 {
3233 SELECT a FROM t1 WHERE r >= -2 ORDER BY a
3235 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
3236 do_test boundary2-2.28.ge.2 {
3238 SELECT a FROM t1 WHERE r >= -2 ORDER BY a DESC
3240 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
3241 do_test boundary2-2.28.ge.3 {
3243 SELECT a FROM t1 WHERE r >= -2 ORDER BY r
3245 } {33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3246 do_test boundary2-2.28.ge.4 {
3248 SELECT a FROM t1 WHERE r >= -2 ORDER BY r DESC
3250 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33}
3251 do_test boundary2-2.28.ge.5 {
3253 SELECT a FROM t1 WHERE r >= -2 ORDER BY x
3255 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 33 38}
3256 do_test boundary2-2.28.lt.1 {
3258 SELECT a FROM t1 WHERE r < -2 ORDER BY a
3260 } {1 2 11 21 29 32 37 44 47 52 53 54 55 58 63 64}
3261 do_test boundary2-2.28.lt.2 {
3263 SELECT a FROM t1 WHERE r < -2 ORDER BY a DESC
3265 } {64 63 58 55 54 53 52 47 44 37 32 29 21 11 2 1}
3266 do_test boundary2-2.28.lt.3 {
3268 SELECT a FROM t1 WHERE r < -2 ORDER BY r
3270 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
3271 do_test boundary2-2.28.lt.4 {
3273 SELECT a FROM t1 WHERE r < -2 ORDER BY r DESC
3275 } {52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3276 do_test boundary2-2.28.lt.5 {
3278 SELECT a FROM t1 WHERE r < -2 ORDER BY x
3280 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
3281 do_test boundary2-2.28.le.1 {
3283 SELECT a FROM t1 WHERE r <= -2 ORDER BY a
3285 } {1 2 11 21 29 32 33 37 44 47 52 53 54 55 58 63 64}
3286 do_test boundary2-2.28.le.2 {
3288 SELECT a FROM t1 WHERE r <= -2 ORDER BY a DESC
3290 } {64 63 58 55 54 53 52 47 44 37 33 32 29 21 11 2 1}
3291 do_test boundary2-2.28.le.3 {
3293 SELECT a FROM t1 WHERE r <= -2 ORDER BY r
3295 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
3296 do_test boundary2-2.28.le.4 {
3298 SELECT a FROM t1 WHERE r <= -2 ORDER BY r DESC
3300 } {33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3301 do_test boundary2-2.28.le.5 {
3303 SELECT a FROM t1 WHERE r <= -2 ORDER BY x
3305 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
3306 do_test boundary2-2.29.1 {
3308 SELECT * FROM t1 WHERE r=2097152
3310 } {2097152 42 0000000000200000}
3311 do_test boundary2-2.29.2 {
3313 SELECT r, a FROM t1 WHERE x='0000000000200000'
3316 do_test boundary2-2.29.3 {
3318 SELECT r, x FROM t1 WHERE a=42
3320 } {2097152 0000000000200000}
3321 do_test boundary2-2.29.gt.1 {
3323 SELECT a FROM t1 WHERE r > 2097152 ORDER BY a
3325 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
3326 do_test boundary2-2.29.gt.2 {
3328 SELECT a FROM t1 WHERE r > 2097152 ORDER BY a DESC
3330 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
3331 do_test boundary2-2.29.gt.3 {
3333 SELECT a FROM t1 WHERE r > 2097152 ORDER BY r
3335 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3336 do_test boundary2-2.29.gt.4 {
3338 SELECT a FROM t1 WHERE r > 2097152 ORDER BY r DESC
3340 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18}
3341 do_test boundary2-2.29.gt.5 {
3343 SELECT a FROM t1 WHERE r > 2097152 ORDER BY x
3345 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3346 do_test boundary2-2.29.ge.1 {
3348 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY a
3350 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
3351 do_test boundary2-2.29.ge.2 {
3353 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY a DESC
3355 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
3356 do_test boundary2-2.29.ge.3 {
3358 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY r
3360 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3361 do_test boundary2-2.29.ge.4 {
3363 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY r DESC
3365 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42}
3366 do_test boundary2-2.29.ge.5 {
3368 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY x
3370 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3371 do_test boundary2-2.29.lt.1 {
3373 SELECT a FROM t1 WHERE r < 2097152 ORDER BY a
3375 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
3376 do_test boundary2-2.29.lt.2 {
3378 SELECT a FROM t1 WHERE r < 2097152 ORDER BY a DESC
3380 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
3381 do_test boundary2-2.29.lt.3 {
3383 SELECT a FROM t1 WHERE r < 2097152 ORDER BY r
3385 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15}
3386 do_test boundary2-2.29.lt.4 {
3388 SELECT a FROM t1 WHERE r < 2097152 ORDER BY r DESC
3390 } {15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3391 do_test boundary2-2.29.lt.5 {
3393 SELECT a FROM t1 WHERE r < 2097152 ORDER BY x
3395 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3396 do_test boundary2-2.29.le.1 {
3398 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY a
3400 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
3401 do_test boundary2-2.29.le.2 {
3403 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY a DESC
3405 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
3406 do_test boundary2-2.29.le.3 {
3408 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY r
3410 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42}
3411 do_test boundary2-2.29.le.4 {
3413 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY r DESC
3415 } {42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3416 do_test boundary2-2.29.le.5 {
3418 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY x
3420 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3421 do_test boundary2-2.30.1 {
3423 SELECT * FROM t1 WHERE r=128
3425 } {128 49 0000000000000080}
3426 do_test boundary2-2.30.2 {
3428 SELECT r, a FROM t1 WHERE x='0000000000000080'
3431 do_test boundary2-2.30.3 {
3433 SELECT r, x FROM t1 WHERE a=49
3435 } {128 0000000000000080}
3436 do_test boundary2-2.30.gt.1 {
3438 SELECT a FROM t1 WHERE r > 128 ORDER BY a
3440 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
3441 do_test boundary2-2.30.gt.2 {
3443 SELECT a FROM t1 WHERE r > 128 ORDER BY a DESC
3445 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
3446 do_test boundary2-2.30.gt.3 {
3448 SELECT a FROM t1 WHERE r > 128 ORDER BY r
3450 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3451 do_test boundary2-2.30.gt.4 {
3453 SELECT a FROM t1 WHERE r > 128 ORDER BY r DESC
3455 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30}
3456 do_test boundary2-2.30.gt.5 {
3458 SELECT a FROM t1 WHERE r > 128 ORDER BY x
3460 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3461 do_test boundary2-2.30.ge.1 {
3463 SELECT a FROM t1 WHERE r >= 128 ORDER BY a
3465 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
3466 do_test boundary2-2.30.ge.2 {
3468 SELECT a FROM t1 WHERE r >= 128 ORDER BY a DESC
3470 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
3471 do_test boundary2-2.30.ge.3 {
3473 SELECT a FROM t1 WHERE r >= 128 ORDER BY r
3475 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3476 do_test boundary2-2.30.ge.4 {
3478 SELECT a FROM t1 WHERE r >= 128 ORDER BY r DESC
3480 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49}
3481 do_test boundary2-2.30.ge.5 {
3483 SELECT a FROM t1 WHERE r >= 128 ORDER BY x
3485 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3486 do_test boundary2-2.30.lt.1 {
3488 SELECT a FROM t1 WHERE r < 128 ORDER BY a
3490 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
3491 do_test boundary2-2.30.lt.2 {
3493 SELECT a FROM t1 WHERE r < 128 ORDER BY a DESC
3495 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
3496 do_test boundary2-2.30.lt.3 {
3498 SELECT a FROM t1 WHERE r < 128 ORDER BY r
3500 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4}
3501 do_test boundary2-2.30.lt.4 {
3503 SELECT a FROM t1 WHERE r < 128 ORDER BY r DESC
3505 } {4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3506 do_test boundary2-2.30.lt.5 {
3508 SELECT a FROM t1 WHERE r < 128 ORDER BY x
3510 } {59 60 41 5 31 4 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3511 do_test boundary2-2.30.le.1 {
3513 SELECT a FROM t1 WHERE r <= 128 ORDER BY a
3515 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
3516 do_test boundary2-2.30.le.2 {
3518 SELECT a FROM t1 WHERE r <= 128 ORDER BY a DESC
3520 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
3521 do_test boundary2-2.30.le.3 {
3523 SELECT a FROM t1 WHERE r <= 128 ORDER BY r
3525 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49}
3526 do_test boundary2-2.30.le.4 {
3528 SELECT a FROM t1 WHERE r <= 128 ORDER BY r DESC
3530 } {49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3531 do_test boundary2-2.30.le.5 {
3533 SELECT a FROM t1 WHERE r <= 128 ORDER BY x
3535 } {59 60 41 5 31 4 49 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3536 do_test boundary2-2.31.1 {
3538 SELECT * FROM t1 WHERE r=255
3540 } {255 30 00000000000000ff}
3541 do_test boundary2-2.31.2 {
3543 SELECT r, a FROM t1 WHERE x='00000000000000ff'
3546 do_test boundary2-2.31.3 {
3548 SELECT r, x FROM t1 WHERE a=30
3550 } {255 00000000000000ff}
3551 do_test boundary2-2.31.gt.1 {
3553 SELECT a FROM t1 WHERE r > 255 ORDER BY a
3555 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
3556 do_test boundary2-2.31.gt.2 {
3558 SELECT a FROM t1 WHERE r > 255 ORDER BY a DESC
3560 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
3561 do_test boundary2-2.31.gt.3 {
3563 SELECT a FROM t1 WHERE r > 255 ORDER BY r
3565 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3566 do_test boundary2-2.31.gt.4 {
3568 SELECT a FROM t1 WHERE r > 255 ORDER BY r DESC
3570 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61}
3571 do_test boundary2-2.31.gt.5 {
3573 SELECT a FROM t1 WHERE r > 255 ORDER BY x
3575 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3576 do_test boundary2-2.31.ge.1 {
3578 SELECT a FROM t1 WHERE r >= 255 ORDER BY a
3580 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
3581 do_test boundary2-2.31.ge.2 {
3583 SELECT a FROM t1 WHERE r >= 255 ORDER BY a DESC
3585 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
3586 do_test boundary2-2.31.ge.3 {
3588 SELECT a FROM t1 WHERE r >= 255 ORDER BY r
3590 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3591 do_test boundary2-2.31.ge.4 {
3593 SELECT a FROM t1 WHERE r >= 255 ORDER BY r DESC
3595 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30}
3596 do_test boundary2-2.31.ge.5 {
3598 SELECT a FROM t1 WHERE r >= 255 ORDER BY x
3600 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3601 do_test boundary2-2.31.lt.1 {
3603 SELECT a FROM t1 WHERE r < 255 ORDER BY a
3605 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
3606 do_test boundary2-2.31.lt.2 {
3608 SELECT a FROM t1 WHERE r < 255 ORDER BY a DESC
3610 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
3611 do_test boundary2-2.31.lt.3 {
3613 SELECT a FROM t1 WHERE r < 255 ORDER BY r
3615 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49}
3616 do_test boundary2-2.31.lt.4 {
3618 SELECT a FROM t1 WHERE r < 255 ORDER BY r DESC
3620 } {49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3621 do_test boundary2-2.31.lt.5 {
3623 SELECT a FROM t1 WHERE r < 255 ORDER BY x
3625 } {59 60 41 5 31 4 49 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3626 do_test boundary2-2.31.le.1 {
3628 SELECT a FROM t1 WHERE r <= 255 ORDER BY a
3630 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
3631 do_test boundary2-2.31.le.2 {
3633 SELECT a FROM t1 WHERE r <= 255 ORDER BY a DESC
3635 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
3636 do_test boundary2-2.31.le.3 {
3638 SELECT a FROM t1 WHERE r <= 255 ORDER BY r
3640 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30}
3641 do_test boundary2-2.31.le.4 {
3643 SELECT a FROM t1 WHERE r <= 255 ORDER BY r DESC
3645 } {30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3646 do_test boundary2-2.31.le.5 {
3648 SELECT a FROM t1 WHERE r <= 255 ORDER BY x
3650 } {59 60 41 5 31 4 49 30 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3651 do_test boundary2-2.32.1 {
3653 SELECT * FROM t1 WHERE r=-2147483648
3655 } {-2147483648 11 ffffffff80000000}
3656 do_test boundary2-2.32.2 {
3658 SELECT r, a FROM t1 WHERE x='ffffffff80000000'
3661 do_test boundary2-2.32.3 {
3663 SELECT r, x FROM t1 WHERE a=11
3665 } {-2147483648 ffffffff80000000}
3666 do_test boundary2-2.32.gt.1 {
3668 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY a
3670 } {1 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
3671 do_test boundary2-2.32.gt.2 {
3673 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY a DESC
3675 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3 1}
3676 do_test boundary2-2.32.gt.3 {
3678 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY r
3680 } {1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3681 do_test boundary2-2.32.gt.4 {
3683 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY r DESC
3685 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1}
3686 do_test boundary2-2.32.gt.5 {
3688 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY x
3690 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 1 37 29 32 54 53 52 33 38}
3691 do_test boundary2-2.32.ge.1 {
3693 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY a
3695 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
3696 do_test boundary2-2.32.ge.2 {
3698 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY a DESC
3700 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
3701 do_test boundary2-2.32.ge.3 {
3703 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY r
3705 } {11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3706 do_test boundary2-2.32.ge.4 {
3708 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY r DESC
3710 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11}
3711 do_test boundary2-2.32.ge.5 {
3713 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY x
3715 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 11 1 37 29 32 54 53 52 33 38}
3716 do_test boundary2-2.32.lt.1 {
3718 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY a
3720 } {2 21 44 47 55 58 63 64}
3721 do_test boundary2-2.32.lt.2 {
3723 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY a DESC
3725 } {64 63 58 55 47 44 21 2}
3726 do_test boundary2-2.32.lt.3 {
3728 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY r
3730 } {55 2 64 21 44 58 63 47}
3731 do_test boundary2-2.32.lt.4 {
3733 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY r DESC
3735 } {47 63 58 44 21 64 2 55}
3736 do_test boundary2-2.32.lt.5 {
3738 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY x
3740 } {55 2 64 21 44 58 63 47}
3741 do_test boundary2-2.32.le.1 {
3743 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY a
3745 } {2 11 21 44 47 55 58 63 64}
3746 do_test boundary2-2.32.le.2 {
3748 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY a DESC
3750 } {64 63 58 55 47 44 21 11 2}
3751 do_test boundary2-2.32.le.3 {
3753 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY r
3755 } {55 2 64 21 44 58 63 47 11}
3756 do_test boundary2-2.32.le.4 {
3758 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY r DESC
3760 } {11 47 63 58 44 21 64 2 55}
3761 do_test boundary2-2.32.le.5 {
3763 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY x
3765 } {55 2 64 21 44 58 63 47 11}
3766 do_test boundary2-2.33.1 {
3768 SELECT * FROM t1 WHERE r=34359738367
3770 } {34359738367 39 00000007ffffffff}
3771 do_test boundary2-2.33.2 {
3773 SELECT r, a FROM t1 WHERE x='00000007ffffffff'
3776 do_test boundary2-2.33.3 {
3778 SELECT r, x FROM t1 WHERE a=39
3780 } {34359738367 00000007ffffffff}
3781 do_test boundary2-2.33.gt.1 {
3783 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY a
3785 } {3 7 10 13 17 19 22 25 26 27 28 34 35 43 45 46 56 57}
3786 do_test boundary2-2.33.gt.2 {
3788 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY a DESC
3790 } {57 56 46 45 43 35 34 28 27 26 25 22 19 17 13 10 7 3}
3791 do_test boundary2-2.33.gt.3 {
3793 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY r
3795 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3796 do_test boundary2-2.33.gt.4 {
3798 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY r DESC
3800 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22}
3801 do_test boundary2-2.33.gt.5 {
3803 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY x
3805 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3806 do_test boundary2-2.33.ge.1 {
3808 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY a
3810 } {3 7 10 13 17 19 22 25 26 27 28 34 35 39 43 45 46 56 57}
3811 do_test boundary2-2.33.ge.2 {
3813 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY a DESC
3815 } {57 56 46 45 43 39 35 34 28 27 26 25 22 19 17 13 10 7 3}
3816 do_test boundary2-2.33.ge.3 {
3818 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY r
3820 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3821 do_test boundary2-2.33.ge.4 {
3823 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY r DESC
3825 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39}
3826 do_test boundary2-2.33.ge.5 {
3828 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY x
3830 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3831 do_test boundary2-2.33.lt.1 {
3833 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY a
3835 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
3836 do_test boundary2-2.33.lt.2 {
3838 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY a DESC
3840 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
3841 do_test boundary2-2.33.lt.3 {
3843 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY r
3845 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36}
3846 do_test boundary2-2.33.lt.4 {
3848 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY r DESC
3850 } {36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3851 do_test boundary2-2.33.lt.5 {
3853 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY x
3855 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3856 do_test boundary2-2.33.le.1 {
3858 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY a
3860 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
3861 do_test boundary2-2.33.le.2 {
3863 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY a DESC
3865 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
3866 do_test boundary2-2.33.le.3 {
3868 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY r
3870 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39}
3871 do_test boundary2-2.33.le.4 {
3873 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY r DESC
3875 } {39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
3876 do_test boundary2-2.33.le.5 {
3878 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY x
3880 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
3881 do_test boundary2-2.34.1 {
3883 SELECT * FROM t1 WHERE r=-549755813889
3885 } {-549755813889 58 ffffff7fffffffff}
3886 do_test boundary2-2.34.2 {
3888 SELECT r, a FROM t1 WHERE x='ffffff7fffffffff'
3890 } {-549755813889 58}
3891 do_test boundary2-2.34.3 {
3893 SELECT r, x FROM t1 WHERE a=58
3895 } {-549755813889 ffffff7fffffffff}
3896 do_test boundary2-2.34.gt.1 {
3898 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY a
3900 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62 63}
3901 do_test boundary2-2.34.gt.2 {
3903 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY a DESC
3905 } {63 62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
3906 do_test boundary2-2.34.gt.3 {
3908 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY r
3910 } {63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3911 do_test boundary2-2.34.gt.4 {
3913 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY r DESC
3915 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63}
3916 do_test boundary2-2.34.gt.5 {
3918 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY x
3920 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 63 47 11 1 37 29 32 54 53 52 33 38}
3921 do_test boundary2-2.34.ge.1 {
3923 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY a
3925 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
3926 do_test boundary2-2.34.ge.2 {
3928 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY a DESC
3930 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
3931 do_test boundary2-2.34.ge.3 {
3933 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY r
3935 } {58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
3936 do_test boundary2-2.34.ge.4 {
3938 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY r DESC
3940 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58}
3941 do_test boundary2-2.34.ge.5 {
3943 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY x
3945 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 58 63 47 11 1 37 29 32 54 53 52 33 38}
3946 do_test boundary2-2.34.lt.1 {
3948 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY a
3951 do_test boundary2-2.34.lt.2 {
3953 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY a DESC
3956 do_test boundary2-2.34.lt.3 {
3958 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY r
3961 do_test boundary2-2.34.lt.4 {
3963 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY r DESC
3966 do_test boundary2-2.34.lt.5 {
3968 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY x
3971 do_test boundary2-2.34.le.1 {
3973 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY a
3975 } {2 21 44 55 58 64}
3976 do_test boundary2-2.34.le.2 {
3978 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY a DESC
3980 } {64 58 55 44 21 2}
3981 do_test boundary2-2.34.le.3 {
3983 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY r
3985 } {55 2 64 21 44 58}
3986 do_test boundary2-2.34.le.4 {
3988 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY r DESC
3990 } {58 44 21 64 2 55}
3991 do_test boundary2-2.34.le.5 {
3993 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY x
3995 } {55 2 64 21 44 58}
3996 do_test boundary2-2.35.1 {
3998 SELECT * FROM t1 WHERE r=-32768
4000 } {-32768 32 ffffffffffff8000}
4001 do_test boundary2-2.35.2 {
4003 SELECT r, a FROM t1 WHERE x='ffffffffffff8000'
4006 do_test boundary2-2.35.3 {
4008 SELECT r, x FROM t1 WHERE a=32
4010 } {-32768 ffffffffffff8000}
4011 do_test boundary2-2.35.gt.1 {
4013 SELECT a FROM t1 WHERE r > -32768 ORDER BY a
4015 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
4016 do_test boundary2-2.35.gt.2 {
4018 SELECT a FROM t1 WHERE r > -32768 ORDER BY a DESC
4020 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
4021 do_test boundary2-2.35.gt.3 {
4023 SELECT a FROM t1 WHERE r > -32768 ORDER BY r
4025 } {54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4026 do_test boundary2-2.35.gt.4 {
4028 SELECT a FROM t1 WHERE r > -32768 ORDER BY r DESC
4030 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54}
4031 do_test boundary2-2.35.gt.5 {
4033 SELECT a FROM t1 WHERE r > -32768 ORDER BY x
4035 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 54 53 52 33 38}
4036 do_test boundary2-2.35.ge.1 {
4038 SELECT a FROM t1 WHERE r >= -32768 ORDER BY a
4040 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
4041 do_test boundary2-2.35.ge.2 {
4043 SELECT a FROM t1 WHERE r >= -32768 ORDER BY a DESC
4045 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
4046 do_test boundary2-2.35.ge.3 {
4048 SELECT a FROM t1 WHERE r >= -32768 ORDER BY r
4050 } {32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4051 do_test boundary2-2.35.ge.4 {
4053 SELECT a FROM t1 WHERE r >= -32768 ORDER BY r DESC
4055 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32}
4056 do_test boundary2-2.35.ge.5 {
4058 SELECT a FROM t1 WHERE r >= -32768 ORDER BY x
4060 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 32 54 53 52 33 38}
4061 do_test boundary2-2.35.lt.1 {
4063 SELECT a FROM t1 WHERE r < -32768 ORDER BY a
4065 } {1 2 11 21 29 37 44 47 55 58 63 64}
4066 do_test boundary2-2.35.lt.2 {
4068 SELECT a FROM t1 WHERE r < -32768 ORDER BY a DESC
4070 } {64 63 58 55 47 44 37 29 21 11 2 1}
4071 do_test boundary2-2.35.lt.3 {
4073 SELECT a FROM t1 WHERE r < -32768 ORDER BY r
4075 } {55 2 64 21 44 58 63 47 11 1 37 29}
4076 do_test boundary2-2.35.lt.4 {
4078 SELECT a FROM t1 WHERE r < -32768 ORDER BY r DESC
4080 } {29 37 1 11 47 63 58 44 21 64 2 55}
4081 do_test boundary2-2.35.lt.5 {
4083 SELECT a FROM t1 WHERE r < -32768 ORDER BY x
4085 } {55 2 64 21 44 58 63 47 11 1 37 29}
4086 do_test boundary2-2.35.le.1 {
4088 SELECT a FROM t1 WHERE r <= -32768 ORDER BY a
4090 } {1 2 11 21 29 32 37 44 47 55 58 63 64}
4091 do_test boundary2-2.35.le.2 {
4093 SELECT a FROM t1 WHERE r <= -32768 ORDER BY a DESC
4095 } {64 63 58 55 47 44 37 32 29 21 11 2 1}
4096 do_test boundary2-2.35.le.3 {
4098 SELECT a FROM t1 WHERE r <= -32768 ORDER BY r
4100 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
4101 do_test boundary2-2.35.le.4 {
4103 SELECT a FROM t1 WHERE r <= -32768 ORDER BY r DESC
4105 } {32 29 37 1 11 47 63 58 44 21 64 2 55}
4106 do_test boundary2-2.35.le.5 {
4108 SELECT a FROM t1 WHERE r <= -32768 ORDER BY x
4110 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
4111 do_test boundary2-2.36.1 {
4113 SELECT * FROM t1 WHERE r=2147483647
4115 } {2147483647 20 000000007fffffff}
4116 do_test boundary2-2.36.2 {
4118 SELECT r, a FROM t1 WHERE x='000000007fffffff'
4121 do_test boundary2-2.36.3 {
4123 SELECT r, x FROM t1 WHERE a=20
4125 } {2147483647 000000007fffffff}
4126 do_test boundary2-2.36.gt.1 {
4128 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY a
4130 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
4131 do_test boundary2-2.36.gt.2 {
4133 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY a DESC
4135 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
4136 do_test boundary2-2.36.gt.3 {
4138 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY r
4140 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4141 do_test boundary2-2.36.gt.4 {
4143 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY r DESC
4145 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51}
4146 do_test boundary2-2.36.gt.5 {
4148 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY x
4150 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4151 do_test boundary2-2.36.ge.1 {
4153 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY a
4155 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
4156 do_test boundary2-2.36.ge.2 {
4158 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY a DESC
4160 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
4161 do_test boundary2-2.36.ge.3 {
4163 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY r
4165 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4166 do_test boundary2-2.36.ge.4 {
4168 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY r DESC
4170 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20}
4171 do_test boundary2-2.36.ge.5 {
4173 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY x
4175 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4176 do_test boundary2-2.36.lt.1 {
4178 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY a
4180 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
4181 do_test boundary2-2.36.lt.2 {
4183 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY a DESC
4185 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
4186 do_test boundary2-2.36.lt.3 {
4188 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY r
4190 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40}
4191 do_test boundary2-2.36.lt.4 {
4193 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY r DESC
4195 } {40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4196 do_test boundary2-2.36.lt.5 {
4198 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY x
4200 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4201 do_test boundary2-2.36.le.1 {
4203 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY a
4205 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
4206 do_test boundary2-2.36.le.2 {
4208 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY a DESC
4210 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
4211 do_test boundary2-2.36.le.3 {
4213 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY r
4215 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20}
4216 do_test boundary2-2.36.le.4 {
4218 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY r DESC
4220 } {20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4221 do_test boundary2-2.36.le.5 {
4223 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY x
4225 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4226 do_test boundary2-2.37.1 {
4228 SELECT * FROM t1 WHERE r=-129
4230 } {-129 54 ffffffffffffff7f}
4231 do_test boundary2-2.37.2 {
4233 SELECT r, a FROM t1 WHERE x='ffffffffffffff7f'
4236 do_test boundary2-2.37.3 {
4238 SELECT r, x FROM t1 WHERE a=54
4240 } {-129 ffffffffffffff7f}
4241 do_test boundary2-2.37.gt.1 {
4243 SELECT a FROM t1 WHERE r > -129 ORDER BY a
4245 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 56 57 59 60 61 62}
4246 do_test boundary2-2.37.gt.2 {
4248 SELECT a FROM t1 WHERE r > -129 ORDER BY a DESC
4250 } {62 61 60 59 57 56 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
4251 do_test boundary2-2.37.gt.3 {
4253 SELECT a FROM t1 WHERE r > -129 ORDER BY r
4255 } {53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4256 do_test boundary2-2.37.gt.4 {
4258 SELECT a FROM t1 WHERE r > -129 ORDER BY r DESC
4260 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53}
4261 do_test boundary2-2.37.gt.5 {
4263 SELECT a FROM t1 WHERE r > -129 ORDER BY x
4265 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 53 52 33 38}
4266 do_test boundary2-2.37.ge.1 {
4268 SELECT a FROM t1 WHERE r >= -129 ORDER BY a
4270 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
4271 do_test boundary2-2.37.ge.2 {
4273 SELECT a FROM t1 WHERE r >= -129 ORDER BY a DESC
4275 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
4276 do_test boundary2-2.37.ge.3 {
4278 SELECT a FROM t1 WHERE r >= -129 ORDER BY r
4280 } {54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4281 do_test boundary2-2.37.ge.4 {
4283 SELECT a FROM t1 WHERE r >= -129 ORDER BY r DESC
4285 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54}
4286 do_test boundary2-2.37.ge.5 {
4288 SELECT a FROM t1 WHERE r >= -129 ORDER BY x
4290 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 54 53 52 33 38}
4291 do_test boundary2-2.37.lt.1 {
4293 SELECT a FROM t1 WHERE r < -129 ORDER BY a
4295 } {1 2 11 21 29 32 37 44 47 55 58 63 64}
4296 do_test boundary2-2.37.lt.2 {
4298 SELECT a FROM t1 WHERE r < -129 ORDER BY a DESC
4300 } {64 63 58 55 47 44 37 32 29 21 11 2 1}
4301 do_test boundary2-2.37.lt.3 {
4303 SELECT a FROM t1 WHERE r < -129 ORDER BY r
4305 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
4306 do_test boundary2-2.37.lt.4 {
4308 SELECT a FROM t1 WHERE r < -129 ORDER BY r DESC
4310 } {32 29 37 1 11 47 63 58 44 21 64 2 55}
4311 do_test boundary2-2.37.lt.5 {
4313 SELECT a FROM t1 WHERE r < -129 ORDER BY x
4315 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
4316 do_test boundary2-2.37.le.1 {
4318 SELECT a FROM t1 WHERE r <= -129 ORDER BY a
4320 } {1 2 11 21 29 32 37 44 47 54 55 58 63 64}
4321 do_test boundary2-2.37.le.2 {
4323 SELECT a FROM t1 WHERE r <= -129 ORDER BY a DESC
4325 } {64 63 58 55 54 47 44 37 32 29 21 11 2 1}
4326 do_test boundary2-2.37.le.3 {
4328 SELECT a FROM t1 WHERE r <= -129 ORDER BY r
4330 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
4331 do_test boundary2-2.37.le.4 {
4333 SELECT a FROM t1 WHERE r <= -129 ORDER BY r DESC
4335 } {54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4336 do_test boundary2-2.37.le.5 {
4338 SELECT a FROM t1 WHERE r <= -129 ORDER BY x
4340 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
4341 do_test boundary2-2.38.1 {
4343 SELECT * FROM t1 WHERE r=-128
4345 } {-128 53 ffffffffffffff80}
4346 do_test boundary2-2.38.2 {
4348 SELECT r, a FROM t1 WHERE x='ffffffffffffff80'
4351 do_test boundary2-2.38.3 {
4353 SELECT r, x FROM t1 WHERE a=53
4355 } {-128 ffffffffffffff80}
4356 do_test boundary2-2.38.gt.1 {
4358 SELECT a FROM t1 WHERE r > -128 ORDER BY a
4360 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 56 57 59 60 61 62}
4361 do_test boundary2-2.38.gt.2 {
4363 SELECT a FROM t1 WHERE r > -128 ORDER BY a DESC
4365 } {62 61 60 59 57 56 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
4366 do_test boundary2-2.38.gt.3 {
4368 SELECT a FROM t1 WHERE r > -128 ORDER BY r
4370 } {52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4371 do_test boundary2-2.38.gt.4 {
4373 SELECT a FROM t1 WHERE r > -128 ORDER BY r DESC
4375 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52}
4376 do_test boundary2-2.38.gt.5 {
4378 SELECT a FROM t1 WHERE r > -128 ORDER BY x
4380 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 52 33 38}
4381 do_test boundary2-2.38.ge.1 {
4383 SELECT a FROM t1 WHERE r >= -128 ORDER BY a
4385 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 56 57 59 60 61 62}
4386 do_test boundary2-2.38.ge.2 {
4388 SELECT a FROM t1 WHERE r >= -128 ORDER BY a DESC
4390 } {62 61 60 59 57 56 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
4391 do_test boundary2-2.38.ge.3 {
4393 SELECT a FROM t1 WHERE r >= -128 ORDER BY r
4395 } {53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4396 do_test boundary2-2.38.ge.4 {
4398 SELECT a FROM t1 WHERE r >= -128 ORDER BY r DESC
4400 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53}
4401 do_test boundary2-2.38.ge.5 {
4403 SELECT a FROM t1 WHERE r >= -128 ORDER BY x
4405 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 53 52 33 38}
4406 do_test boundary2-2.38.lt.1 {
4408 SELECT a FROM t1 WHERE r < -128 ORDER BY a
4410 } {1 2 11 21 29 32 37 44 47 54 55 58 63 64}
4411 do_test boundary2-2.38.lt.2 {
4413 SELECT a FROM t1 WHERE r < -128 ORDER BY a DESC
4415 } {64 63 58 55 54 47 44 37 32 29 21 11 2 1}
4416 do_test boundary2-2.38.lt.3 {
4418 SELECT a FROM t1 WHERE r < -128 ORDER BY r
4420 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
4421 do_test boundary2-2.38.lt.4 {
4423 SELECT a FROM t1 WHERE r < -128 ORDER BY r DESC
4425 } {54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4426 do_test boundary2-2.38.lt.5 {
4428 SELECT a FROM t1 WHERE r < -128 ORDER BY x
4430 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
4431 do_test boundary2-2.38.le.1 {
4433 SELECT a FROM t1 WHERE r <= -128 ORDER BY a
4435 } {1 2 11 21 29 32 37 44 47 53 54 55 58 63 64}
4436 do_test boundary2-2.38.le.2 {
4438 SELECT a FROM t1 WHERE r <= -128 ORDER BY a DESC
4440 } {64 63 58 55 54 53 47 44 37 32 29 21 11 2 1}
4441 do_test boundary2-2.38.le.3 {
4443 SELECT a FROM t1 WHERE r <= -128 ORDER BY r
4445 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
4446 do_test boundary2-2.38.le.4 {
4448 SELECT a FROM t1 WHERE r <= -128 ORDER BY r DESC
4450 } {53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4451 do_test boundary2-2.38.le.5 {
4453 SELECT a FROM t1 WHERE r <= -128 ORDER BY x
4455 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
4456 do_test boundary2-2.39.1 {
4458 SELECT * FROM t1 WHERE r=72057594037927936
4460 } {72057594037927936 28 0100000000000000}
4461 do_test boundary2-2.39.2 {
4463 SELECT r, a FROM t1 WHERE x='0100000000000000'
4465 } {72057594037927936 28}
4466 do_test boundary2-2.39.3 {
4468 SELECT r, x FROM t1 WHERE a=28
4470 } {72057594037927936 0100000000000000}
4471 do_test boundary2-2.39.gt.1 {
4473 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY a
4476 do_test boundary2-2.39.gt.2 {
4478 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY a DESC
4481 do_test boundary2-2.39.gt.3 {
4483 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY r
4486 do_test boundary2-2.39.gt.4 {
4488 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY r DESC
4491 do_test boundary2-2.39.gt.5 {
4493 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY x
4496 do_test boundary2-2.39.ge.1 {
4498 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY a
4501 do_test boundary2-2.39.ge.2 {
4503 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY a DESC
4506 do_test boundary2-2.39.ge.3 {
4508 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY r
4511 do_test boundary2-2.39.ge.4 {
4513 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY r DESC
4516 do_test boundary2-2.39.ge.5 {
4518 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY x
4521 do_test boundary2-2.39.lt.1 {
4523 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY a
4525 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
4526 do_test boundary2-2.39.lt.2 {
4528 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY a DESC
4530 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
4531 do_test boundary2-2.39.lt.3 {
4533 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY r
4535 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17}
4536 do_test boundary2-2.39.lt.4 {
4538 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY r DESC
4540 } {17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4541 do_test boundary2-2.39.lt.5 {
4543 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY x
4545 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4546 do_test boundary2-2.39.le.1 {
4548 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY a
4550 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
4551 do_test boundary2-2.39.le.2 {
4553 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY a DESC
4555 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
4556 do_test boundary2-2.39.le.3 {
4558 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY r
4560 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28}
4561 do_test boundary2-2.39.le.4 {
4563 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY r DESC
4565 } {28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4566 do_test boundary2-2.39.le.5 {
4568 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY x
4570 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4571 do_test boundary2-2.40.1 {
4573 SELECT * FROM t1 WHERE r=2147483648
4575 } {2147483648 51 0000000080000000}
4576 do_test boundary2-2.40.2 {
4578 SELECT r, a FROM t1 WHERE x='0000000080000000'
4581 do_test boundary2-2.40.3 {
4583 SELECT r, x FROM t1 WHERE a=51
4585 } {2147483648 0000000080000000}
4586 do_test boundary2-2.40.gt.1 {
4588 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY a
4590 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
4591 do_test boundary2-2.40.gt.2 {
4593 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY a DESC
4595 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
4596 do_test boundary2-2.40.gt.3 {
4598 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY r
4600 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4601 do_test boundary2-2.40.gt.4 {
4603 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY r DESC
4605 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14}
4606 do_test boundary2-2.40.gt.5 {
4608 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY x
4610 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4611 do_test boundary2-2.40.ge.1 {
4613 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY a
4615 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
4616 do_test boundary2-2.40.ge.2 {
4618 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY a DESC
4620 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
4621 do_test boundary2-2.40.ge.3 {
4623 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY r
4625 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4626 do_test boundary2-2.40.ge.4 {
4628 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY r DESC
4630 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51}
4631 do_test boundary2-2.40.ge.5 {
4633 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY x
4635 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4636 do_test boundary2-2.40.lt.1 {
4638 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY a
4640 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
4641 do_test boundary2-2.40.lt.2 {
4643 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY a DESC
4645 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
4646 do_test boundary2-2.40.lt.3 {
4648 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY r
4650 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20}
4651 do_test boundary2-2.40.lt.4 {
4653 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY r DESC
4655 } {20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4656 do_test boundary2-2.40.lt.5 {
4658 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY x
4660 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4661 do_test boundary2-2.40.le.1 {
4663 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY a
4665 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
4666 do_test boundary2-2.40.le.2 {
4668 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY a DESC
4670 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
4671 do_test boundary2-2.40.le.3 {
4673 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY r
4675 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51}
4676 do_test boundary2-2.40.le.4 {
4678 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY r DESC
4680 } {51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4681 do_test boundary2-2.40.le.5 {
4683 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY x
4685 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4686 do_test boundary2-2.41.1 {
4688 SELECT * FROM t1 WHERE r=549755813887
4690 } {549755813887 46 0000007fffffffff}
4691 do_test boundary2-2.41.2 {
4693 SELECT r, a FROM t1 WHERE x='0000007fffffffff'
4696 do_test boundary2-2.41.3 {
4698 SELECT r, x FROM t1 WHERE a=46
4700 } {549755813887 0000007fffffffff}
4701 do_test boundary2-2.41.gt.1 {
4703 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY a
4705 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 56 57}
4706 do_test boundary2-2.41.gt.2 {
4708 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY a DESC
4710 } {57 56 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
4711 do_test boundary2-2.41.gt.3 {
4713 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY r
4715 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4716 do_test boundary2-2.41.gt.4 {
4718 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY r DESC
4720 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35}
4721 do_test boundary2-2.41.gt.5 {
4723 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY x
4725 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4726 do_test boundary2-2.41.ge.1 {
4728 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY a
4730 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 46 56 57}
4731 do_test boundary2-2.41.ge.2 {
4733 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY a DESC
4735 } {57 56 46 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
4736 do_test boundary2-2.41.ge.3 {
4738 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY r
4740 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4741 do_test boundary2-2.41.ge.4 {
4743 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY r DESC
4745 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46}
4746 do_test boundary2-2.41.ge.5 {
4748 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY x
4750 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4751 do_test boundary2-2.41.lt.1 {
4753 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY a
4755 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
4756 do_test boundary2-2.41.lt.2 {
4758 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY a DESC
4760 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
4761 do_test boundary2-2.41.lt.3 {
4763 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY r
4765 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22}
4766 do_test boundary2-2.41.lt.4 {
4768 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY r DESC
4770 } {22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4771 do_test boundary2-2.41.lt.5 {
4773 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY x
4775 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4776 do_test boundary2-2.41.le.1 {
4778 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY a
4780 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
4781 do_test boundary2-2.41.le.2 {
4783 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY a DESC
4785 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
4786 do_test boundary2-2.41.le.3 {
4788 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY r
4790 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46}
4791 do_test boundary2-2.41.le.4 {
4793 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY r DESC
4795 } {46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
4796 do_test boundary2-2.41.le.5 {
4798 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY x
4800 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
4801 do_test boundary2-2.42.1 {
4803 SELECT * FROM t1 WHERE r=-549755813888
4805 } {-549755813888 63 ffffff8000000000}
4806 do_test boundary2-2.42.2 {
4808 SELECT r, a FROM t1 WHERE x='ffffff8000000000'
4810 } {-549755813888 63}
4811 do_test boundary2-2.42.3 {
4813 SELECT r, x FROM t1 WHERE a=63
4815 } {-549755813888 ffffff8000000000}
4816 do_test boundary2-2.42.gt.1 {
4818 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY a
4820 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62}
4821 do_test boundary2-2.42.gt.2 {
4823 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY a DESC
4825 } {62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
4826 do_test boundary2-2.42.gt.3 {
4828 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY r
4830 } {47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4831 do_test boundary2-2.42.gt.4 {
4833 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY r DESC
4835 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47}
4836 do_test boundary2-2.42.gt.5 {
4838 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY x
4840 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 47 11 1 37 29 32 54 53 52 33 38}
4841 do_test boundary2-2.42.ge.1 {
4843 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY a
4845 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62 63}
4846 do_test boundary2-2.42.ge.2 {
4848 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY a DESC
4850 } {63 62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
4851 do_test boundary2-2.42.ge.3 {
4853 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY r
4855 } {63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
4856 do_test boundary2-2.42.ge.4 {
4858 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY r DESC
4860 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63}
4861 do_test boundary2-2.42.ge.5 {
4863 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY x
4865 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 63 47 11 1 37 29 32 54 53 52 33 38}
4866 do_test boundary2-2.42.lt.1 {
4868 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY a
4870 } {2 21 44 55 58 64}
4871 do_test boundary2-2.42.lt.2 {
4873 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY a DESC
4875 } {64 58 55 44 21 2}
4876 do_test boundary2-2.42.lt.3 {
4878 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY r
4880 } {55 2 64 21 44 58}
4881 do_test boundary2-2.42.lt.4 {
4883 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY r DESC
4885 } {58 44 21 64 2 55}
4886 do_test boundary2-2.42.lt.5 {
4888 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY x
4890 } {55 2 64 21 44 58}
4891 do_test boundary2-2.42.le.1 {
4893 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY a
4895 } {2 21 44 55 58 63 64}
4896 do_test boundary2-2.42.le.2 {
4898 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY a DESC
4900 } {64 63 58 55 44 21 2}
4901 do_test boundary2-2.42.le.3 {
4903 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY r
4905 } {55 2 64 21 44 58 63}
4906 do_test boundary2-2.42.le.4 {
4908 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY r DESC
4910 } {63 58 44 21 64 2 55}
4911 do_test boundary2-2.42.le.5 {
4913 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY x
4915 } {55 2 64 21 44 58 63}
4916 do_test boundary2-2.43.1 {
4918 SELECT * FROM t1 WHERE r=281474976710655
4920 } {281474976710655 10 0000ffffffffffff}
4921 do_test boundary2-2.43.2 {
4923 SELECT r, a FROM t1 WHERE x='0000ffffffffffff'
4925 } {281474976710655 10}
4926 do_test boundary2-2.43.3 {
4928 SELECT r, x FROM t1 WHERE a=10
4930 } {281474976710655 0000ffffffffffff}
4931 do_test boundary2-2.43.gt.1 {
4933 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY a
4935 } {3 13 17 26 27 28 43 45}
4936 do_test boundary2-2.43.gt.2 {
4938 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY a DESC
4940 } {45 43 28 27 26 17 13 3}
4941 do_test boundary2-2.43.gt.3 {
4943 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY r
4945 } {26 13 43 27 45 17 28 3}
4946 do_test boundary2-2.43.gt.4 {
4948 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY r DESC
4950 } {3 28 17 45 27 43 13 26}
4951 do_test boundary2-2.43.gt.5 {
4953 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY x
4955 } {26 13 43 27 45 17 28 3}
4956 do_test boundary2-2.43.ge.1 {
4958 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY a
4960 } {3 10 13 17 26 27 28 43 45}
4961 do_test boundary2-2.43.ge.2 {
4963 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY a DESC
4965 } {45 43 28 27 26 17 13 10 3}
4966 do_test boundary2-2.43.ge.3 {
4968 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY r
4970 } {10 26 13 43 27 45 17 28 3}
4971 do_test boundary2-2.43.ge.4 {
4973 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY r DESC
4975 } {3 28 17 45 27 43 13 26 10}
4976 do_test boundary2-2.43.ge.5 {
4978 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY x
4980 } {10 26 13 43 27 45 17 28 3}
4981 do_test boundary2-2.43.lt.1 {
4983 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY a
4985 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
4986 do_test boundary2-2.43.lt.2 {
4988 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY a DESC
4990 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
4991 do_test boundary2-2.43.lt.3 {
4993 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY r
4995 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34}
4996 do_test boundary2-2.43.lt.4 {
4998 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY r DESC
5000 } {34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5001 do_test boundary2-2.43.lt.5 {
5003 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY x
5005 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5006 do_test boundary2-2.43.le.1 {
5008 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY a
5010 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
5011 do_test boundary2-2.43.le.2 {
5013 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY a DESC
5015 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
5016 do_test boundary2-2.43.le.3 {
5018 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY r
5020 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10}
5021 do_test boundary2-2.43.le.4 {
5023 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY r DESC
5025 } {10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5026 do_test boundary2-2.43.le.5 {
5028 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY x
5030 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5031 do_test boundary2-2.44.1 {
5033 SELECT * FROM t1 WHERE r=4398046511103
5035 } {4398046511103 7 000003ffffffffff}
5036 do_test boundary2-2.44.2 {
5038 SELECT r, a FROM t1 WHERE x='000003ffffffffff'
5041 do_test boundary2-2.44.3 {
5043 SELECT r, x FROM t1 WHERE a=7
5045 } {4398046511103 000003ffffffffff}
5046 do_test boundary2-2.44.gt.1 {
5048 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY a
5050 } {3 10 13 17 25 26 27 28 34 43 45 56}
5051 do_test boundary2-2.44.gt.2 {
5053 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY a DESC
5055 } {56 45 43 34 28 27 26 25 17 13 10 3}
5056 do_test boundary2-2.44.gt.3 {
5058 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY r
5060 } {56 25 34 10 26 13 43 27 45 17 28 3}
5061 do_test boundary2-2.44.gt.4 {
5063 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY r DESC
5065 } {3 28 17 45 27 43 13 26 10 34 25 56}
5066 do_test boundary2-2.44.gt.5 {
5068 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY x
5070 } {56 25 34 10 26 13 43 27 45 17 28 3}
5071 do_test boundary2-2.44.ge.1 {
5073 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY a
5075 } {3 7 10 13 17 25 26 27 28 34 43 45 56}
5076 do_test boundary2-2.44.ge.2 {
5078 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY a DESC
5080 } {56 45 43 34 28 27 26 25 17 13 10 7 3}
5081 do_test boundary2-2.44.ge.3 {
5083 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY r
5085 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
5086 do_test boundary2-2.44.ge.4 {
5088 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY r DESC
5090 } {3 28 17 45 27 43 13 26 10 34 25 56 7}
5091 do_test boundary2-2.44.ge.5 {
5093 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY x
5095 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
5096 do_test boundary2-2.44.lt.1 {
5098 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY a
5100 } {1 2 4 5 6 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
5101 do_test boundary2-2.44.lt.2 {
5103 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY a DESC
5105 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 6 5 4 2 1}
5106 do_test boundary2-2.44.lt.3 {
5108 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY r
5110 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19}
5111 do_test boundary2-2.44.lt.4 {
5113 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY r DESC
5115 } {19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5116 do_test boundary2-2.44.lt.5 {
5118 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY x
5120 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5121 do_test boundary2-2.44.le.1 {
5123 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY a
5125 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
5126 do_test boundary2-2.44.le.2 {
5128 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY a DESC
5130 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
5131 do_test boundary2-2.44.le.3 {
5133 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY r
5135 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7}
5136 do_test boundary2-2.44.le.4 {
5138 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY r DESC
5140 } {7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5141 do_test boundary2-2.44.le.5 {
5143 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY x
5145 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5146 do_test boundary2-2.45.1 {
5148 SELECT * FROM t1 WHERE r=268435455
5150 } {268435455 12 000000000fffffff}
5151 do_test boundary2-2.45.2 {
5153 SELECT r, a FROM t1 WHERE x='000000000fffffff'
5156 do_test boundary2-2.45.3 {
5158 SELECT r, x FROM t1 WHERE a=12
5160 } {268435455 000000000fffffff}
5161 do_test boundary2-2.45.gt.1 {
5163 SELECT a FROM t1 WHERE r > 268435455 ORDER BY a
5165 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
5166 do_test boundary2-2.45.gt.2 {
5168 SELECT a FROM t1 WHERE r > 268435455 ORDER BY a DESC
5170 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
5171 do_test boundary2-2.45.gt.3 {
5173 SELECT a FROM t1 WHERE r > 268435455 ORDER BY r
5175 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5176 do_test boundary2-2.45.gt.4 {
5178 SELECT a FROM t1 WHERE r > 268435455 ORDER BY r DESC
5180 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40}
5181 do_test boundary2-2.45.gt.5 {
5183 SELECT a FROM t1 WHERE r > 268435455 ORDER BY x
5185 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5186 do_test boundary2-2.45.ge.1 {
5188 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY a
5190 } {3 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
5191 do_test boundary2-2.45.ge.2 {
5193 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY a DESC
5195 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 3}
5196 do_test boundary2-2.45.ge.3 {
5198 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY r
5200 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5201 do_test boundary2-2.45.ge.4 {
5203 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY r DESC
5205 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12}
5206 do_test boundary2-2.45.ge.5 {
5208 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY x
5210 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5211 do_test boundary2-2.45.lt.1 {
5213 SELECT a FROM t1 WHERE r < 268435455 ORDER BY a
5215 } {1 2 4 5 6 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
5216 do_test boundary2-2.45.lt.2 {
5218 SELECT a FROM t1 WHERE r < 268435455 ORDER BY a DESC
5220 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 6 5 4 2 1}
5221 do_test boundary2-2.45.lt.3 {
5223 SELECT a FROM t1 WHERE r < 268435455 ORDER BY r
5225 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6}
5226 do_test boundary2-2.45.lt.4 {
5228 SELECT a FROM t1 WHERE r < 268435455 ORDER BY r DESC
5230 } {6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5231 do_test boundary2-2.45.lt.5 {
5233 SELECT a FROM t1 WHERE r < 268435455 ORDER BY x
5235 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5236 do_test boundary2-2.45.le.1 {
5238 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY a
5240 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
5241 do_test boundary2-2.45.le.2 {
5243 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY a DESC
5245 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
5246 do_test boundary2-2.45.le.3 {
5248 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY r
5250 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12}
5251 do_test boundary2-2.45.le.4 {
5253 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY r DESC
5255 } {12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5256 do_test boundary2-2.45.le.5 {
5258 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY x
5260 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5261 do_test boundary2-2.46.1 {
5263 SELECT * FROM t1 WHERE r=-9223372036854775808
5265 } {-9223372036854775808 55 8000000000000000}
5266 do_test boundary2-2.46.2 {
5268 SELECT r, a FROM t1 WHERE x='8000000000000000'
5270 } {-9223372036854775808 55}
5271 do_test boundary2-2.46.3 {
5273 SELECT r, x FROM t1 WHERE a=55
5275 } {-9223372036854775808 8000000000000000}
5276 do_test boundary2-2.46.gt.1 {
5278 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY a
5280 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
5281 do_test boundary2-2.46.gt.2 {
5283 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY a DESC
5285 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
5286 do_test boundary2-2.46.gt.3 {
5288 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY r
5290 } {2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5291 do_test boundary2-2.46.gt.4 {
5293 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY r DESC
5295 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2}
5296 do_test boundary2-2.46.gt.5 {
5298 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY x
5300 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5301 do_test boundary2-2.46.ge.1 {
5303 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY a
5305 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
5306 do_test boundary2-2.46.ge.2 {
5308 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY a DESC
5310 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
5311 do_test boundary2-2.46.ge.3 {
5313 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY r
5315 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5316 do_test boundary2-2.46.ge.4 {
5318 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY r DESC
5320 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5321 do_test boundary2-2.46.ge.5 {
5323 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY x
5325 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5326 do_test boundary2-2.46.lt.1 {
5328 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY a
5331 do_test boundary2-2.46.lt.2 {
5333 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY a DESC
5336 do_test boundary2-2.46.lt.3 {
5338 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY r
5341 do_test boundary2-2.46.lt.4 {
5343 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY r DESC
5346 do_test boundary2-2.46.lt.5 {
5348 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY x
5351 do_test boundary2-2.46.le.1 {
5353 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY a
5356 do_test boundary2-2.46.le.2 {
5358 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY a DESC
5361 do_test boundary2-2.46.le.3 {
5363 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY r
5366 do_test boundary2-2.46.le.4 {
5368 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY r DESC
5371 do_test boundary2-2.46.le.5 {
5373 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY x
5376 do_test boundary2-2.47.1 {
5378 SELECT * FROM t1 WHERE r=562949953421312
5380 } {562949953421312 43 0002000000000000}
5381 do_test boundary2-2.47.2 {
5383 SELECT r, a FROM t1 WHERE x='0002000000000000'
5385 } {562949953421312 43}
5386 do_test boundary2-2.47.3 {
5388 SELECT r, x FROM t1 WHERE a=43
5390 } {562949953421312 0002000000000000}
5391 do_test boundary2-2.47.gt.1 {
5393 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY a
5396 do_test boundary2-2.47.gt.2 {
5398 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY a DESC
5401 do_test boundary2-2.47.gt.3 {
5403 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY r
5406 do_test boundary2-2.47.gt.4 {
5408 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY r DESC
5411 do_test boundary2-2.47.gt.5 {
5413 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY x
5416 do_test boundary2-2.47.ge.1 {
5418 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY a
5420 } {3 17 27 28 43 45}
5421 do_test boundary2-2.47.ge.2 {
5423 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY a DESC
5425 } {45 43 28 27 17 3}
5426 do_test boundary2-2.47.ge.3 {
5428 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY r
5430 } {43 27 45 17 28 3}
5431 do_test boundary2-2.47.ge.4 {
5433 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY r DESC
5435 } {3 28 17 45 27 43}
5436 do_test boundary2-2.47.ge.5 {
5438 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY x
5440 } {43 27 45 17 28 3}
5441 do_test boundary2-2.47.lt.1 {
5443 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY a
5445 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
5446 do_test boundary2-2.47.lt.2 {
5448 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY a DESC
5450 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
5451 do_test boundary2-2.47.lt.3 {
5453 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY r
5455 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13}
5456 do_test boundary2-2.47.lt.4 {
5458 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY r DESC
5460 } {13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5461 do_test boundary2-2.47.lt.5 {
5463 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY x
5465 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5466 do_test boundary2-2.47.le.1 {
5468 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY a
5470 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
5471 do_test boundary2-2.47.le.2 {
5473 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY a DESC
5475 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
5476 do_test boundary2-2.47.le.3 {
5478 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY r
5480 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43}
5481 do_test boundary2-2.47.le.4 {
5483 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY r DESC
5485 } {43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5486 do_test boundary2-2.47.le.5 {
5488 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY x
5490 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5491 do_test boundary2-2.48.1 {
5493 SELECT * FROM t1 WHERE r=-8388609
5495 } {-8388609 1 ffffffffff7fffff}
5496 do_test boundary2-2.48.2 {
5498 SELECT r, a FROM t1 WHERE x='ffffffffff7fffff'
5501 do_test boundary2-2.48.3 {
5503 SELECT r, x FROM t1 WHERE a=1
5505 } {-8388609 ffffffffff7fffff}
5506 do_test boundary2-2.48.gt.1 {
5508 SELECT a FROM t1 WHERE r > -8388609 ORDER BY a
5510 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
5511 do_test boundary2-2.48.gt.2 {
5513 SELECT a FROM t1 WHERE r > -8388609 ORDER BY a DESC
5515 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
5516 do_test boundary2-2.48.gt.3 {
5518 SELECT a FROM t1 WHERE r > -8388609 ORDER BY r
5520 } {37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5521 do_test boundary2-2.48.gt.4 {
5523 SELECT a FROM t1 WHERE r > -8388609 ORDER BY r DESC
5525 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37}
5526 do_test boundary2-2.48.gt.5 {
5528 SELECT a FROM t1 WHERE r > -8388609 ORDER BY x
5530 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 37 29 32 54 53 52 33 38}
5531 do_test boundary2-2.48.ge.1 {
5533 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY a
5535 } {1 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
5536 do_test boundary2-2.48.ge.2 {
5538 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY a DESC
5540 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3 1}
5541 do_test boundary2-2.48.ge.3 {
5543 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY r
5545 } {1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5546 do_test boundary2-2.48.ge.4 {
5548 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY r DESC
5550 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1}
5551 do_test boundary2-2.48.ge.5 {
5553 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY x
5555 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 1 37 29 32 54 53 52 33 38}
5556 do_test boundary2-2.48.lt.1 {
5558 SELECT a FROM t1 WHERE r < -8388609 ORDER BY a
5560 } {2 11 21 44 47 55 58 63 64}
5561 do_test boundary2-2.48.lt.2 {
5563 SELECT a FROM t1 WHERE r < -8388609 ORDER BY a DESC
5565 } {64 63 58 55 47 44 21 11 2}
5566 do_test boundary2-2.48.lt.3 {
5568 SELECT a FROM t1 WHERE r < -8388609 ORDER BY r
5570 } {55 2 64 21 44 58 63 47 11}
5571 do_test boundary2-2.48.lt.4 {
5573 SELECT a FROM t1 WHERE r < -8388609 ORDER BY r DESC
5575 } {11 47 63 58 44 21 64 2 55}
5576 do_test boundary2-2.48.lt.5 {
5578 SELECT a FROM t1 WHERE r < -8388609 ORDER BY x
5580 } {55 2 64 21 44 58 63 47 11}
5581 do_test boundary2-2.48.le.1 {
5583 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY a
5585 } {1 2 11 21 44 47 55 58 63 64}
5586 do_test boundary2-2.48.le.2 {
5588 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY a DESC
5590 } {64 63 58 55 47 44 21 11 2 1}
5591 do_test boundary2-2.48.le.3 {
5593 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY r
5595 } {55 2 64 21 44 58 63 47 11 1}
5596 do_test boundary2-2.48.le.4 {
5598 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY r DESC
5600 } {1 11 47 63 58 44 21 64 2 55}
5601 do_test boundary2-2.48.le.5 {
5603 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY x
5605 } {55 2 64 21 44 58 63 47 11 1}
5606 do_test boundary2-2.49.1 {
5608 SELECT * FROM t1 WHERE r=16777215
5610 } {16777215 9 0000000000ffffff}
5611 do_test boundary2-2.49.2 {
5613 SELECT r, a FROM t1 WHERE x='0000000000ffffff'
5616 do_test boundary2-2.49.3 {
5618 SELECT r, x FROM t1 WHERE a=9
5620 } {16777215 0000000000ffffff}
5621 do_test boundary2-2.49.gt.1 {
5623 SELECT a FROM t1 WHERE r > 16777215 ORDER BY a
5625 } {3 6 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
5626 do_test boundary2-2.49.gt.2 {
5628 SELECT a FROM t1 WHERE r > 16777215 ORDER BY a DESC
5630 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 6 3}
5631 do_test boundary2-2.49.gt.3 {
5633 SELECT a FROM t1 WHERE r > 16777215 ORDER BY r
5635 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5636 do_test boundary2-2.49.gt.4 {
5638 SELECT a FROM t1 WHERE r > 16777215 ORDER BY r DESC
5640 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6}
5641 do_test boundary2-2.49.gt.5 {
5643 SELECT a FROM t1 WHERE r > 16777215 ORDER BY x
5645 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5646 do_test boundary2-2.49.ge.1 {
5648 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY a
5650 } {3 6 7 9 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
5651 do_test boundary2-2.49.ge.2 {
5653 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY a DESC
5655 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 9 7 6 3}
5656 do_test boundary2-2.49.ge.3 {
5658 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY r
5660 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5661 do_test boundary2-2.49.ge.4 {
5663 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY r DESC
5665 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9}
5666 do_test boundary2-2.49.ge.5 {
5668 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY x
5670 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5671 do_test boundary2-2.49.lt.1 {
5673 SELECT a FROM t1 WHERE r < 16777215 ORDER BY a
5675 } {1 2 4 5 8 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
5676 do_test boundary2-2.49.lt.2 {
5678 SELECT a FROM t1 WHERE r < 16777215 ORDER BY a DESC
5680 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 8 5 4 2 1}
5681 do_test boundary2-2.49.lt.3 {
5683 SELECT a FROM t1 WHERE r < 16777215 ORDER BY r
5685 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24}
5686 do_test boundary2-2.49.lt.4 {
5688 SELECT a FROM t1 WHERE r < 16777215 ORDER BY r DESC
5690 } {24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5691 do_test boundary2-2.49.lt.5 {
5693 SELECT a FROM t1 WHERE r < 16777215 ORDER BY x
5695 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5696 do_test boundary2-2.49.le.1 {
5698 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY a
5700 } {1 2 4 5 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
5701 do_test boundary2-2.49.le.2 {
5703 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY a DESC
5705 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 5 4 2 1}
5706 do_test boundary2-2.49.le.3 {
5708 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY r
5710 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9}
5711 do_test boundary2-2.49.le.4 {
5713 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY r DESC
5715 } {9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5716 do_test boundary2-2.49.le.5 {
5718 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY x
5720 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5721 do_test boundary2-2.50.1 {
5723 SELECT * FROM t1 WHERE r=8388608
5725 } {8388608 24 0000000000800000}
5726 do_test boundary2-2.50.2 {
5728 SELECT r, a FROM t1 WHERE x='0000000000800000'
5731 do_test boundary2-2.50.3 {
5733 SELECT r, x FROM t1 WHERE a=24
5735 } {8388608 0000000000800000}
5736 do_test boundary2-2.50.gt.1 {
5738 SELECT a FROM t1 WHERE r > 8388608 ORDER BY a
5740 } {3 6 7 9 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
5741 do_test boundary2-2.50.gt.2 {
5743 SELECT a FROM t1 WHERE r > 8388608 ORDER BY a DESC
5745 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 9 7 6 3}
5746 do_test boundary2-2.50.gt.3 {
5748 SELECT a FROM t1 WHERE r > 8388608 ORDER BY r
5750 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5751 do_test boundary2-2.50.gt.4 {
5753 SELECT a FROM t1 WHERE r > 8388608 ORDER BY r DESC
5755 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9}
5756 do_test boundary2-2.50.gt.5 {
5758 SELECT a FROM t1 WHERE r > 8388608 ORDER BY x
5760 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5761 do_test boundary2-2.50.ge.1 {
5763 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY a
5765 } {3 6 7 9 10 12 13 14 17 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
5766 do_test boundary2-2.50.ge.2 {
5768 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY a DESC
5770 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 17 14 13 12 10 9 7 6 3}
5771 do_test boundary2-2.50.ge.3 {
5773 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY r
5775 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5776 do_test boundary2-2.50.ge.4 {
5778 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY r DESC
5780 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24}
5781 do_test boundary2-2.50.ge.5 {
5783 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY x
5785 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5786 do_test boundary2-2.50.lt.1 {
5788 SELECT a FROM t1 WHERE r < 8388608 ORDER BY a
5790 } {1 2 4 5 8 11 15 16 18 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
5791 do_test boundary2-2.50.lt.2 {
5793 SELECT a FROM t1 WHERE r < 8388608 ORDER BY a DESC
5795 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 18 16 15 11 8 5 4 2 1}
5796 do_test boundary2-2.50.lt.3 {
5798 SELECT a FROM t1 WHERE r < 8388608 ORDER BY r
5800 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18}
5801 do_test boundary2-2.50.lt.4 {
5803 SELECT a FROM t1 WHERE r < 8388608 ORDER BY r DESC
5805 } {18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5806 do_test boundary2-2.50.lt.5 {
5808 SELECT a FROM t1 WHERE r < 8388608 ORDER BY x
5810 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5811 do_test boundary2-2.50.le.1 {
5813 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY a
5815 } {1 2 4 5 8 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
5816 do_test boundary2-2.50.le.2 {
5818 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY a DESC
5820 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 8 5 4 2 1}
5821 do_test boundary2-2.50.le.3 {
5823 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY r
5825 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24}
5826 do_test boundary2-2.50.le.4 {
5828 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY r DESC
5830 } {24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5831 do_test boundary2-2.50.le.5 {
5833 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY x
5835 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5836 do_test boundary2-2.51.1 {
5838 SELECT * FROM t1 WHERE r=16383
5840 } {16383 8 0000000000003fff}
5841 do_test boundary2-2.51.2 {
5843 SELECT r, a FROM t1 WHERE x='0000000000003fff'
5846 do_test boundary2-2.51.3 {
5848 SELECT r, x FROM t1 WHERE a=8
5850 } {16383 0000000000003fff}
5851 do_test boundary2-2.51.gt.1 {
5853 SELECT a FROM t1 WHERE r > 16383 ORDER BY a
5855 } {3 6 7 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
5856 do_test boundary2-2.51.gt.2 {
5858 SELECT a FROM t1 WHERE r > 16383 ORDER BY a DESC
5860 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 7 6 3}
5861 do_test boundary2-2.51.gt.3 {
5863 SELECT a FROM t1 WHERE r > 16383 ORDER BY r
5865 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5866 do_test boundary2-2.51.gt.4 {
5868 SELECT a FROM t1 WHERE r > 16383 ORDER BY r DESC
5870 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16}
5871 do_test boundary2-2.51.gt.5 {
5873 SELECT a FROM t1 WHERE r > 16383 ORDER BY x
5875 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5876 do_test boundary2-2.51.ge.1 {
5878 SELECT a FROM t1 WHERE r >= 16383 ORDER BY a
5880 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
5881 do_test boundary2-2.51.ge.2 {
5883 SELECT a FROM t1 WHERE r >= 16383 ORDER BY a DESC
5885 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
5886 do_test boundary2-2.51.ge.3 {
5888 SELECT a FROM t1 WHERE r >= 16383 ORDER BY r
5890 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5891 do_test boundary2-2.51.ge.4 {
5893 SELECT a FROM t1 WHERE r >= 16383 ORDER BY r DESC
5895 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8}
5896 do_test boundary2-2.51.ge.5 {
5898 SELECT a FROM t1 WHERE r >= 16383 ORDER BY x
5900 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
5901 do_test boundary2-2.51.lt.1 {
5903 SELECT a FROM t1 WHERE r < 16383 ORDER BY a
5905 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
5906 do_test boundary2-2.51.lt.2 {
5908 SELECT a FROM t1 WHERE r < 16383 ORDER BY a DESC
5910 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
5911 do_test boundary2-2.51.lt.3 {
5913 SELECT a FROM t1 WHERE r < 16383 ORDER BY r
5915 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61}
5916 do_test boundary2-2.51.lt.4 {
5918 SELECT a FROM t1 WHERE r < 16383 ORDER BY r DESC
5920 } {61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5921 do_test boundary2-2.51.lt.5 {
5923 SELECT a FROM t1 WHERE r < 16383 ORDER BY x
5925 } {59 60 41 5 31 4 49 30 61 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5926 do_test boundary2-2.51.le.1 {
5928 SELECT a FROM t1 WHERE r <= 16383 ORDER BY a
5930 } {1 2 4 5 8 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
5931 do_test boundary2-2.51.le.2 {
5933 SELECT a FROM t1 WHERE r <= 16383 ORDER BY a DESC
5935 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 8 5 4 2 1}
5936 do_test boundary2-2.51.le.3 {
5938 SELECT a FROM t1 WHERE r <= 16383 ORDER BY r
5940 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8}
5941 do_test boundary2-2.51.le.4 {
5943 SELECT a FROM t1 WHERE r <= 16383 ORDER BY r DESC
5945 } {8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
5946 do_test boundary2-2.51.le.5 {
5948 SELECT a FROM t1 WHERE r <= 16383 ORDER BY x
5950 } {59 60 41 5 31 4 49 30 61 8 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
5951 do_test boundary2-2.52.1 {
5953 SELECT * FROM t1 WHERE r=140737488355328
5955 } {140737488355328 34 0000800000000000}
5956 do_test boundary2-2.52.2 {
5958 SELECT r, a FROM t1 WHERE x='0000800000000000'
5960 } {140737488355328 34}
5961 do_test boundary2-2.52.3 {
5963 SELECT r, x FROM t1 WHERE a=34
5965 } {140737488355328 0000800000000000}
5966 do_test boundary2-2.52.gt.1 {
5968 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY a
5970 } {3 10 13 17 26 27 28 43 45}
5971 do_test boundary2-2.52.gt.2 {
5973 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY a DESC
5975 } {45 43 28 27 26 17 13 10 3}
5976 do_test boundary2-2.52.gt.3 {
5978 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY r
5980 } {10 26 13 43 27 45 17 28 3}
5981 do_test boundary2-2.52.gt.4 {
5983 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY r DESC
5985 } {3 28 17 45 27 43 13 26 10}
5986 do_test boundary2-2.52.gt.5 {
5988 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY x
5990 } {10 26 13 43 27 45 17 28 3}
5991 do_test boundary2-2.52.ge.1 {
5993 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY a
5995 } {3 10 13 17 26 27 28 34 43 45}
5996 do_test boundary2-2.52.ge.2 {
5998 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY a DESC
6000 } {45 43 34 28 27 26 17 13 10 3}
6001 do_test boundary2-2.52.ge.3 {
6003 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY r
6005 } {34 10 26 13 43 27 45 17 28 3}
6006 do_test boundary2-2.52.ge.4 {
6008 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY r DESC
6010 } {3 28 17 45 27 43 13 26 10 34}
6011 do_test boundary2-2.52.ge.5 {
6013 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY x
6015 } {34 10 26 13 43 27 45 17 28 3}
6016 do_test boundary2-2.52.lt.1 {
6018 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY a
6020 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6021 do_test boundary2-2.52.lt.2 {
6023 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY a DESC
6025 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
6026 do_test boundary2-2.52.lt.3 {
6028 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY r
6030 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25}
6031 do_test boundary2-2.52.lt.4 {
6033 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY r DESC
6035 } {25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6036 do_test boundary2-2.52.lt.5 {
6038 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY x
6040 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6041 do_test boundary2-2.52.le.1 {
6043 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY a
6045 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6046 do_test boundary2-2.52.le.2 {
6048 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY a DESC
6050 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
6051 do_test boundary2-2.52.le.3 {
6053 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY r
6055 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34}
6056 do_test boundary2-2.52.le.4 {
6058 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY r DESC
6060 } {34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6061 do_test boundary2-2.52.le.5 {
6063 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY x
6065 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6066 do_test boundary2-2.53.1 {
6068 SELECT * FROM t1 WHERE r=2097151
6070 } {2097151 15 00000000001fffff}
6071 do_test boundary2-2.53.2 {
6073 SELECT r, a FROM t1 WHERE x='00000000001fffff'
6076 do_test boundary2-2.53.3 {
6078 SELECT r, x FROM t1 WHERE a=15
6080 } {2097151 00000000001fffff}
6081 do_test boundary2-2.53.gt.1 {
6083 SELECT a FROM t1 WHERE r > 2097151 ORDER BY a
6085 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
6086 do_test boundary2-2.53.gt.2 {
6088 SELECT a FROM t1 WHERE r > 2097151 ORDER BY a DESC
6090 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
6091 do_test boundary2-2.53.gt.3 {
6093 SELECT a FROM t1 WHERE r > 2097151 ORDER BY r
6095 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6096 do_test boundary2-2.53.gt.4 {
6098 SELECT a FROM t1 WHERE r > 2097151 ORDER BY r DESC
6100 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42}
6101 do_test boundary2-2.53.gt.5 {
6103 SELECT a FROM t1 WHERE r > 2097151 ORDER BY x
6105 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6106 do_test boundary2-2.53.ge.1 {
6108 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY a
6110 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
6111 do_test boundary2-2.53.ge.2 {
6113 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY a DESC
6115 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
6116 do_test boundary2-2.53.ge.3 {
6118 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY r
6120 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6121 do_test boundary2-2.53.ge.4 {
6123 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY r DESC
6125 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15}
6126 do_test boundary2-2.53.ge.5 {
6128 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY x
6130 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6131 do_test boundary2-2.53.lt.1 {
6133 SELECT a FROM t1 WHERE r < 2097151 ORDER BY a
6135 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
6136 do_test boundary2-2.53.lt.2 {
6138 SELECT a FROM t1 WHERE r < 2097151 ORDER BY a DESC
6140 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
6141 do_test boundary2-2.53.lt.3 {
6143 SELECT a FROM t1 WHERE r < 2097151 ORDER BY r
6145 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62}
6146 do_test boundary2-2.53.lt.4 {
6148 SELECT a FROM t1 WHERE r < 2097151 ORDER BY r DESC
6150 } {62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6151 do_test boundary2-2.53.lt.5 {
6153 SELECT a FROM t1 WHERE r < 2097151 ORDER BY x
6155 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6156 do_test boundary2-2.53.le.1 {
6158 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY a
6160 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
6161 do_test boundary2-2.53.le.2 {
6163 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY a DESC
6165 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
6166 do_test boundary2-2.53.le.3 {
6168 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY r
6170 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15}
6171 do_test boundary2-2.53.le.4 {
6173 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY r DESC
6175 } {15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6176 do_test boundary2-2.53.le.5 {
6178 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY x
6180 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6181 do_test boundary2-2.54.1 {
6183 SELECT * FROM t1 WHERE r=140737488355327
6185 } {140737488355327 25 00007fffffffffff}
6186 do_test boundary2-2.54.2 {
6188 SELECT r, a FROM t1 WHERE x='00007fffffffffff'
6190 } {140737488355327 25}
6191 do_test boundary2-2.54.3 {
6193 SELECT r, x FROM t1 WHERE a=25
6195 } {140737488355327 00007fffffffffff}
6196 do_test boundary2-2.54.gt.1 {
6198 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY a
6200 } {3 10 13 17 26 27 28 34 43 45}
6201 do_test boundary2-2.54.gt.2 {
6203 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY a DESC
6205 } {45 43 34 28 27 26 17 13 10 3}
6206 do_test boundary2-2.54.gt.3 {
6208 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY r
6210 } {34 10 26 13 43 27 45 17 28 3}
6211 do_test boundary2-2.54.gt.4 {
6213 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY r DESC
6215 } {3 28 17 45 27 43 13 26 10 34}
6216 do_test boundary2-2.54.gt.5 {
6218 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY x
6220 } {34 10 26 13 43 27 45 17 28 3}
6221 do_test boundary2-2.54.ge.1 {
6223 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY a
6225 } {3 10 13 17 25 26 27 28 34 43 45}
6226 do_test boundary2-2.54.ge.2 {
6228 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY a DESC
6230 } {45 43 34 28 27 26 25 17 13 10 3}
6231 do_test boundary2-2.54.ge.3 {
6233 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY r
6235 } {25 34 10 26 13 43 27 45 17 28 3}
6236 do_test boundary2-2.54.ge.4 {
6238 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY r DESC
6240 } {3 28 17 45 27 43 13 26 10 34 25}
6241 do_test boundary2-2.54.ge.5 {
6243 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY x
6245 } {25 34 10 26 13 43 27 45 17 28 3}
6246 do_test boundary2-2.54.lt.1 {
6248 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY a
6250 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6251 do_test boundary2-2.54.lt.2 {
6253 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY a DESC
6255 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
6256 do_test boundary2-2.54.lt.3 {
6258 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY r
6260 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56}
6261 do_test boundary2-2.54.lt.4 {
6263 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY r DESC
6265 } {56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6266 do_test boundary2-2.54.lt.5 {
6268 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY x
6270 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6271 do_test boundary2-2.54.le.1 {
6273 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY a
6275 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6276 do_test boundary2-2.54.le.2 {
6278 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY a DESC
6280 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
6281 do_test boundary2-2.54.le.3 {
6283 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY r
6285 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25}
6286 do_test boundary2-2.54.le.4 {
6288 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY r DESC
6290 } {25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6291 do_test boundary2-2.54.le.5 {
6293 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY x
6295 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6296 do_test boundary2-2.55.1 {
6298 SELECT * FROM t1 WHERE r=281474976710656
6300 } {281474976710656 26 0001000000000000}
6301 do_test boundary2-2.55.2 {
6303 SELECT r, a FROM t1 WHERE x='0001000000000000'
6305 } {281474976710656 26}
6306 do_test boundary2-2.55.3 {
6308 SELECT r, x FROM t1 WHERE a=26
6310 } {281474976710656 0001000000000000}
6311 do_test boundary2-2.55.gt.1 {
6313 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY a
6315 } {3 13 17 27 28 43 45}
6316 do_test boundary2-2.55.gt.2 {
6318 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY a DESC
6320 } {45 43 28 27 17 13 3}
6321 do_test boundary2-2.55.gt.3 {
6323 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY r
6325 } {13 43 27 45 17 28 3}
6326 do_test boundary2-2.55.gt.4 {
6328 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY r DESC
6330 } {3 28 17 45 27 43 13}
6331 do_test boundary2-2.55.gt.5 {
6333 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY x
6335 } {13 43 27 45 17 28 3}
6336 do_test boundary2-2.55.ge.1 {
6338 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY a
6340 } {3 13 17 26 27 28 43 45}
6341 do_test boundary2-2.55.ge.2 {
6343 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY a DESC
6345 } {45 43 28 27 26 17 13 3}
6346 do_test boundary2-2.55.ge.3 {
6348 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY r
6350 } {26 13 43 27 45 17 28 3}
6351 do_test boundary2-2.55.ge.4 {
6353 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY r DESC
6355 } {3 28 17 45 27 43 13 26}
6356 do_test boundary2-2.55.ge.5 {
6358 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY x
6360 } {26 13 43 27 45 17 28 3}
6361 do_test boundary2-2.55.lt.1 {
6363 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY a
6365 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6366 do_test boundary2-2.55.lt.2 {
6368 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY a DESC
6370 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
6371 do_test boundary2-2.55.lt.3 {
6373 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY r
6375 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10}
6376 do_test boundary2-2.55.lt.4 {
6378 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY r DESC
6380 } {10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6381 do_test boundary2-2.55.lt.5 {
6383 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY x
6385 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6386 do_test boundary2-2.55.le.1 {
6388 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY a
6390 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6391 do_test boundary2-2.55.le.2 {
6393 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY a DESC
6395 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
6396 do_test boundary2-2.55.le.3 {
6398 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY r
6400 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26}
6401 do_test boundary2-2.55.le.4 {
6403 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY r DESC
6405 } {26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6406 do_test boundary2-2.55.le.5 {
6408 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY x
6410 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6411 do_test boundary2-2.56.1 {
6413 SELECT * FROM t1 WHERE r=32767
6415 } {32767 23 0000000000007fff}
6416 do_test boundary2-2.56.2 {
6418 SELECT r, a FROM t1 WHERE x='0000000000007fff'
6421 do_test boundary2-2.56.3 {
6423 SELECT r, x FROM t1 WHERE a=23
6425 } {32767 0000000000007fff}
6426 do_test boundary2-2.56.gt.1 {
6428 SELECT a FROM t1 WHERE r > 32767 ORDER BY a
6430 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
6431 do_test boundary2-2.56.gt.2 {
6433 SELECT a FROM t1 WHERE r > 32767 ORDER BY a DESC
6435 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
6436 do_test boundary2-2.56.gt.3 {
6438 SELECT a FROM t1 WHERE r > 32767 ORDER BY r
6440 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6441 do_test boundary2-2.56.gt.4 {
6443 SELECT a FROM t1 WHERE r > 32767 ORDER BY r DESC
6445 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50}
6446 do_test boundary2-2.56.gt.5 {
6448 SELECT a FROM t1 WHERE r > 32767 ORDER BY x
6450 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6451 do_test boundary2-2.56.ge.1 {
6453 SELECT a FROM t1 WHERE r >= 32767 ORDER BY a
6455 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
6456 do_test boundary2-2.56.ge.2 {
6458 SELECT a FROM t1 WHERE r >= 32767 ORDER BY a DESC
6460 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
6461 do_test boundary2-2.56.ge.3 {
6463 SELECT a FROM t1 WHERE r >= 32767 ORDER BY r
6465 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6466 do_test boundary2-2.56.ge.4 {
6468 SELECT a FROM t1 WHERE r >= 32767 ORDER BY r DESC
6470 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23}
6471 do_test boundary2-2.56.ge.5 {
6473 SELECT a FROM t1 WHERE r >= 32767 ORDER BY x
6475 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6476 do_test boundary2-2.56.lt.1 {
6478 SELECT a FROM t1 WHERE r < 32767 ORDER BY a
6480 } {1 2 4 5 8 11 16 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
6481 do_test boundary2-2.56.lt.2 {
6483 SELECT a FROM t1 WHERE r < 32767 ORDER BY a DESC
6485 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 16 11 8 5 4 2 1}
6486 do_test boundary2-2.56.lt.3 {
6488 SELECT a FROM t1 WHERE r < 32767 ORDER BY r
6490 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16}
6491 do_test boundary2-2.56.lt.4 {
6493 SELECT a FROM t1 WHERE r < 32767 ORDER BY r DESC
6495 } {16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6496 do_test boundary2-2.56.lt.5 {
6498 SELECT a FROM t1 WHERE r < 32767 ORDER BY x
6500 } {59 60 41 5 31 4 49 30 61 8 16 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6501 do_test boundary2-2.56.le.1 {
6503 SELECT a FROM t1 WHERE r <= 32767 ORDER BY a
6505 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
6506 do_test boundary2-2.56.le.2 {
6508 SELECT a FROM t1 WHERE r <= 32767 ORDER BY a DESC
6510 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
6511 do_test boundary2-2.56.le.3 {
6513 SELECT a FROM t1 WHERE r <= 32767 ORDER BY r
6515 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23}
6516 do_test boundary2-2.56.le.4 {
6518 SELECT a FROM t1 WHERE r <= 32767 ORDER BY r DESC
6520 } {23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6521 do_test boundary2-2.56.le.5 {
6523 SELECT a FROM t1 WHERE r <= 32767 ORDER BY x
6525 } {59 60 41 5 31 4 49 30 61 8 16 23 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6526 do_test boundary2-2.57.1 {
6528 SELECT * FROM t1 WHERE r=127
6530 } {127 4 000000000000007f}
6531 do_test boundary2-2.57.2 {
6533 SELECT r, a FROM t1 WHERE x='000000000000007f'
6536 do_test boundary2-2.57.3 {
6538 SELECT r, x FROM t1 WHERE a=4
6540 } {127 000000000000007f}
6541 do_test boundary2-2.57.gt.1 {
6543 SELECT a FROM t1 WHERE r > 127 ORDER BY a
6545 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
6546 do_test boundary2-2.57.gt.2 {
6548 SELECT a FROM t1 WHERE r > 127 ORDER BY a DESC
6550 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
6551 do_test boundary2-2.57.gt.3 {
6553 SELECT a FROM t1 WHERE r > 127 ORDER BY r
6555 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6556 do_test boundary2-2.57.gt.4 {
6558 SELECT a FROM t1 WHERE r > 127 ORDER BY r DESC
6560 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49}
6561 do_test boundary2-2.57.gt.5 {
6563 SELECT a FROM t1 WHERE r > 127 ORDER BY x
6565 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6566 do_test boundary2-2.57.ge.1 {
6568 SELECT a FROM t1 WHERE r >= 127 ORDER BY a
6570 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
6571 do_test boundary2-2.57.ge.2 {
6573 SELECT a FROM t1 WHERE r >= 127 ORDER BY a DESC
6575 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
6576 do_test boundary2-2.57.ge.3 {
6578 SELECT a FROM t1 WHERE r >= 127 ORDER BY r
6580 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6581 do_test boundary2-2.57.ge.4 {
6583 SELECT a FROM t1 WHERE r >= 127 ORDER BY r DESC
6585 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4}
6586 do_test boundary2-2.57.ge.5 {
6588 SELECT a FROM t1 WHERE r >= 127 ORDER BY x
6590 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6591 do_test boundary2-2.57.lt.1 {
6593 SELECT a FROM t1 WHERE r < 127 ORDER BY a
6595 } {1 2 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
6596 do_test boundary2-2.57.lt.2 {
6598 SELECT a FROM t1 WHERE r < 127 ORDER BY a DESC
6600 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 2 1}
6601 do_test boundary2-2.57.lt.3 {
6603 SELECT a FROM t1 WHERE r < 127 ORDER BY r
6605 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31}
6606 do_test boundary2-2.57.lt.4 {
6608 SELECT a FROM t1 WHERE r < 127 ORDER BY r DESC
6610 } {31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6611 do_test boundary2-2.57.lt.5 {
6613 SELECT a FROM t1 WHERE r < 127 ORDER BY x
6615 } {59 60 41 5 31 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6616 do_test boundary2-2.57.le.1 {
6618 SELECT a FROM t1 WHERE r <= 127 ORDER BY a
6620 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
6621 do_test boundary2-2.57.le.2 {
6623 SELECT a FROM t1 WHERE r <= 127 ORDER BY a DESC
6625 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
6626 do_test boundary2-2.57.le.3 {
6628 SELECT a FROM t1 WHERE r <= 127 ORDER BY r
6630 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4}
6631 do_test boundary2-2.57.le.4 {
6633 SELECT a FROM t1 WHERE r <= 127 ORDER BY r DESC
6635 } {4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6636 do_test boundary2-2.57.le.5 {
6638 SELECT a FROM t1 WHERE r <= 127 ORDER BY x
6640 } {59 60 41 5 31 4 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6641 do_test boundary2-2.58.1 {
6643 SELECT * FROM t1 WHERE r=36028797018963967
6645 } {36028797018963967 27 007fffffffffffff}
6646 do_test boundary2-2.58.2 {
6648 SELECT r, a FROM t1 WHERE x='007fffffffffffff'
6650 } {36028797018963967 27}
6651 do_test boundary2-2.58.3 {
6653 SELECT r, x FROM t1 WHERE a=27
6655 } {36028797018963967 007fffffffffffff}
6656 do_test boundary2-2.58.gt.1 {
6658 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY a
6661 do_test boundary2-2.58.gt.2 {
6663 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY a DESC
6666 do_test boundary2-2.58.gt.3 {
6668 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY r
6671 do_test boundary2-2.58.gt.4 {
6673 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY r DESC
6676 do_test boundary2-2.58.gt.5 {
6678 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY x
6681 do_test boundary2-2.58.ge.1 {
6683 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY a
6686 do_test boundary2-2.58.ge.2 {
6688 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY a DESC
6691 do_test boundary2-2.58.ge.3 {
6693 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY r
6696 do_test boundary2-2.58.ge.4 {
6698 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY r DESC
6701 do_test boundary2-2.58.ge.5 {
6703 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY x
6706 do_test boundary2-2.58.lt.1 {
6708 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY a
6710 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6711 do_test boundary2-2.58.lt.2 {
6713 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY a DESC
6715 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
6716 do_test boundary2-2.58.lt.3 {
6718 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY r
6720 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43}
6721 do_test boundary2-2.58.lt.4 {
6723 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY r DESC
6725 } {43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6726 do_test boundary2-2.58.lt.5 {
6728 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY x
6730 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6731 do_test boundary2-2.58.le.1 {
6733 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY a
6735 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6736 do_test boundary2-2.58.le.2 {
6738 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY a DESC
6740 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
6741 do_test boundary2-2.58.le.3 {
6743 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY r
6745 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27}
6746 do_test boundary2-2.58.le.4 {
6748 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY r DESC
6750 } {27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6751 do_test boundary2-2.58.le.5 {
6753 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY x
6755 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6756 do_test boundary2-2.59.1 {
6758 SELECT * FROM t1 WHERE r=4398046511104
6760 } {4398046511104 56 0000040000000000}
6761 do_test boundary2-2.59.2 {
6763 SELECT r, a FROM t1 WHERE x='0000040000000000'
6765 } {4398046511104 56}
6766 do_test boundary2-2.59.3 {
6768 SELECT r, x FROM t1 WHERE a=56
6770 } {4398046511104 0000040000000000}
6771 do_test boundary2-2.59.gt.1 {
6773 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY a
6775 } {3 10 13 17 25 26 27 28 34 43 45}
6776 do_test boundary2-2.59.gt.2 {
6778 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY a DESC
6780 } {45 43 34 28 27 26 25 17 13 10 3}
6781 do_test boundary2-2.59.gt.3 {
6783 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY r
6785 } {25 34 10 26 13 43 27 45 17 28 3}
6786 do_test boundary2-2.59.gt.4 {
6788 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY r DESC
6790 } {3 28 17 45 27 43 13 26 10 34 25}
6791 do_test boundary2-2.59.gt.5 {
6793 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY x
6795 } {25 34 10 26 13 43 27 45 17 28 3}
6796 do_test boundary2-2.59.ge.1 {
6798 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY a
6800 } {3 10 13 17 25 26 27 28 34 43 45 56}
6801 do_test boundary2-2.59.ge.2 {
6803 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY a DESC
6805 } {56 45 43 34 28 27 26 25 17 13 10 3}
6806 do_test boundary2-2.59.ge.3 {
6808 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY r
6810 } {56 25 34 10 26 13 43 27 45 17 28 3}
6811 do_test boundary2-2.59.ge.4 {
6813 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY r DESC
6815 } {3 28 17 45 27 43 13 26 10 34 25 56}
6816 do_test boundary2-2.59.ge.5 {
6818 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY x
6820 } {56 25 34 10 26 13 43 27 45 17 28 3}
6821 do_test boundary2-2.59.lt.1 {
6823 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY a
6825 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
6826 do_test boundary2-2.59.lt.2 {
6828 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY a DESC
6830 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
6831 do_test boundary2-2.59.lt.3 {
6833 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY r
6835 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7}
6836 do_test boundary2-2.59.lt.4 {
6838 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY r DESC
6840 } {7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6841 do_test boundary2-2.59.lt.5 {
6843 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY x
6845 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6846 do_test boundary2-2.59.le.1 {
6848 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY a
6850 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
6851 do_test boundary2-2.59.le.2 {
6853 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY a DESC
6855 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
6856 do_test boundary2-2.59.le.3 {
6858 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY r
6860 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56}
6861 do_test boundary2-2.59.le.4 {
6863 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY r DESC
6865 } {56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6866 do_test boundary2-2.59.le.5 {
6868 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY x
6870 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6871 do_test boundary2-2.60.1 {
6873 SELECT * FROM t1 WHERE r=1
6875 } {1 60 0000000000000001}
6876 do_test boundary2-2.60.2 {
6878 SELECT r, a FROM t1 WHERE x='0000000000000001'
6881 do_test boundary2-2.60.3 {
6883 SELECT r, x FROM t1 WHERE a=60
6885 } {1 0000000000000001}
6886 do_test boundary2-2.60.gt.1 {
6888 SELECT a FROM t1 WHERE r > 1 ORDER BY a
6890 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 61 62}
6891 do_test boundary2-2.60.gt.2 {
6893 SELECT a FROM t1 WHERE r > 1 ORDER BY a DESC
6895 } {62 61 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
6896 do_test boundary2-2.60.gt.3 {
6898 SELECT a FROM t1 WHERE r > 1 ORDER BY r
6900 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6901 do_test boundary2-2.60.gt.4 {
6903 SELECT a FROM t1 WHERE r > 1 ORDER BY r DESC
6905 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41}
6906 do_test boundary2-2.60.gt.5 {
6908 SELECT a FROM t1 WHERE r > 1 ORDER BY x
6910 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6911 do_test boundary2-2.60.ge.1 {
6913 SELECT a FROM t1 WHERE r >= 1 ORDER BY a
6915 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 60 61 62}
6916 do_test boundary2-2.60.ge.2 {
6918 SELECT a FROM t1 WHERE r >= 1 ORDER BY a DESC
6920 } {62 61 60 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
6921 do_test boundary2-2.60.ge.3 {
6923 SELECT a FROM t1 WHERE r >= 1 ORDER BY r
6925 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6926 do_test boundary2-2.60.ge.4 {
6928 SELECT a FROM t1 WHERE r >= 1 ORDER BY r DESC
6930 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60}
6931 do_test boundary2-2.60.ge.5 {
6933 SELECT a FROM t1 WHERE r >= 1 ORDER BY x
6935 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
6936 do_test boundary2-2.60.lt.1 {
6938 SELECT a FROM t1 WHERE r < 1 ORDER BY a
6940 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 63 64}
6941 do_test boundary2-2.60.lt.2 {
6943 SELECT a FROM t1 WHERE r < 1 ORDER BY a DESC
6945 } {64 63 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
6946 do_test boundary2-2.60.lt.3 {
6948 SELECT a FROM t1 WHERE r < 1 ORDER BY r
6950 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59}
6951 do_test boundary2-2.60.lt.4 {
6953 SELECT a FROM t1 WHERE r < 1 ORDER BY r DESC
6955 } {59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6956 do_test boundary2-2.60.lt.5 {
6958 SELECT a FROM t1 WHERE r < 1 ORDER BY x
6960 } {59 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6961 do_test boundary2-2.60.le.1 {
6963 SELECT a FROM t1 WHERE r <= 1 ORDER BY a
6965 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 60 63 64}
6966 do_test boundary2-2.60.le.2 {
6968 SELECT a FROM t1 WHERE r <= 1 ORDER BY a DESC
6970 } {64 63 60 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
6971 do_test boundary2-2.60.le.3 {
6973 SELECT a FROM t1 WHERE r <= 1 ORDER BY r
6975 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60}
6976 do_test boundary2-2.60.le.4 {
6978 SELECT a FROM t1 WHERE r <= 1 ORDER BY r DESC
6980 } {60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
6981 do_test boundary2-2.60.le.5 {
6983 SELECT a FROM t1 WHERE r <= 1 ORDER BY x
6985 } {59 60 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
6986 do_test boundary2-2.61.1 {
6988 SELECT * FROM t1 WHERE r=36028797018963968
6990 } {36028797018963968 45 0080000000000000}
6991 do_test boundary2-2.61.2 {
6993 SELECT r, a FROM t1 WHERE x='0080000000000000'
6995 } {36028797018963968 45}
6996 do_test boundary2-2.61.3 {
6998 SELECT r, x FROM t1 WHERE a=45
7000 } {36028797018963968 0080000000000000}
7001 do_test boundary2-2.61.gt.1 {
7003 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY a
7006 do_test boundary2-2.61.gt.2 {
7008 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY a DESC
7011 do_test boundary2-2.61.gt.3 {
7013 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY r
7016 do_test boundary2-2.61.gt.4 {
7018 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY r DESC
7021 do_test boundary2-2.61.gt.5 {
7023 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY x
7026 do_test boundary2-2.61.ge.1 {
7028 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY a
7031 do_test boundary2-2.61.ge.2 {
7033 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY a DESC
7036 do_test boundary2-2.61.ge.3 {
7038 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY r
7041 do_test boundary2-2.61.ge.4 {
7043 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY r DESC
7046 do_test boundary2-2.61.ge.5 {
7048 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY x
7051 do_test boundary2-2.61.lt.1 {
7053 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY a
7055 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7056 do_test boundary2-2.61.lt.2 {
7058 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY a DESC
7060 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
7061 do_test boundary2-2.61.lt.3 {
7063 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY r
7065 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27}
7066 do_test boundary2-2.61.lt.4 {
7068 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY r DESC
7070 } {27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7071 do_test boundary2-2.61.lt.5 {
7073 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY x
7075 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7076 do_test boundary2-2.61.le.1 {
7078 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY a
7080 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7081 do_test boundary2-2.61.le.2 {
7083 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY a DESC
7085 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
7086 do_test boundary2-2.61.le.3 {
7088 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY r
7090 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45}
7091 do_test boundary2-2.61.le.4 {
7093 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY r DESC
7095 } {45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7096 do_test boundary2-2.61.le.5 {
7098 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY x
7100 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7101 do_test boundary2-2.62.1 {
7103 SELECT * FROM t1 WHERE r=-2147483649
7105 } {-2147483649 47 ffffffff7fffffff}
7106 do_test boundary2-2.62.2 {
7108 SELECT r, a FROM t1 WHERE x='ffffffff7fffffff'
7111 do_test boundary2-2.62.3 {
7113 SELECT r, x FROM t1 WHERE a=47
7115 } {-2147483649 ffffffff7fffffff}
7116 do_test boundary2-2.62.gt.1 {
7118 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY a
7120 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
7121 do_test boundary2-2.62.gt.2 {
7123 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY a DESC
7125 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
7126 do_test boundary2-2.62.gt.3 {
7128 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY r
7130 } {11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7131 do_test boundary2-2.62.gt.4 {
7133 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY r DESC
7135 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11}
7136 do_test boundary2-2.62.gt.5 {
7138 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY x
7140 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 11 1 37 29 32 54 53 52 33 38}
7141 do_test boundary2-2.62.ge.1 {
7143 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY a
7145 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62}
7146 do_test boundary2-2.62.ge.2 {
7148 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY a DESC
7150 } {62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
7151 do_test boundary2-2.62.ge.3 {
7153 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY r
7155 } {47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7156 do_test boundary2-2.62.ge.4 {
7158 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY r DESC
7160 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47}
7161 do_test boundary2-2.62.ge.5 {
7163 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY x
7165 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 47 11 1 37 29 32 54 53 52 33 38}
7166 do_test boundary2-2.62.lt.1 {
7168 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY a
7170 } {2 21 44 55 58 63 64}
7171 do_test boundary2-2.62.lt.2 {
7173 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY a DESC
7175 } {64 63 58 55 44 21 2}
7176 do_test boundary2-2.62.lt.3 {
7178 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY r
7180 } {55 2 64 21 44 58 63}
7181 do_test boundary2-2.62.lt.4 {
7183 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY r DESC
7185 } {63 58 44 21 64 2 55}
7186 do_test boundary2-2.62.lt.5 {
7188 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY x
7190 } {55 2 64 21 44 58 63}
7191 do_test boundary2-2.62.le.1 {
7193 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY a
7195 } {2 21 44 47 55 58 63 64}
7196 do_test boundary2-2.62.le.2 {
7198 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY a DESC
7200 } {64 63 58 55 47 44 21 2}
7201 do_test boundary2-2.62.le.3 {
7203 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY r
7205 } {55 2 64 21 44 58 63 47}
7206 do_test boundary2-2.62.le.4 {
7208 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY r DESC
7210 } {47 63 58 44 21 64 2 55}
7211 do_test boundary2-2.62.le.5 {
7213 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY x
7215 } {55 2 64 21 44 58 63 47}
7216 do_test boundary2-2.63.1 {
7218 SELECT * FROM t1 WHERE r=-36028797018963969
7220 } {-36028797018963969 2 ff7fffffffffffff}
7221 do_test boundary2-2.63.2 {
7223 SELECT r, a FROM t1 WHERE x='ff7fffffffffffff'
7225 } {-36028797018963969 2}
7226 do_test boundary2-2.63.3 {
7228 SELECT r, x FROM t1 WHERE a=2
7230 } {-36028797018963969 ff7fffffffffffff}
7231 do_test boundary2-2.63.gt.1 {
7233 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY a
7235 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
7236 do_test boundary2-2.63.gt.2 {
7238 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY a DESC
7240 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
7241 do_test boundary2-2.63.gt.3 {
7243 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY r
7245 } {64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7246 do_test boundary2-2.63.gt.4 {
7248 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY r DESC
7250 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64}
7251 do_test boundary2-2.63.gt.5 {
7253 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY x
7255 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7256 do_test boundary2-2.63.ge.1 {
7258 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY a
7260 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
7261 do_test boundary2-2.63.ge.2 {
7263 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY a DESC
7265 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
7266 do_test boundary2-2.63.ge.3 {
7268 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY r
7270 } {2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7271 do_test boundary2-2.63.ge.4 {
7273 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY r DESC
7275 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2}
7276 do_test boundary2-2.63.ge.5 {
7278 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY x
7280 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7281 do_test boundary2-2.63.lt.1 {
7283 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY a
7286 do_test boundary2-2.63.lt.2 {
7288 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY a DESC
7291 do_test boundary2-2.63.lt.3 {
7293 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY r
7296 do_test boundary2-2.63.lt.4 {
7298 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY r DESC
7301 do_test boundary2-2.63.lt.5 {
7303 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY x
7306 do_test boundary2-2.63.le.1 {
7308 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY a
7311 do_test boundary2-2.63.le.2 {
7313 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY a DESC
7316 do_test boundary2-2.63.le.3 {
7318 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY r
7321 do_test boundary2-2.63.le.4 {
7323 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY r DESC
7326 do_test boundary2-2.63.le.5 {
7328 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY x
7331 do_test boundary2-2.64.1 {
7333 SELECT * FROM t1 WHERE r=3
7335 } {3 5 0000000000000003}
7336 do_test boundary2-2.64.2 {
7338 SELECT r, a FROM t1 WHERE x='0000000000000003'
7341 do_test boundary2-2.64.3 {
7343 SELECT r, x FROM t1 WHERE a=5
7345 } {3 0000000000000003}
7346 do_test boundary2-2.64.gt.1 {
7348 SELECT a FROM t1 WHERE r > 3 ORDER BY a
7350 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
7351 do_test boundary2-2.64.gt.2 {
7353 SELECT a FROM t1 WHERE r > 3 ORDER BY a DESC
7355 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
7356 do_test boundary2-2.64.gt.3 {
7358 SELECT a FROM t1 WHERE r > 3 ORDER BY r
7360 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7361 do_test boundary2-2.64.gt.4 {
7363 SELECT a FROM t1 WHERE r > 3 ORDER BY r DESC
7365 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31}
7366 do_test boundary2-2.64.gt.5 {
7368 SELECT a FROM t1 WHERE r > 3 ORDER BY x
7370 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7371 do_test boundary2-2.64.ge.1 {
7373 SELECT a FROM t1 WHERE r >= 3 ORDER BY a
7375 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
7376 do_test boundary2-2.64.ge.2 {
7378 SELECT a FROM t1 WHERE r >= 3 ORDER BY a DESC
7380 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
7381 do_test boundary2-2.64.ge.3 {
7383 SELECT a FROM t1 WHERE r >= 3 ORDER BY r
7385 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7386 do_test boundary2-2.64.ge.4 {
7388 SELECT a FROM t1 WHERE r >= 3 ORDER BY r DESC
7390 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5}
7391 do_test boundary2-2.64.ge.5 {
7393 SELECT a FROM t1 WHERE r >= 3 ORDER BY x
7395 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7396 do_test boundary2-2.64.lt.1 {
7398 SELECT a FROM t1 WHERE r < 3 ORDER BY a
7400 } {1 2 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
7401 do_test boundary2-2.64.lt.2 {
7403 SELECT a FROM t1 WHERE r < 3 ORDER BY a DESC
7405 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 2 1}
7406 do_test boundary2-2.64.lt.3 {
7408 SELECT a FROM t1 WHERE r < 3 ORDER BY r
7410 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41}
7411 do_test boundary2-2.64.lt.4 {
7413 SELECT a FROM t1 WHERE r < 3 ORDER BY r DESC
7415 } {41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7416 do_test boundary2-2.64.lt.5 {
7418 SELECT a FROM t1 WHERE r < 3 ORDER BY x
7420 } {59 60 41 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7421 do_test boundary2-2.64.le.1 {
7423 SELECT a FROM t1 WHERE r <= 3 ORDER BY a
7425 } {1 2 5 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
7426 do_test boundary2-2.64.le.2 {
7428 SELECT a FROM t1 WHERE r <= 3 ORDER BY a DESC
7430 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 5 2 1}
7431 do_test boundary2-2.64.le.3 {
7433 SELECT a FROM t1 WHERE r <= 3 ORDER BY r
7435 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5}
7436 do_test boundary2-2.64.le.4 {
7438 SELECT a FROM t1 WHERE r <= 3 ORDER BY r DESC
7440 } {5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7441 do_test boundary2-2.64.le.5 {
7443 SELECT a FROM t1 WHERE r <= 3 ORDER BY x
7445 } {59 60 41 5 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7446 do_test boundary2-2.65.gt.1 {
7448 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY a
7451 do_test boundary2-2.65.gt.2 {
7453 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY a DESC
7456 do_test boundary2-2.65.gt.3 {
7458 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY r
7461 do_test boundary2-2.65.gt.4 {
7463 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY r DESC
7466 do_test boundary2-2.65.gt.5 {
7468 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY x
7471 do_test boundary2-2.65.ge.1 {
7473 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY a
7476 do_test boundary2-2.65.ge.2 {
7478 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY a DESC
7481 do_test boundary2-2.65.ge.3 {
7483 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY r
7486 do_test boundary2-2.65.ge.4 {
7488 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY r DESC
7491 do_test boundary2-2.65.ge.5 {
7493 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY x
7496 do_test boundary2-2.65.lt.1 {
7498 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY a
7500 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7501 do_test boundary2-2.65.lt.2 {
7503 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY a DESC
7505 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
7506 do_test boundary2-2.65.lt.3 {
7508 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY r
7510 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7511 do_test boundary2-2.65.lt.4 {
7513 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY r DESC
7515 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7516 do_test boundary2-2.65.lt.5 {
7518 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY x
7520 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7521 do_test boundary2-2.65.le.1 {
7523 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY a
7525 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7526 do_test boundary2-2.65.le.2 {
7528 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY a DESC
7530 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
7531 do_test boundary2-2.65.le.3 {
7533 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY r
7535 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7536 do_test boundary2-2.65.le.4 {
7538 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY r DESC
7540 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7541 do_test boundary2-2.65.le.5 {
7543 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY x
7545 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7546 do_test boundary2-2.66.gt.1 {
7548 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY a
7550 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7551 do_test boundary2-2.66.gt.2 {
7553 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY a DESC
7555 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
7556 do_test boundary2-2.66.gt.3 {
7558 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY r
7560 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7561 do_test boundary2-2.66.gt.4 {
7563 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY r DESC
7565 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7566 do_test boundary2-2.66.gt.5 {
7568 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY x
7570 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7571 do_test boundary2-2.66.ge.1 {
7573 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY a
7575 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7576 do_test boundary2-2.66.ge.2 {
7578 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY a DESC
7580 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
7581 do_test boundary2-2.66.ge.3 {
7583 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY r
7585 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7586 do_test boundary2-2.66.ge.4 {
7588 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY r DESC
7590 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7591 do_test boundary2-2.66.ge.5 {
7593 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY x
7595 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7596 do_test boundary2-2.66.lt.1 {
7598 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY a
7601 do_test boundary2-2.66.lt.2 {
7603 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY a DESC
7606 do_test boundary2-2.66.lt.3 {
7608 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY r
7611 do_test boundary2-2.66.lt.4 {
7613 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY r DESC
7616 do_test boundary2-2.66.lt.5 {
7618 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY x
7621 do_test boundary2-2.66.le.1 {
7623 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY a
7626 do_test boundary2-2.66.le.2 {
7628 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY a DESC
7631 do_test boundary2-2.66.le.3 {
7633 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY r
7636 do_test boundary2-2.66.le.4 {
7638 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY r DESC
7641 do_test boundary2-2.66.le.5 {
7643 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY x
7646 do_test boundary2-3.1 {
7653 do_test boundary2-4.1.1 {
7655 SELECT * FROM t1 WHERE r=72057594037927935
7657 } {72057594037927935 17 00ffffffffffffff}
7658 do_test boundary2-4.1.2 {
7660 SELECT r, a FROM t1 WHERE x='00ffffffffffffff'
7662 } {72057594037927935 17}
7663 do_test boundary2-4.1.3 {
7665 SELECT r, x FROM t1 WHERE a=17
7667 } {72057594037927935 00ffffffffffffff}
7668 do_test boundary2-4.1.gt.1 {
7670 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY a
7673 do_test boundary2-4.1.gt.2 {
7675 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY a DESC
7678 do_test boundary2-4.1.gt.3 {
7680 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY r
7683 do_test boundary2-4.1.gt.4 {
7685 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY r DESC
7688 do_test boundary2-4.1.gt.5 {
7690 SELECT a FROM t1 WHERE r > 72057594037927935 ORDER BY x
7693 do_test boundary2-4.1.ge.1 {
7695 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY a
7698 do_test boundary2-4.1.ge.2 {
7700 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY a DESC
7703 do_test boundary2-4.1.ge.3 {
7705 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY r
7708 do_test boundary2-4.1.ge.4 {
7710 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY r DESC
7713 do_test boundary2-4.1.ge.5 {
7715 SELECT a FROM t1 WHERE r >= 72057594037927935 ORDER BY x
7718 do_test boundary2-4.1.lt.1 {
7720 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY a
7722 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7723 do_test boundary2-4.1.lt.2 {
7725 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY a DESC
7727 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
7728 do_test boundary2-4.1.lt.3 {
7730 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY r
7732 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45}
7733 do_test boundary2-4.1.lt.4 {
7735 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY r DESC
7737 } {45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7738 do_test boundary2-4.1.lt.5 {
7740 SELECT a FROM t1 WHERE r < 72057594037927935 ORDER BY x
7742 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7743 do_test boundary2-4.1.le.1 {
7745 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY a
7747 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
7748 do_test boundary2-4.1.le.2 {
7750 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY a DESC
7752 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
7753 do_test boundary2-4.1.le.3 {
7755 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY r
7757 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17}
7758 do_test boundary2-4.1.le.4 {
7760 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY r DESC
7762 } {17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7763 do_test boundary2-4.1.le.5 {
7765 SELECT a FROM t1 WHERE r <= 72057594037927935 ORDER BY x
7767 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7768 do_test boundary2-4.2.1 {
7770 SELECT * FROM t1 WHERE r=16384
7772 } {16384 16 0000000000004000}
7773 do_test boundary2-4.2.2 {
7775 SELECT r, a FROM t1 WHERE x='0000000000004000'
7778 do_test boundary2-4.2.3 {
7780 SELECT r, x FROM t1 WHERE a=16
7782 } {16384 0000000000004000}
7783 do_test boundary2-4.2.gt.1 {
7785 SELECT a FROM t1 WHERE r > 16384 ORDER BY a
7787 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
7788 do_test boundary2-4.2.gt.2 {
7790 SELECT a FROM t1 WHERE r > 16384 ORDER BY a DESC
7792 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
7793 do_test boundary2-4.2.gt.3 {
7795 SELECT a FROM t1 WHERE r > 16384 ORDER BY r
7797 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7798 do_test boundary2-4.2.gt.4 {
7800 SELECT a FROM t1 WHERE r > 16384 ORDER BY r DESC
7802 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23}
7803 do_test boundary2-4.2.gt.5 {
7805 SELECT a FROM t1 WHERE r > 16384 ORDER BY x
7807 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7808 do_test boundary2-4.2.ge.1 {
7810 SELECT a FROM t1 WHERE r >= 16384 ORDER BY a
7812 } {3 6 7 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
7813 do_test boundary2-4.2.ge.2 {
7815 SELECT a FROM t1 WHERE r >= 16384 ORDER BY a DESC
7817 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 7 6 3}
7818 do_test boundary2-4.2.ge.3 {
7820 SELECT a FROM t1 WHERE r >= 16384 ORDER BY r
7822 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7823 do_test boundary2-4.2.ge.4 {
7825 SELECT a FROM t1 WHERE r >= 16384 ORDER BY r DESC
7827 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16}
7828 do_test boundary2-4.2.ge.5 {
7830 SELECT a FROM t1 WHERE r >= 16384 ORDER BY x
7832 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7833 do_test boundary2-4.2.lt.1 {
7835 SELECT a FROM t1 WHERE r < 16384 ORDER BY a
7837 } {1 2 4 5 8 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
7838 do_test boundary2-4.2.lt.2 {
7840 SELECT a FROM t1 WHERE r < 16384 ORDER BY a DESC
7842 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 8 5 4 2 1}
7843 do_test boundary2-4.2.lt.3 {
7845 SELECT a FROM t1 WHERE r < 16384 ORDER BY r
7847 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8}
7848 do_test boundary2-4.2.lt.4 {
7850 SELECT a FROM t1 WHERE r < 16384 ORDER BY r DESC
7852 } {8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7853 do_test boundary2-4.2.lt.5 {
7855 SELECT a FROM t1 WHERE r < 16384 ORDER BY x
7857 } {59 60 41 5 31 4 49 30 61 8 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7858 do_test boundary2-4.2.le.1 {
7860 SELECT a FROM t1 WHERE r <= 16384 ORDER BY a
7862 } {1 2 4 5 8 11 16 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
7863 do_test boundary2-4.2.le.2 {
7865 SELECT a FROM t1 WHERE r <= 16384 ORDER BY a DESC
7867 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 16 11 8 5 4 2 1}
7868 do_test boundary2-4.2.le.3 {
7870 SELECT a FROM t1 WHERE r <= 16384 ORDER BY r
7872 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16}
7873 do_test boundary2-4.2.le.4 {
7875 SELECT a FROM t1 WHERE r <= 16384 ORDER BY r DESC
7877 } {16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7878 do_test boundary2-4.2.le.5 {
7880 SELECT a FROM t1 WHERE r <= 16384 ORDER BY x
7882 } {59 60 41 5 31 4 49 30 61 8 16 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7883 do_test boundary2-4.3.1 {
7885 SELECT * FROM t1 WHERE r=4294967296
7887 } {4294967296 36 0000000100000000}
7888 do_test boundary2-4.3.2 {
7890 SELECT r, a FROM t1 WHERE x='0000000100000000'
7893 do_test boundary2-4.3.3 {
7895 SELECT r, x FROM t1 WHERE a=36
7897 } {4294967296 0000000100000000}
7898 do_test boundary2-4.3.gt.1 {
7900 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY a
7902 } {3 7 10 13 17 19 22 25 26 27 28 34 35 39 43 45 46 56 57}
7903 do_test boundary2-4.3.gt.2 {
7905 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY a DESC
7907 } {57 56 46 45 43 39 35 34 28 27 26 25 22 19 17 13 10 7 3}
7908 do_test boundary2-4.3.gt.3 {
7910 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY r
7912 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7913 do_test boundary2-4.3.gt.4 {
7915 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY r DESC
7917 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39}
7918 do_test boundary2-4.3.gt.5 {
7920 SELECT a FROM t1 WHERE r > 4294967296 ORDER BY x
7922 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7923 do_test boundary2-4.3.ge.1 {
7925 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY a
7927 } {3 7 10 13 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
7928 do_test boundary2-4.3.ge.2 {
7930 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY a DESC
7932 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 13 10 7 3}
7933 do_test boundary2-4.3.ge.3 {
7935 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY r
7937 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7938 do_test boundary2-4.3.ge.4 {
7940 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY r DESC
7942 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36}
7943 do_test boundary2-4.3.ge.5 {
7945 SELECT a FROM t1 WHERE r >= 4294967296 ORDER BY x
7947 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
7948 do_test boundary2-4.3.lt.1 {
7950 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY a
7952 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
7953 do_test boundary2-4.3.lt.2 {
7955 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY a DESC
7957 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
7958 do_test boundary2-4.3.lt.3 {
7960 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY r
7962 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14}
7963 do_test boundary2-4.3.lt.4 {
7965 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY r DESC
7967 } {14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7968 do_test boundary2-4.3.lt.5 {
7970 SELECT a FROM t1 WHERE r < 4294967296 ORDER BY x
7972 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7973 do_test boundary2-4.3.le.1 {
7975 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY a
7977 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
7978 do_test boundary2-4.3.le.2 {
7980 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY a DESC
7982 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
7983 do_test boundary2-4.3.le.3 {
7985 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY r
7987 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36}
7988 do_test boundary2-4.3.le.4 {
7990 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY r DESC
7992 } {36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
7993 do_test boundary2-4.3.le.5 {
7995 SELECT a FROM t1 WHERE r <= 4294967296 ORDER BY x
7997 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
7998 do_test boundary2-4.4.1 {
8000 SELECT * FROM t1 WHERE r=16777216
8002 } {16777216 6 0000000001000000}
8003 do_test boundary2-4.4.2 {
8005 SELECT r, a FROM t1 WHERE x='0000000001000000'
8008 do_test boundary2-4.4.3 {
8010 SELECT r, x FROM t1 WHERE a=6
8012 } {16777216 0000000001000000}
8013 do_test boundary2-4.4.gt.1 {
8015 SELECT a FROM t1 WHERE r > 16777216 ORDER BY a
8017 } {3 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
8018 do_test boundary2-4.4.gt.2 {
8020 SELECT a FROM t1 WHERE r > 16777216 ORDER BY a DESC
8022 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 3}
8023 do_test boundary2-4.4.gt.3 {
8025 SELECT a FROM t1 WHERE r > 16777216 ORDER BY r
8027 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8028 do_test boundary2-4.4.gt.4 {
8030 SELECT a FROM t1 WHERE r > 16777216 ORDER BY r DESC
8032 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12}
8033 do_test boundary2-4.4.gt.5 {
8035 SELECT a FROM t1 WHERE r > 16777216 ORDER BY x
8037 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8038 do_test boundary2-4.4.ge.1 {
8040 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY a
8042 } {3 6 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
8043 do_test boundary2-4.4.ge.2 {
8045 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY a DESC
8047 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 6 3}
8048 do_test boundary2-4.4.ge.3 {
8050 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY r
8052 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8053 do_test boundary2-4.4.ge.4 {
8055 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY r DESC
8057 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6}
8058 do_test boundary2-4.4.ge.5 {
8060 SELECT a FROM t1 WHERE r >= 16777216 ORDER BY x
8062 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8063 do_test boundary2-4.4.lt.1 {
8065 SELECT a FROM t1 WHERE r < 16777216 ORDER BY a
8067 } {1 2 4 5 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
8068 do_test boundary2-4.4.lt.2 {
8070 SELECT a FROM t1 WHERE r < 16777216 ORDER BY a DESC
8072 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 5 4 2 1}
8073 do_test boundary2-4.4.lt.3 {
8075 SELECT a FROM t1 WHERE r < 16777216 ORDER BY r
8077 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9}
8078 do_test boundary2-4.4.lt.4 {
8080 SELECT a FROM t1 WHERE r < 16777216 ORDER BY r DESC
8082 } {9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8083 do_test boundary2-4.4.lt.5 {
8085 SELECT a FROM t1 WHERE r < 16777216 ORDER BY x
8087 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8088 do_test boundary2-4.4.le.1 {
8090 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY a
8092 } {1 2 4 5 6 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
8093 do_test boundary2-4.4.le.2 {
8095 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY a DESC
8097 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 6 5 4 2 1}
8098 do_test boundary2-4.4.le.3 {
8100 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY r
8102 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6}
8103 do_test boundary2-4.4.le.4 {
8105 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY r DESC
8107 } {6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8108 do_test boundary2-4.4.le.5 {
8110 SELECT a FROM t1 WHERE r <= 16777216 ORDER BY x
8112 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8113 do_test boundary2-4.5.1 {
8115 SELECT * FROM t1 WHERE r=-32769
8117 } {-32769 29 ffffffffffff7fff}
8118 do_test boundary2-4.5.2 {
8120 SELECT r, a FROM t1 WHERE x='ffffffffffff7fff'
8123 do_test boundary2-4.5.3 {
8125 SELECT r, x FROM t1 WHERE a=29
8127 } {-32769 ffffffffffff7fff}
8128 do_test boundary2-4.5.gt.1 {
8130 SELECT a FROM t1 WHERE r > -32769 ORDER BY a
8132 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
8133 do_test boundary2-4.5.gt.2 {
8135 SELECT a FROM t1 WHERE r > -32769 ORDER BY a DESC
8137 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
8138 do_test boundary2-4.5.gt.3 {
8140 SELECT a FROM t1 WHERE r > -32769 ORDER BY r
8142 } {32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8143 do_test boundary2-4.5.gt.4 {
8145 SELECT a FROM t1 WHERE r > -32769 ORDER BY r DESC
8147 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32}
8148 do_test boundary2-4.5.gt.5 {
8150 SELECT a FROM t1 WHERE r > -32769 ORDER BY x
8152 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 32 54 53 52 33 38}
8153 do_test boundary2-4.5.ge.1 {
8155 SELECT a FROM t1 WHERE r >= -32769 ORDER BY a
8157 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
8158 do_test boundary2-4.5.ge.2 {
8160 SELECT a FROM t1 WHERE r >= -32769 ORDER BY a DESC
8162 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
8163 do_test boundary2-4.5.ge.3 {
8165 SELECT a FROM t1 WHERE r >= -32769 ORDER BY r
8167 } {29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8168 do_test boundary2-4.5.ge.4 {
8170 SELECT a FROM t1 WHERE r >= -32769 ORDER BY r DESC
8172 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29}
8173 do_test boundary2-4.5.ge.5 {
8175 SELECT a FROM t1 WHERE r >= -32769 ORDER BY x
8177 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 29 32 54 53 52 33 38}
8178 do_test boundary2-4.5.lt.1 {
8180 SELECT a FROM t1 WHERE r < -32769 ORDER BY a
8182 } {1 2 11 21 37 44 47 55 58 63 64}
8183 do_test boundary2-4.5.lt.2 {
8185 SELECT a FROM t1 WHERE r < -32769 ORDER BY a DESC
8187 } {64 63 58 55 47 44 37 21 11 2 1}
8188 do_test boundary2-4.5.lt.3 {
8190 SELECT a FROM t1 WHERE r < -32769 ORDER BY r
8192 } {55 2 64 21 44 58 63 47 11 1 37}
8193 do_test boundary2-4.5.lt.4 {
8195 SELECT a FROM t1 WHERE r < -32769 ORDER BY r DESC
8197 } {37 1 11 47 63 58 44 21 64 2 55}
8198 do_test boundary2-4.5.lt.5 {
8200 SELECT a FROM t1 WHERE r < -32769 ORDER BY x
8202 } {55 2 64 21 44 58 63 47 11 1 37}
8203 do_test boundary2-4.5.le.1 {
8205 SELECT a FROM t1 WHERE r <= -32769 ORDER BY a
8207 } {1 2 11 21 29 37 44 47 55 58 63 64}
8208 do_test boundary2-4.5.le.2 {
8210 SELECT a FROM t1 WHERE r <= -32769 ORDER BY a DESC
8212 } {64 63 58 55 47 44 37 29 21 11 2 1}
8213 do_test boundary2-4.5.le.3 {
8215 SELECT a FROM t1 WHERE r <= -32769 ORDER BY r
8217 } {55 2 64 21 44 58 63 47 11 1 37 29}
8218 do_test boundary2-4.5.le.4 {
8220 SELECT a FROM t1 WHERE r <= -32769 ORDER BY r DESC
8222 } {29 37 1 11 47 63 58 44 21 64 2 55}
8223 do_test boundary2-4.5.le.5 {
8225 SELECT a FROM t1 WHERE r <= -32769 ORDER BY x
8227 } {55 2 64 21 44 58 63 47 11 1 37 29}
8228 do_test boundary2-4.6.1 {
8230 SELECT * FROM t1 WHERE r=-140737488355329
8232 } {-140737488355329 21 ffff7fffffffffff}
8233 do_test boundary2-4.6.2 {
8235 SELECT r, a FROM t1 WHERE x='ffff7fffffffffff'
8237 } {-140737488355329 21}
8238 do_test boundary2-4.6.3 {
8240 SELECT r, x FROM t1 WHERE a=21
8242 } {-140737488355329 ffff7fffffffffff}
8243 do_test boundary2-4.6.gt.1 {
8245 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY a
8247 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
8248 do_test boundary2-4.6.gt.2 {
8250 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY a DESC
8252 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
8253 do_test boundary2-4.6.gt.3 {
8255 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY r
8257 } {44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8258 do_test boundary2-4.6.gt.4 {
8260 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY r DESC
8262 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44}
8263 do_test boundary2-4.6.gt.5 {
8265 SELECT a FROM t1 WHERE r > -140737488355329 ORDER BY x
8267 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8268 do_test boundary2-4.6.ge.1 {
8270 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY a
8272 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
8273 do_test boundary2-4.6.ge.2 {
8275 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY a DESC
8277 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
8278 do_test boundary2-4.6.ge.3 {
8280 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY r
8282 } {21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8283 do_test boundary2-4.6.ge.4 {
8285 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY r DESC
8287 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21}
8288 do_test boundary2-4.6.ge.5 {
8290 SELECT a FROM t1 WHERE r >= -140737488355329 ORDER BY x
8292 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8293 do_test boundary2-4.6.lt.1 {
8295 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY a
8298 do_test boundary2-4.6.lt.2 {
8300 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY a DESC
8303 do_test boundary2-4.6.lt.3 {
8305 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY r
8308 do_test boundary2-4.6.lt.4 {
8310 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY r DESC
8313 do_test boundary2-4.6.lt.5 {
8315 SELECT a FROM t1 WHERE r < -140737488355329 ORDER BY x
8318 do_test boundary2-4.6.le.1 {
8320 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY a
8323 do_test boundary2-4.6.le.2 {
8325 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY a DESC
8328 do_test boundary2-4.6.le.3 {
8330 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY r
8333 do_test boundary2-4.6.le.4 {
8335 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY r DESC
8338 do_test boundary2-4.6.le.5 {
8340 SELECT a FROM t1 WHERE r <= -140737488355329 ORDER BY x
8343 do_test boundary2-4.7.1 {
8345 SELECT * FROM t1 WHERE r=2
8347 } {2 41 0000000000000002}
8348 do_test boundary2-4.7.2 {
8350 SELECT r, a FROM t1 WHERE x='0000000000000002'
8353 do_test boundary2-4.7.3 {
8355 SELECT r, x FROM t1 WHERE a=41
8357 } {2 0000000000000002}
8358 do_test boundary2-4.7.gt.1 {
8360 SELECT a FROM t1 WHERE r > 2 ORDER BY a
8362 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
8363 do_test boundary2-4.7.gt.2 {
8365 SELECT a FROM t1 WHERE r > 2 ORDER BY a DESC
8367 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
8368 do_test boundary2-4.7.gt.3 {
8370 SELECT a FROM t1 WHERE r > 2 ORDER BY r
8372 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8373 do_test boundary2-4.7.gt.4 {
8375 SELECT a FROM t1 WHERE r > 2 ORDER BY r DESC
8377 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5}
8378 do_test boundary2-4.7.gt.5 {
8380 SELECT a FROM t1 WHERE r > 2 ORDER BY x
8382 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8383 do_test boundary2-4.7.ge.1 {
8385 SELECT a FROM t1 WHERE r >= 2 ORDER BY a
8387 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 61 62}
8388 do_test boundary2-4.7.ge.2 {
8390 SELECT a FROM t1 WHERE r >= 2 ORDER BY a DESC
8392 } {62 61 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
8393 do_test boundary2-4.7.ge.3 {
8395 SELECT a FROM t1 WHERE r >= 2 ORDER BY r
8397 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8398 do_test boundary2-4.7.ge.4 {
8400 SELECT a FROM t1 WHERE r >= 2 ORDER BY r DESC
8402 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41}
8403 do_test boundary2-4.7.ge.5 {
8405 SELECT a FROM t1 WHERE r >= 2 ORDER BY x
8407 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8408 do_test boundary2-4.7.lt.1 {
8410 SELECT a FROM t1 WHERE r < 2 ORDER BY a
8412 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 60 63 64}
8413 do_test boundary2-4.7.lt.2 {
8415 SELECT a FROM t1 WHERE r < 2 ORDER BY a DESC
8417 } {64 63 60 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
8418 do_test boundary2-4.7.lt.3 {
8420 SELECT a FROM t1 WHERE r < 2 ORDER BY r
8422 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60}
8423 do_test boundary2-4.7.lt.4 {
8425 SELECT a FROM t1 WHERE r < 2 ORDER BY r DESC
8427 } {60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8428 do_test boundary2-4.7.lt.5 {
8430 SELECT a FROM t1 WHERE r < 2 ORDER BY x
8432 } {59 60 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8433 do_test boundary2-4.7.le.1 {
8435 SELECT a FROM t1 WHERE r <= 2 ORDER BY a
8437 } {1 2 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
8438 do_test boundary2-4.7.le.2 {
8440 SELECT a FROM t1 WHERE r <= 2 ORDER BY a DESC
8442 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 2 1}
8443 do_test boundary2-4.7.le.3 {
8445 SELECT a FROM t1 WHERE r <= 2 ORDER BY r
8447 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41}
8448 do_test boundary2-4.7.le.4 {
8450 SELECT a FROM t1 WHERE r <= 2 ORDER BY r DESC
8452 } {41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8453 do_test boundary2-4.7.le.5 {
8455 SELECT a FROM t1 WHERE r <= 2 ORDER BY x
8457 } {59 60 41 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8458 do_test boundary2-4.8.1 {
8460 SELECT * FROM t1 WHERE r=4
8462 } {4 31 0000000000000004}
8463 do_test boundary2-4.8.2 {
8465 SELECT r, a FROM t1 WHERE x='0000000000000004'
8468 do_test boundary2-4.8.3 {
8470 SELECT r, x FROM t1 WHERE a=31
8472 } {4 0000000000000004}
8473 do_test boundary2-4.8.gt.1 {
8475 SELECT a FROM t1 WHERE r > 4 ORDER BY a
8477 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
8478 do_test boundary2-4.8.gt.2 {
8480 SELECT a FROM t1 WHERE r > 4 ORDER BY a DESC
8482 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
8483 do_test boundary2-4.8.gt.3 {
8485 SELECT a FROM t1 WHERE r > 4 ORDER BY r
8487 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8488 do_test boundary2-4.8.gt.4 {
8490 SELECT a FROM t1 WHERE r > 4 ORDER BY r DESC
8492 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4}
8493 do_test boundary2-4.8.gt.5 {
8495 SELECT a FROM t1 WHERE r > 4 ORDER BY x
8497 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8498 do_test boundary2-4.8.ge.1 {
8500 SELECT a FROM t1 WHERE r >= 4 ORDER BY a
8502 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
8503 do_test boundary2-4.8.ge.2 {
8505 SELECT a FROM t1 WHERE r >= 4 ORDER BY a DESC
8507 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
8508 do_test boundary2-4.8.ge.3 {
8510 SELECT a FROM t1 WHERE r >= 4 ORDER BY r
8512 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8513 do_test boundary2-4.8.ge.4 {
8515 SELECT a FROM t1 WHERE r >= 4 ORDER BY r DESC
8517 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31}
8518 do_test boundary2-4.8.ge.5 {
8520 SELECT a FROM t1 WHERE r >= 4 ORDER BY x
8522 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8523 do_test boundary2-4.8.lt.1 {
8525 SELECT a FROM t1 WHERE r < 4 ORDER BY a
8527 } {1 2 5 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
8528 do_test boundary2-4.8.lt.2 {
8530 SELECT a FROM t1 WHERE r < 4 ORDER BY a DESC
8532 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 5 2 1}
8533 do_test boundary2-4.8.lt.3 {
8535 SELECT a FROM t1 WHERE r < 4 ORDER BY r
8537 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5}
8538 do_test boundary2-4.8.lt.4 {
8540 SELECT a FROM t1 WHERE r < 4 ORDER BY r DESC
8542 } {5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8543 do_test boundary2-4.8.lt.5 {
8545 SELECT a FROM t1 WHERE r < 4 ORDER BY x
8547 } {59 60 41 5 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8548 do_test boundary2-4.8.le.1 {
8550 SELECT a FROM t1 WHERE r <= 4 ORDER BY a
8552 } {1 2 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
8553 do_test boundary2-4.8.le.2 {
8555 SELECT a FROM t1 WHERE r <= 4 ORDER BY a DESC
8557 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 2 1}
8558 do_test boundary2-4.8.le.3 {
8560 SELECT a FROM t1 WHERE r <= 4 ORDER BY r
8562 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31}
8563 do_test boundary2-4.8.le.4 {
8565 SELECT a FROM t1 WHERE r <= 4 ORDER BY r DESC
8567 } {31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8568 do_test boundary2-4.8.le.5 {
8570 SELECT a FROM t1 WHERE r <= 4 ORDER BY x
8572 } {59 60 41 5 31 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8573 do_test boundary2-4.9.1 {
8575 SELECT * FROM t1 WHERE r=562949953421311
8577 } {562949953421311 13 0001ffffffffffff}
8578 do_test boundary2-4.9.2 {
8580 SELECT r, a FROM t1 WHERE x='0001ffffffffffff'
8582 } {562949953421311 13}
8583 do_test boundary2-4.9.3 {
8585 SELECT r, x FROM t1 WHERE a=13
8587 } {562949953421311 0001ffffffffffff}
8588 do_test boundary2-4.9.gt.1 {
8590 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY a
8592 } {3 17 27 28 43 45}
8593 do_test boundary2-4.9.gt.2 {
8595 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY a DESC
8597 } {45 43 28 27 17 3}
8598 do_test boundary2-4.9.gt.3 {
8600 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY r
8602 } {43 27 45 17 28 3}
8603 do_test boundary2-4.9.gt.4 {
8605 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY r DESC
8607 } {3 28 17 45 27 43}
8608 do_test boundary2-4.9.gt.5 {
8610 SELECT a FROM t1 WHERE r > 562949953421311 ORDER BY x
8612 } {43 27 45 17 28 3}
8613 do_test boundary2-4.9.ge.1 {
8615 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY a
8617 } {3 13 17 27 28 43 45}
8618 do_test boundary2-4.9.ge.2 {
8620 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY a DESC
8622 } {45 43 28 27 17 13 3}
8623 do_test boundary2-4.9.ge.3 {
8625 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY r
8627 } {13 43 27 45 17 28 3}
8628 do_test boundary2-4.9.ge.4 {
8630 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY r DESC
8632 } {3 28 17 45 27 43 13}
8633 do_test boundary2-4.9.ge.5 {
8635 SELECT a FROM t1 WHERE r >= 562949953421311 ORDER BY x
8637 } {13 43 27 45 17 28 3}
8638 do_test boundary2-4.9.lt.1 {
8640 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY a
8642 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
8643 do_test boundary2-4.9.lt.2 {
8645 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY a DESC
8647 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
8648 do_test boundary2-4.9.lt.3 {
8650 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY r
8652 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26}
8653 do_test boundary2-4.9.lt.4 {
8655 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY r DESC
8657 } {26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8658 do_test boundary2-4.9.lt.5 {
8660 SELECT a FROM t1 WHERE r < 562949953421311 ORDER BY x
8662 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8663 do_test boundary2-4.9.le.1 {
8665 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY a
8667 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
8668 do_test boundary2-4.9.le.2 {
8670 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY a DESC
8672 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
8673 do_test boundary2-4.9.le.3 {
8675 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY r
8677 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13}
8678 do_test boundary2-4.9.le.4 {
8680 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY r DESC
8682 } {13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8683 do_test boundary2-4.9.le.5 {
8685 SELECT a FROM t1 WHERE r <= 562949953421311 ORDER BY x
8687 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8688 do_test boundary2-4.10.1 {
8690 SELECT * FROM t1 WHERE r=256
8692 } {256 61 0000000000000100}
8693 do_test boundary2-4.10.2 {
8695 SELECT r, a FROM t1 WHERE x='0000000000000100'
8698 do_test boundary2-4.10.3 {
8700 SELECT r, x FROM t1 WHERE a=61
8702 } {256 0000000000000100}
8703 do_test boundary2-4.10.gt.1 {
8705 SELECT a FROM t1 WHERE r > 256 ORDER BY a
8707 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
8708 do_test boundary2-4.10.gt.2 {
8710 SELECT a FROM t1 WHERE r > 256 ORDER BY a DESC
8712 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
8713 do_test boundary2-4.10.gt.3 {
8715 SELECT a FROM t1 WHERE r > 256 ORDER BY r
8717 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8718 do_test boundary2-4.10.gt.4 {
8720 SELECT a FROM t1 WHERE r > 256 ORDER BY r DESC
8722 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8}
8723 do_test boundary2-4.10.gt.5 {
8725 SELECT a FROM t1 WHERE r > 256 ORDER BY x
8727 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8728 do_test boundary2-4.10.ge.1 {
8730 SELECT a FROM t1 WHERE r >= 256 ORDER BY a
8732 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
8733 do_test boundary2-4.10.ge.2 {
8735 SELECT a FROM t1 WHERE r >= 256 ORDER BY a DESC
8737 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
8738 do_test boundary2-4.10.ge.3 {
8740 SELECT a FROM t1 WHERE r >= 256 ORDER BY r
8742 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8743 do_test boundary2-4.10.ge.4 {
8745 SELECT a FROM t1 WHERE r >= 256 ORDER BY r DESC
8747 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61}
8748 do_test boundary2-4.10.ge.5 {
8750 SELECT a FROM t1 WHERE r >= 256 ORDER BY x
8752 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8753 do_test boundary2-4.10.lt.1 {
8755 SELECT a FROM t1 WHERE r < 256 ORDER BY a
8757 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
8758 do_test boundary2-4.10.lt.2 {
8760 SELECT a FROM t1 WHERE r < 256 ORDER BY a DESC
8762 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
8763 do_test boundary2-4.10.lt.3 {
8765 SELECT a FROM t1 WHERE r < 256 ORDER BY r
8767 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30}
8768 do_test boundary2-4.10.lt.4 {
8770 SELECT a FROM t1 WHERE r < 256 ORDER BY r DESC
8772 } {30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8773 do_test boundary2-4.10.lt.5 {
8775 SELECT a FROM t1 WHERE r < 256 ORDER BY x
8777 } {59 60 41 5 31 4 49 30 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8778 do_test boundary2-4.10.le.1 {
8780 SELECT a FROM t1 WHERE r <= 256 ORDER BY a
8782 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
8783 do_test boundary2-4.10.le.2 {
8785 SELECT a FROM t1 WHERE r <= 256 ORDER BY a DESC
8787 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
8788 do_test boundary2-4.10.le.3 {
8790 SELECT a FROM t1 WHERE r <= 256 ORDER BY r
8792 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61}
8793 do_test boundary2-4.10.le.4 {
8795 SELECT a FROM t1 WHERE r <= 256 ORDER BY r DESC
8797 } {61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8798 do_test boundary2-4.10.le.5 {
8800 SELECT a FROM t1 WHERE r <= 256 ORDER BY x
8802 } {59 60 41 5 31 4 49 30 61 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8803 do_test boundary2-4.11.1 {
8805 SELECT * FROM t1 WHERE r=34359738368
8807 } {34359738368 22 0000000800000000}
8808 do_test boundary2-4.11.2 {
8810 SELECT r, a FROM t1 WHERE x='0000000800000000'
8813 do_test boundary2-4.11.3 {
8815 SELECT r, x FROM t1 WHERE a=22
8817 } {34359738368 0000000800000000}
8818 do_test boundary2-4.11.gt.1 {
8820 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY a
8822 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 46 56 57}
8823 do_test boundary2-4.11.gt.2 {
8825 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY a DESC
8827 } {57 56 46 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
8828 do_test boundary2-4.11.gt.3 {
8830 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY r
8832 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8833 do_test boundary2-4.11.gt.4 {
8835 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY r DESC
8837 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46}
8838 do_test boundary2-4.11.gt.5 {
8840 SELECT a FROM t1 WHERE r > 34359738368 ORDER BY x
8842 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8843 do_test boundary2-4.11.ge.1 {
8845 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY a
8847 } {3 7 10 13 17 19 22 25 26 27 28 34 35 43 45 46 56 57}
8848 do_test boundary2-4.11.ge.2 {
8850 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY a DESC
8852 } {57 56 46 45 43 35 34 28 27 26 25 22 19 17 13 10 7 3}
8853 do_test boundary2-4.11.ge.3 {
8855 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY r
8857 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8858 do_test boundary2-4.11.ge.4 {
8860 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY r DESC
8862 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22}
8863 do_test boundary2-4.11.ge.5 {
8865 SELECT a FROM t1 WHERE r >= 34359738368 ORDER BY x
8867 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8868 do_test boundary2-4.11.lt.1 {
8870 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY a
8872 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
8873 do_test boundary2-4.11.lt.2 {
8875 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY a DESC
8877 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
8878 do_test boundary2-4.11.lt.3 {
8880 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY r
8882 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39}
8883 do_test boundary2-4.11.lt.4 {
8885 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY r DESC
8887 } {39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8888 do_test boundary2-4.11.lt.5 {
8890 SELECT a FROM t1 WHERE r < 34359738368 ORDER BY x
8892 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8893 do_test boundary2-4.11.le.1 {
8895 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY a
8897 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
8898 do_test boundary2-4.11.le.2 {
8900 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY a DESC
8902 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
8903 do_test boundary2-4.11.le.3 {
8905 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY r
8907 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22}
8908 do_test boundary2-4.11.le.4 {
8910 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY r DESC
8912 } {22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
8913 do_test boundary2-4.11.le.5 {
8915 SELECT a FROM t1 WHERE r <= 34359738368 ORDER BY x
8917 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
8918 do_test boundary2-4.12.1 {
8920 SELECT * FROM t1 WHERE r=65536
8922 } {65536 62 0000000000010000}
8923 do_test boundary2-4.12.2 {
8925 SELECT r, a FROM t1 WHERE x='0000000000010000'
8928 do_test boundary2-4.12.3 {
8930 SELECT r, x FROM t1 WHERE a=62
8932 } {65536 0000000000010000}
8933 do_test boundary2-4.12.gt.1 {
8935 SELECT a FROM t1 WHERE r > 65536 ORDER BY a
8937 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
8938 do_test boundary2-4.12.gt.2 {
8940 SELECT a FROM t1 WHERE r > 65536 ORDER BY a DESC
8942 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
8943 do_test boundary2-4.12.gt.3 {
8945 SELECT a FROM t1 WHERE r > 65536 ORDER BY r
8947 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8948 do_test boundary2-4.12.gt.4 {
8950 SELECT a FROM t1 WHERE r > 65536 ORDER BY r DESC
8952 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15}
8953 do_test boundary2-4.12.gt.5 {
8955 SELECT a FROM t1 WHERE r > 65536 ORDER BY x
8957 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8958 do_test boundary2-4.12.ge.1 {
8960 SELECT a FROM t1 WHERE r >= 65536 ORDER BY a
8962 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57 62}
8963 do_test boundary2-4.12.ge.2 {
8965 SELECT a FROM t1 WHERE r >= 65536 ORDER BY a DESC
8967 } {62 57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
8968 do_test boundary2-4.12.ge.3 {
8970 SELECT a FROM t1 WHERE r >= 65536 ORDER BY r
8972 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8973 do_test boundary2-4.12.ge.4 {
8975 SELECT a FROM t1 WHERE r >= 65536 ORDER BY r DESC
8977 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62}
8978 do_test boundary2-4.12.ge.5 {
8980 SELECT a FROM t1 WHERE r >= 65536 ORDER BY x
8982 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
8983 do_test boundary2-4.12.lt.1 {
8985 SELECT a FROM t1 WHERE r < 65536 ORDER BY a
8987 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 63 64}
8988 do_test boundary2-4.12.lt.2 {
8990 SELECT a FROM t1 WHERE r < 65536 ORDER BY a DESC
8992 } {64 63 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
8993 do_test boundary2-4.12.lt.3 {
8995 SELECT a FROM t1 WHERE r < 65536 ORDER BY r
8997 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48}
8998 do_test boundary2-4.12.lt.4 {
9000 SELECT a FROM t1 WHERE r < 65536 ORDER BY r DESC
9002 } {48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9003 do_test boundary2-4.12.lt.5 {
9005 SELECT a FROM t1 WHERE r < 65536 ORDER BY x
9007 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9008 do_test boundary2-4.12.le.1 {
9010 SELECT a FROM t1 WHERE r <= 65536 ORDER BY a
9012 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
9013 do_test boundary2-4.12.le.2 {
9015 SELECT a FROM t1 WHERE r <= 65536 ORDER BY a DESC
9017 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
9018 do_test boundary2-4.12.le.3 {
9020 SELECT a FROM t1 WHERE r <= 65536 ORDER BY r
9022 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62}
9023 do_test boundary2-4.12.le.4 {
9025 SELECT a FROM t1 WHERE r <= 65536 ORDER BY r DESC
9027 } {62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9028 do_test boundary2-4.12.le.5 {
9030 SELECT a FROM t1 WHERE r <= 65536 ORDER BY x
9032 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9033 do_test boundary2-4.13.1 {
9035 SELECT * FROM t1 WHERE r=268435456
9037 } {268435456 40 0000000010000000}
9038 do_test boundary2-4.13.2 {
9040 SELECT r, a FROM t1 WHERE x='0000000010000000'
9043 do_test boundary2-4.13.3 {
9045 SELECT r, x FROM t1 WHERE a=40
9047 } {268435456 0000000010000000}
9048 do_test boundary2-4.13.gt.1 {
9050 SELECT a FROM t1 WHERE r > 268435456 ORDER BY a
9052 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
9053 do_test boundary2-4.13.gt.2 {
9055 SELECT a FROM t1 WHERE r > 268435456 ORDER BY a DESC
9057 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
9058 do_test boundary2-4.13.gt.3 {
9060 SELECT a FROM t1 WHERE r > 268435456 ORDER BY r
9062 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9063 do_test boundary2-4.13.gt.4 {
9065 SELECT a FROM t1 WHERE r > 268435456 ORDER BY r DESC
9067 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20}
9068 do_test boundary2-4.13.gt.5 {
9070 SELECT a FROM t1 WHERE r > 268435456 ORDER BY x
9072 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9073 do_test boundary2-4.13.ge.1 {
9075 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY a
9077 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
9078 do_test boundary2-4.13.ge.2 {
9080 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY a DESC
9082 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
9083 do_test boundary2-4.13.ge.3 {
9085 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY r
9087 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9088 do_test boundary2-4.13.ge.4 {
9090 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY r DESC
9092 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40}
9093 do_test boundary2-4.13.ge.5 {
9095 SELECT a FROM t1 WHERE r >= 268435456 ORDER BY x
9097 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9098 do_test boundary2-4.13.lt.1 {
9100 SELECT a FROM t1 WHERE r < 268435456 ORDER BY a
9102 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
9103 do_test boundary2-4.13.lt.2 {
9105 SELECT a FROM t1 WHERE r < 268435456 ORDER BY a DESC
9107 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
9108 do_test boundary2-4.13.lt.3 {
9110 SELECT a FROM t1 WHERE r < 268435456 ORDER BY r
9112 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12}
9113 do_test boundary2-4.13.lt.4 {
9115 SELECT a FROM t1 WHERE r < 268435456 ORDER BY r DESC
9117 } {12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9118 do_test boundary2-4.13.lt.5 {
9120 SELECT a FROM t1 WHERE r < 268435456 ORDER BY x
9122 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9123 do_test boundary2-4.13.le.1 {
9125 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY a
9127 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
9128 do_test boundary2-4.13.le.2 {
9130 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY a DESC
9132 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
9133 do_test boundary2-4.13.le.3 {
9135 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY r
9137 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40}
9138 do_test boundary2-4.13.le.4 {
9140 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY r DESC
9142 } {40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9143 do_test boundary2-4.13.le.5 {
9145 SELECT a FROM t1 WHERE r <= 268435456 ORDER BY x
9147 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9148 do_test boundary2-4.14.1 {
9150 SELECT * FROM t1 WHERE r=-140737488355328
9152 } {-140737488355328 44 ffff800000000000}
9153 do_test boundary2-4.14.2 {
9155 SELECT r, a FROM t1 WHERE x='ffff800000000000'
9157 } {-140737488355328 44}
9158 do_test boundary2-4.14.3 {
9160 SELECT r, x FROM t1 WHERE a=44
9162 } {-140737488355328 ffff800000000000}
9163 do_test boundary2-4.14.gt.1 {
9165 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY a
9167 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
9168 do_test boundary2-4.14.gt.2 {
9170 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY a DESC
9172 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
9173 do_test boundary2-4.14.gt.3 {
9175 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY r
9177 } {58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9178 do_test boundary2-4.14.gt.4 {
9180 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY r DESC
9182 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58}
9183 do_test boundary2-4.14.gt.5 {
9185 SELECT a FROM t1 WHERE r > -140737488355328 ORDER BY x
9187 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 58 63 47 11 1 37 29 32 54 53 52 33 38}
9188 do_test boundary2-4.14.ge.1 {
9190 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY a
9192 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
9193 do_test boundary2-4.14.ge.2 {
9195 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY a DESC
9197 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
9198 do_test boundary2-4.14.ge.3 {
9200 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY r
9202 } {44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9203 do_test boundary2-4.14.ge.4 {
9205 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY r DESC
9207 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44}
9208 do_test boundary2-4.14.ge.5 {
9210 SELECT a FROM t1 WHERE r >= -140737488355328 ORDER BY x
9212 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9213 do_test boundary2-4.14.lt.1 {
9215 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY a
9218 do_test boundary2-4.14.lt.2 {
9220 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY a DESC
9223 do_test boundary2-4.14.lt.3 {
9225 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY r
9228 do_test boundary2-4.14.lt.4 {
9230 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY r DESC
9233 do_test boundary2-4.14.lt.5 {
9235 SELECT a FROM t1 WHERE r < -140737488355328 ORDER BY x
9238 do_test boundary2-4.14.le.1 {
9240 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY a
9243 do_test boundary2-4.14.le.2 {
9245 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY a DESC
9248 do_test boundary2-4.14.le.3 {
9250 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY r
9253 do_test boundary2-4.14.le.4 {
9255 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY r DESC
9258 do_test boundary2-4.14.le.5 {
9260 SELECT a FROM t1 WHERE r <= -140737488355328 ORDER BY x
9263 do_test boundary2-4.15.1 {
9265 SELECT * FROM t1 WHERE r=1099511627776
9267 } {1099511627776 19 0000010000000000}
9268 do_test boundary2-4.15.2 {
9270 SELECT r, a FROM t1 WHERE x='0000010000000000'
9272 } {1099511627776 19}
9273 do_test boundary2-4.15.3 {
9275 SELECT r, x FROM t1 WHERE a=19
9277 } {1099511627776 0000010000000000}
9278 do_test boundary2-4.15.gt.1 {
9280 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY a
9282 } {3 7 10 13 17 25 26 27 28 34 43 45 56}
9283 do_test boundary2-4.15.gt.2 {
9285 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY a DESC
9287 } {56 45 43 34 28 27 26 25 17 13 10 7 3}
9288 do_test boundary2-4.15.gt.3 {
9290 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY r
9292 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
9293 do_test boundary2-4.15.gt.4 {
9295 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY r DESC
9297 } {3 28 17 45 27 43 13 26 10 34 25 56 7}
9298 do_test boundary2-4.15.gt.5 {
9300 SELECT a FROM t1 WHERE r > 1099511627776 ORDER BY x
9302 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
9303 do_test boundary2-4.15.ge.1 {
9305 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY a
9307 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56}
9308 do_test boundary2-4.15.ge.2 {
9310 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY a DESC
9312 } {56 45 43 34 28 27 26 25 19 17 13 10 7 3}
9313 do_test boundary2-4.15.ge.3 {
9315 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY r
9317 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9318 do_test boundary2-4.15.ge.4 {
9320 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY r DESC
9322 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19}
9323 do_test boundary2-4.15.ge.5 {
9325 SELECT a FROM t1 WHERE r >= 1099511627776 ORDER BY x
9327 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9328 do_test boundary2-4.15.lt.1 {
9330 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY a
9332 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
9333 do_test boundary2-4.15.lt.2 {
9335 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY a DESC
9337 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
9338 do_test boundary2-4.15.lt.3 {
9340 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY r
9342 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57}
9343 do_test boundary2-4.15.lt.4 {
9345 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY r DESC
9347 } {57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9348 do_test boundary2-4.15.lt.5 {
9350 SELECT a FROM t1 WHERE r < 1099511627776 ORDER BY x
9352 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9353 do_test boundary2-4.15.le.1 {
9355 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY a
9357 } {1 2 4 5 6 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
9358 do_test boundary2-4.15.le.2 {
9360 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY a DESC
9362 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 6 5 4 2 1}
9363 do_test boundary2-4.15.le.3 {
9365 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY r
9367 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19}
9368 do_test boundary2-4.15.le.4 {
9370 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY r DESC
9372 } {19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9373 do_test boundary2-4.15.le.5 {
9375 SELECT a FROM t1 WHERE r <= 1099511627776 ORDER BY x
9377 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9378 do_test boundary2-4.16.gt.1 {
9380 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY a
9383 do_test boundary2-4.16.gt.2 {
9385 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY a DESC
9388 do_test boundary2-4.16.gt.3 {
9390 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY r
9393 do_test boundary2-4.16.gt.4 {
9395 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY r DESC
9398 do_test boundary2-4.16.gt.5 {
9400 SELECT a FROM t1 WHERE r > 9223372036854775807 ORDER BY x
9403 do_test boundary2-4.16.ge.1 {
9405 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY a
9408 do_test boundary2-4.16.ge.2 {
9410 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY a DESC
9413 do_test boundary2-4.16.ge.3 {
9415 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY r
9418 do_test boundary2-4.16.ge.4 {
9420 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY r DESC
9423 do_test boundary2-4.16.ge.5 {
9425 SELECT a FROM t1 WHERE r >= 9223372036854775807 ORDER BY x
9428 do_test boundary2-4.16.lt.1 {
9430 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY a
9432 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
9433 do_test boundary2-4.16.lt.2 {
9435 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY a DESC
9437 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
9438 do_test boundary2-4.16.lt.3 {
9440 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY r
9442 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28}
9443 do_test boundary2-4.16.lt.4 {
9445 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY r DESC
9447 } {28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9448 do_test boundary2-4.16.lt.5 {
9450 SELECT a FROM t1 WHERE r < 9223372036854775807 ORDER BY x
9452 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9453 do_test boundary2-4.16.le.1 {
9455 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY a
9457 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
9458 do_test boundary2-4.16.le.2 {
9460 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY a DESC
9462 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
9463 do_test boundary2-4.16.le.3 {
9465 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY r
9467 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9468 do_test boundary2-4.16.le.4 {
9470 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY r DESC
9472 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9473 do_test boundary2-4.16.le.5 {
9475 SELECT a FROM t1 WHERE r <= 9223372036854775807 ORDER BY x
9477 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9478 do_test boundary2-4.17.1 {
9480 SELECT * FROM t1 WHERE r=32768
9482 } {32768 50 0000000000008000}
9483 do_test boundary2-4.17.2 {
9485 SELECT r, a FROM t1 WHERE x='0000000000008000'
9488 do_test boundary2-4.17.3 {
9490 SELECT r, x FROM t1 WHERE a=50
9492 } {32768 0000000000008000}
9493 do_test boundary2-4.17.gt.1 {
9495 SELECT a FROM t1 WHERE r > 32768 ORDER BY a
9497 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 51 56 57 62}
9498 do_test boundary2-4.17.gt.2 {
9500 SELECT a FROM t1 WHERE r > 32768 ORDER BY a DESC
9502 } {62 57 56 51 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
9503 do_test boundary2-4.17.gt.3 {
9505 SELECT a FROM t1 WHERE r > 32768 ORDER BY r
9507 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9508 do_test boundary2-4.17.gt.4 {
9510 SELECT a FROM t1 WHERE r > 32768 ORDER BY r DESC
9512 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48}
9513 do_test boundary2-4.17.gt.5 {
9515 SELECT a FROM t1 WHERE r > 32768 ORDER BY x
9517 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9518 do_test boundary2-4.17.ge.1 {
9520 SELECT a FROM t1 WHERE r >= 32768 ORDER BY a
9522 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
9523 do_test boundary2-4.17.ge.2 {
9525 SELECT a FROM t1 WHERE r >= 32768 ORDER BY a DESC
9527 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
9528 do_test boundary2-4.17.ge.3 {
9530 SELECT a FROM t1 WHERE r >= 32768 ORDER BY r
9532 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9533 do_test boundary2-4.17.ge.4 {
9535 SELECT a FROM t1 WHERE r >= 32768 ORDER BY r DESC
9537 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50}
9538 do_test boundary2-4.17.ge.5 {
9540 SELECT a FROM t1 WHERE r >= 32768 ORDER BY x
9542 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9543 do_test boundary2-4.17.lt.1 {
9545 SELECT a FROM t1 WHERE r < 32768 ORDER BY a
9547 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
9548 do_test boundary2-4.17.lt.2 {
9550 SELECT a FROM t1 WHERE r < 32768 ORDER BY a DESC
9552 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
9553 do_test boundary2-4.17.lt.3 {
9555 SELECT a FROM t1 WHERE r < 32768 ORDER BY r
9557 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23}
9558 do_test boundary2-4.17.lt.4 {
9560 SELECT a FROM t1 WHERE r < 32768 ORDER BY r DESC
9562 } {23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9563 do_test boundary2-4.17.lt.5 {
9565 SELECT a FROM t1 WHERE r < 32768 ORDER BY x
9567 } {59 60 41 5 31 4 49 30 61 8 16 23 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9568 do_test boundary2-4.17.le.1 {
9570 SELECT a FROM t1 WHERE r <= 32768 ORDER BY a
9572 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 50 52 53 54 55 58 59 60 61 63 64}
9573 do_test boundary2-4.17.le.2 {
9575 SELECT a FROM t1 WHERE r <= 32768 ORDER BY a DESC
9577 } {64 63 61 60 59 58 55 54 53 52 50 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
9578 do_test boundary2-4.17.le.3 {
9580 SELECT a FROM t1 WHERE r <= 32768 ORDER BY r
9582 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50}
9583 do_test boundary2-4.17.le.4 {
9585 SELECT a FROM t1 WHERE r <= 32768 ORDER BY r DESC
9587 } {50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9588 do_test boundary2-4.17.le.5 {
9590 SELECT a FROM t1 WHERE r <= 32768 ORDER BY x
9592 } {59 60 41 5 31 4 49 30 61 8 16 23 50 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9593 do_test boundary2-4.18.1 {
9595 SELECT * FROM t1 WHERE r=-36028797018963968
9597 } {-36028797018963968 64 ff80000000000000}
9598 do_test boundary2-4.18.2 {
9600 SELECT r, a FROM t1 WHERE x='ff80000000000000'
9602 } {-36028797018963968 64}
9603 do_test boundary2-4.18.3 {
9605 SELECT r, x FROM t1 WHERE a=64
9607 } {-36028797018963968 ff80000000000000}
9608 do_test boundary2-4.18.gt.1 {
9610 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY a
9612 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
9613 do_test boundary2-4.18.gt.2 {
9615 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY a DESC
9617 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
9618 do_test boundary2-4.18.gt.3 {
9620 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY r
9622 } {21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9623 do_test boundary2-4.18.gt.4 {
9625 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY r DESC
9627 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21}
9628 do_test boundary2-4.18.gt.5 {
9630 SELECT a FROM t1 WHERE r > -36028797018963968 ORDER BY x
9632 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9633 do_test boundary2-4.18.ge.1 {
9635 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY a
9637 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
9638 do_test boundary2-4.18.ge.2 {
9640 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY a DESC
9642 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
9643 do_test boundary2-4.18.ge.3 {
9645 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY r
9647 } {64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9648 do_test boundary2-4.18.ge.4 {
9650 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY r DESC
9652 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64}
9653 do_test boundary2-4.18.ge.5 {
9655 SELECT a FROM t1 WHERE r >= -36028797018963968 ORDER BY x
9657 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9658 do_test boundary2-4.18.lt.1 {
9660 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY a
9663 do_test boundary2-4.18.lt.2 {
9665 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY a DESC
9668 do_test boundary2-4.18.lt.3 {
9670 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY r
9673 do_test boundary2-4.18.lt.4 {
9675 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY r DESC
9678 do_test boundary2-4.18.lt.5 {
9680 SELECT a FROM t1 WHERE r < -36028797018963968 ORDER BY x
9683 do_test boundary2-4.18.le.1 {
9685 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY a
9688 do_test boundary2-4.18.le.2 {
9690 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY a DESC
9693 do_test boundary2-4.18.le.3 {
9695 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY r
9698 do_test boundary2-4.18.le.4 {
9700 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY r DESC
9703 do_test boundary2-4.18.le.5 {
9705 SELECT a FROM t1 WHERE r <= -36028797018963968 ORDER BY x
9708 do_test boundary2-4.19.1 {
9710 SELECT * FROM t1 WHERE r=65535
9712 } {65535 48 000000000000ffff}
9713 do_test boundary2-4.19.2 {
9715 SELECT r, a FROM t1 WHERE x='000000000000ffff'
9718 do_test boundary2-4.19.3 {
9720 SELECT r, x FROM t1 WHERE a=48
9722 } {65535 000000000000ffff}
9723 do_test boundary2-4.19.gt.1 {
9725 SELECT a FROM t1 WHERE r > 65535 ORDER BY a
9727 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57 62}
9728 do_test boundary2-4.19.gt.2 {
9730 SELECT a FROM t1 WHERE r > 65535 ORDER BY a DESC
9732 } {62 57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
9733 do_test boundary2-4.19.gt.3 {
9735 SELECT a FROM t1 WHERE r > 65535 ORDER BY r
9737 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9738 do_test boundary2-4.19.gt.4 {
9740 SELECT a FROM t1 WHERE r > 65535 ORDER BY r DESC
9742 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62}
9743 do_test boundary2-4.19.gt.5 {
9745 SELECT a FROM t1 WHERE r > 65535 ORDER BY x
9747 } {62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9748 do_test boundary2-4.19.ge.1 {
9750 SELECT a FROM t1 WHERE r >= 65535 ORDER BY a
9752 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 51 56 57 62}
9753 do_test boundary2-4.19.ge.2 {
9755 SELECT a FROM t1 WHERE r >= 65535 ORDER BY a DESC
9757 } {62 57 56 51 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
9758 do_test boundary2-4.19.ge.3 {
9760 SELECT a FROM t1 WHERE r >= 65535 ORDER BY r
9762 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9763 do_test boundary2-4.19.ge.4 {
9765 SELECT a FROM t1 WHERE r >= 65535 ORDER BY r DESC
9767 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48}
9768 do_test boundary2-4.19.ge.5 {
9770 SELECT a FROM t1 WHERE r >= 65535 ORDER BY x
9772 } {48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9773 do_test boundary2-4.19.lt.1 {
9775 SELECT a FROM t1 WHERE r < 65535 ORDER BY a
9777 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 50 52 53 54 55 58 59 60 61 63 64}
9778 do_test boundary2-4.19.lt.2 {
9780 SELECT a FROM t1 WHERE r < 65535 ORDER BY a DESC
9782 } {64 63 61 60 59 58 55 54 53 52 50 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
9783 do_test boundary2-4.19.lt.3 {
9785 SELECT a FROM t1 WHERE r < 65535 ORDER BY r
9787 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50}
9788 do_test boundary2-4.19.lt.4 {
9790 SELECT a FROM t1 WHERE r < 65535 ORDER BY r DESC
9792 } {50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9793 do_test boundary2-4.19.lt.5 {
9795 SELECT a FROM t1 WHERE r < 65535 ORDER BY x
9797 } {59 60 41 5 31 4 49 30 61 8 16 23 50 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9798 do_test boundary2-4.19.le.1 {
9800 SELECT a FROM t1 WHERE r <= 65535 ORDER BY a
9802 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 63 64}
9803 do_test boundary2-4.19.le.2 {
9805 SELECT a FROM t1 WHERE r <= 65535 ORDER BY a DESC
9807 } {64 63 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
9808 do_test boundary2-4.19.le.3 {
9810 SELECT a FROM t1 WHERE r <= 65535 ORDER BY r
9812 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48}
9813 do_test boundary2-4.19.le.4 {
9815 SELECT a FROM t1 WHERE r <= 65535 ORDER BY r DESC
9817 } {48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9818 do_test boundary2-4.19.le.5 {
9820 SELECT a FROM t1 WHERE r <= 65535 ORDER BY x
9822 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9823 do_test boundary2-4.20.1 {
9825 SELECT * FROM t1 WHERE r=4294967295
9827 } {4294967295 14 00000000ffffffff}
9828 do_test boundary2-4.20.2 {
9830 SELECT r, a FROM t1 WHERE x='00000000ffffffff'
9833 do_test boundary2-4.20.3 {
9835 SELECT r, x FROM t1 WHERE a=14
9837 } {4294967295 00000000ffffffff}
9838 do_test boundary2-4.20.gt.1 {
9840 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY a
9842 } {3 7 10 13 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
9843 do_test boundary2-4.20.gt.2 {
9845 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY a DESC
9847 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 13 10 7 3}
9848 do_test boundary2-4.20.gt.3 {
9850 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY r
9852 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9853 do_test boundary2-4.20.gt.4 {
9855 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY r DESC
9857 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36}
9858 do_test boundary2-4.20.gt.5 {
9860 SELECT a FROM t1 WHERE r > 4294967295 ORDER BY x
9862 } {36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9863 do_test boundary2-4.20.ge.1 {
9865 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY a
9867 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
9868 do_test boundary2-4.20.ge.2 {
9870 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY a DESC
9872 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
9873 do_test boundary2-4.20.ge.3 {
9875 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY r
9877 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9878 do_test boundary2-4.20.ge.4 {
9880 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY r DESC
9882 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14}
9883 do_test boundary2-4.20.ge.5 {
9885 SELECT a FROM t1 WHERE r >= 4294967295 ORDER BY x
9887 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9888 do_test boundary2-4.20.lt.1 {
9890 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY a
9892 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
9893 do_test boundary2-4.20.lt.2 {
9895 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY a DESC
9897 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
9898 do_test boundary2-4.20.lt.3 {
9900 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY r
9902 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51}
9903 do_test boundary2-4.20.lt.4 {
9905 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY r DESC
9907 } {51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9908 do_test boundary2-4.20.lt.5 {
9910 SELECT a FROM t1 WHERE r < 4294967295 ORDER BY x
9912 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9913 do_test boundary2-4.20.le.1 {
9915 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY a
9917 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
9918 do_test boundary2-4.20.le.2 {
9920 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY a DESC
9922 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
9923 do_test boundary2-4.20.le.3 {
9925 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY r
9927 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14}
9928 do_test boundary2-4.20.le.4 {
9930 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY r DESC
9932 } {14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
9933 do_test boundary2-4.20.le.5 {
9935 SELECT a FROM t1 WHERE r <= 4294967295 ORDER BY x
9937 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
9938 do_test boundary2-4.21.1 {
9940 SELECT * FROM t1 WHERE r=1099511627775
9942 } {1099511627775 57 000000ffffffffff}
9943 do_test boundary2-4.21.2 {
9945 SELECT r, a FROM t1 WHERE x='000000ffffffffff'
9947 } {1099511627775 57}
9948 do_test boundary2-4.21.3 {
9950 SELECT r, x FROM t1 WHERE a=57
9952 } {1099511627775 000000ffffffffff}
9953 do_test boundary2-4.21.gt.1 {
9955 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY a
9957 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56}
9958 do_test boundary2-4.21.gt.2 {
9960 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY a DESC
9962 } {56 45 43 34 28 27 26 25 19 17 13 10 7 3}
9963 do_test boundary2-4.21.gt.3 {
9965 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY r
9967 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9968 do_test boundary2-4.21.gt.4 {
9970 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY r DESC
9972 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19}
9973 do_test boundary2-4.21.gt.5 {
9975 SELECT a FROM t1 WHERE r > 1099511627775 ORDER BY x
9977 } {19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9978 do_test boundary2-4.21.ge.1 {
9980 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY a
9982 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56 57}
9983 do_test boundary2-4.21.ge.2 {
9985 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY a DESC
9987 } {57 56 45 43 34 28 27 26 25 19 17 13 10 7 3}
9988 do_test boundary2-4.21.ge.3 {
9990 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY r
9992 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
9993 do_test boundary2-4.21.ge.4 {
9995 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY r DESC
9997 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57}
9998 do_test boundary2-4.21.ge.5 {
10000 SELECT a FROM t1 WHERE r >= 1099511627775 ORDER BY x
10002 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10003 do_test boundary2-4.21.lt.1 {
10005 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY a
10007 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
10008 do_test boundary2-4.21.lt.2 {
10010 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY a DESC
10012 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
10013 do_test boundary2-4.21.lt.3 {
10015 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY r
10017 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35}
10018 do_test boundary2-4.21.lt.4 {
10020 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY r DESC
10022 } {35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10023 do_test boundary2-4.21.lt.5 {
10025 SELECT a FROM t1 WHERE r < 1099511627775 ORDER BY x
10027 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10028 do_test boundary2-4.21.le.1 {
10030 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY a
10032 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
10033 do_test boundary2-4.21.le.2 {
10035 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY a DESC
10037 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
10038 do_test boundary2-4.21.le.3 {
10040 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY r
10042 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57}
10043 do_test boundary2-4.21.le.4 {
10045 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY r DESC
10047 } {57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10048 do_test boundary2-4.21.le.5 {
10050 SELECT a FROM t1 WHERE r <= 1099511627775 ORDER BY x
10052 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10053 do_test boundary2-4.22.1 {
10055 SELECT * FROM t1 WHERE r=-8388608
10057 } {-8388608 37 ffffffffff800000}
10058 do_test boundary2-4.22.2 {
10060 SELECT r, a FROM t1 WHERE x='ffffffffff800000'
10063 do_test boundary2-4.22.3 {
10065 SELECT r, x FROM t1 WHERE a=37
10067 } {-8388608 ffffffffff800000}
10068 do_test boundary2-4.22.gt.1 {
10070 SELECT a FROM t1 WHERE r > -8388608 ORDER BY a
10072 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
10073 do_test boundary2-4.22.gt.2 {
10075 SELECT a FROM t1 WHERE r > -8388608 ORDER BY a DESC
10077 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10078 do_test boundary2-4.22.gt.3 {
10080 SELECT a FROM t1 WHERE r > -8388608 ORDER BY r
10082 } {29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10083 do_test boundary2-4.22.gt.4 {
10085 SELECT a FROM t1 WHERE r > -8388608 ORDER BY r DESC
10087 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29}
10088 do_test boundary2-4.22.gt.5 {
10090 SELECT a FROM t1 WHERE r > -8388608 ORDER BY x
10092 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 29 32 54 53 52 33 38}
10093 do_test boundary2-4.22.ge.1 {
10095 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY a
10097 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
10098 do_test boundary2-4.22.ge.2 {
10100 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY a DESC
10102 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10103 do_test boundary2-4.22.ge.3 {
10105 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY r
10107 } {37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10108 do_test boundary2-4.22.ge.4 {
10110 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY r DESC
10112 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37}
10113 do_test boundary2-4.22.ge.5 {
10115 SELECT a FROM t1 WHERE r >= -8388608 ORDER BY x
10117 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 37 29 32 54 53 52 33 38}
10118 do_test boundary2-4.22.lt.1 {
10120 SELECT a FROM t1 WHERE r < -8388608 ORDER BY a
10122 } {1 2 11 21 44 47 55 58 63 64}
10123 do_test boundary2-4.22.lt.2 {
10125 SELECT a FROM t1 WHERE r < -8388608 ORDER BY a DESC
10127 } {64 63 58 55 47 44 21 11 2 1}
10128 do_test boundary2-4.22.lt.3 {
10130 SELECT a FROM t1 WHERE r < -8388608 ORDER BY r
10132 } {55 2 64 21 44 58 63 47 11 1}
10133 do_test boundary2-4.22.lt.4 {
10135 SELECT a FROM t1 WHERE r < -8388608 ORDER BY r DESC
10137 } {1 11 47 63 58 44 21 64 2 55}
10138 do_test boundary2-4.22.lt.5 {
10140 SELECT a FROM t1 WHERE r < -8388608 ORDER BY x
10142 } {55 2 64 21 44 58 63 47 11 1}
10143 do_test boundary2-4.22.le.1 {
10145 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY a
10147 } {1 2 11 21 37 44 47 55 58 63 64}
10148 do_test boundary2-4.22.le.2 {
10150 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY a DESC
10152 } {64 63 58 55 47 44 37 21 11 2 1}
10153 do_test boundary2-4.22.le.3 {
10155 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY r
10157 } {55 2 64 21 44 58 63 47 11 1 37}
10158 do_test boundary2-4.22.le.4 {
10160 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY r DESC
10162 } {37 1 11 47 63 58 44 21 64 2 55}
10163 do_test boundary2-4.22.le.5 {
10165 SELECT a FROM t1 WHERE r <= -8388608 ORDER BY x
10167 } {55 2 64 21 44 58 63 47 11 1 37}
10168 do_test boundary2-4.23.1 {
10170 SELECT * FROM t1 WHERE r=549755813888
10172 } {549755813888 35 0000008000000000}
10173 do_test boundary2-4.23.2 {
10175 SELECT r, a FROM t1 WHERE x='0000008000000000'
10177 } {549755813888 35}
10178 do_test boundary2-4.23.3 {
10180 SELECT r, x FROM t1 WHERE a=35
10182 } {549755813888 0000008000000000}
10183 do_test boundary2-4.23.gt.1 {
10185 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY a
10187 } {3 7 10 13 17 19 25 26 27 28 34 43 45 56 57}
10188 do_test boundary2-4.23.gt.2 {
10190 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY a DESC
10192 } {57 56 45 43 34 28 27 26 25 19 17 13 10 7 3}
10193 do_test boundary2-4.23.gt.3 {
10195 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY r
10197 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10198 do_test boundary2-4.23.gt.4 {
10200 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY r DESC
10202 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57}
10203 do_test boundary2-4.23.gt.5 {
10205 SELECT a FROM t1 WHERE r > 549755813888 ORDER BY x
10207 } {57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10208 do_test boundary2-4.23.ge.1 {
10210 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY a
10212 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 56 57}
10213 do_test boundary2-4.23.ge.2 {
10215 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY a DESC
10217 } {57 56 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
10218 do_test boundary2-4.23.ge.3 {
10220 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY r
10222 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10223 do_test boundary2-4.23.ge.4 {
10225 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY r DESC
10227 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35}
10228 do_test boundary2-4.23.ge.5 {
10230 SELECT a FROM t1 WHERE r >= 549755813888 ORDER BY x
10232 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10233 do_test boundary2-4.23.lt.1 {
10235 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY a
10237 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
10238 do_test boundary2-4.23.lt.2 {
10240 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY a DESC
10242 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
10243 do_test boundary2-4.23.lt.3 {
10245 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY r
10247 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46}
10248 do_test boundary2-4.23.lt.4 {
10250 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY r DESC
10252 } {46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10253 do_test boundary2-4.23.lt.5 {
10255 SELECT a FROM t1 WHERE r < 549755813888 ORDER BY x
10257 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10258 do_test boundary2-4.23.le.1 {
10260 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY a
10262 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
10263 do_test boundary2-4.23.le.2 {
10265 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY a DESC
10267 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
10268 do_test boundary2-4.23.le.3 {
10270 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY r
10272 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35}
10273 do_test boundary2-4.23.le.4 {
10275 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY r DESC
10277 } {35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10278 do_test boundary2-4.23.le.5 {
10280 SELECT a FROM t1 WHERE r <= 549755813888 ORDER BY x
10282 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10283 do_test boundary2-4.24.1 {
10285 SELECT * FROM t1 WHERE r=8388607
10287 } {8388607 18 00000000007fffff}
10288 do_test boundary2-4.24.2 {
10290 SELECT r, a FROM t1 WHERE x='00000000007fffff'
10293 do_test boundary2-4.24.3 {
10295 SELECT r, x FROM t1 WHERE a=18
10297 } {8388607 00000000007fffff}
10298 do_test boundary2-4.24.gt.1 {
10300 SELECT a FROM t1 WHERE r > 8388607 ORDER BY a
10302 } {3 6 7 9 10 12 13 14 17 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
10303 do_test boundary2-4.24.gt.2 {
10305 SELECT a FROM t1 WHERE r > 8388607 ORDER BY a DESC
10307 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 17 14 13 12 10 9 7 6 3}
10308 do_test boundary2-4.24.gt.3 {
10310 SELECT a FROM t1 WHERE r > 8388607 ORDER BY r
10312 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10313 do_test boundary2-4.24.gt.4 {
10315 SELECT a FROM t1 WHERE r > 8388607 ORDER BY r DESC
10317 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24}
10318 do_test boundary2-4.24.gt.5 {
10320 SELECT a FROM t1 WHERE r > 8388607 ORDER BY x
10322 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10323 do_test boundary2-4.24.ge.1 {
10325 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY a
10327 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
10328 do_test boundary2-4.24.ge.2 {
10330 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY a DESC
10332 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
10333 do_test boundary2-4.24.ge.3 {
10335 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY r
10337 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10338 do_test boundary2-4.24.ge.4 {
10340 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY r DESC
10342 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18}
10343 do_test boundary2-4.24.ge.5 {
10345 SELECT a FROM t1 WHERE r >= 8388607 ORDER BY x
10347 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10348 do_test boundary2-4.24.lt.1 {
10350 SELECT a FROM t1 WHERE r < 8388607 ORDER BY a
10352 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
10353 do_test boundary2-4.24.lt.2 {
10355 SELECT a FROM t1 WHERE r < 8388607 ORDER BY a DESC
10357 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
10358 do_test boundary2-4.24.lt.3 {
10360 SELECT a FROM t1 WHERE r < 8388607 ORDER BY r
10362 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42}
10363 do_test boundary2-4.24.lt.4 {
10365 SELECT a FROM t1 WHERE r < 8388607 ORDER BY r DESC
10367 } {42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10368 do_test boundary2-4.24.lt.5 {
10370 SELECT a FROM t1 WHERE r < 8388607 ORDER BY x
10372 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10373 do_test boundary2-4.24.le.1 {
10375 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY a
10377 } {1 2 4 5 8 11 15 16 18 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
10378 do_test boundary2-4.24.le.2 {
10380 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY a DESC
10382 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 18 16 15 11 8 5 4 2 1}
10383 do_test boundary2-4.24.le.3 {
10385 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY r
10387 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18}
10388 do_test boundary2-4.24.le.4 {
10390 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY r DESC
10392 } {18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10393 do_test boundary2-4.24.le.5 {
10395 SELECT a FROM t1 WHERE r <= 8388607 ORDER BY x
10397 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10398 do_test boundary2-4.25.1 {
10400 SELECT * FROM t1 WHERE r=-3
10402 } {-3 52 fffffffffffffffd}
10403 do_test boundary2-4.25.2 {
10405 SELECT r, a FROM t1 WHERE x='fffffffffffffffd'
10408 do_test boundary2-4.25.3 {
10410 SELECT r, x FROM t1 WHERE a=52
10412 } {-3 fffffffffffffffd}
10413 do_test boundary2-4.25.gt.1 {
10415 SELECT a FROM t1 WHERE r > -3 ORDER BY a
10417 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
10418 do_test boundary2-4.25.gt.2 {
10420 SELECT a FROM t1 WHERE r > -3 ORDER BY a DESC
10422 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10423 do_test boundary2-4.25.gt.3 {
10425 SELECT a FROM t1 WHERE r > -3 ORDER BY r
10427 } {33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10428 do_test boundary2-4.25.gt.4 {
10430 SELECT a FROM t1 WHERE r > -3 ORDER BY r DESC
10432 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33}
10433 do_test boundary2-4.25.gt.5 {
10435 SELECT a FROM t1 WHERE r > -3 ORDER BY x
10437 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 33 38}
10438 do_test boundary2-4.25.ge.1 {
10440 SELECT a FROM t1 WHERE r >= -3 ORDER BY a
10442 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 56 57 59 60 61 62}
10443 do_test boundary2-4.25.ge.2 {
10445 SELECT a FROM t1 WHERE r >= -3 ORDER BY a DESC
10447 } {62 61 60 59 57 56 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10448 do_test boundary2-4.25.ge.3 {
10450 SELECT a FROM t1 WHERE r >= -3 ORDER BY r
10452 } {52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10453 do_test boundary2-4.25.ge.4 {
10455 SELECT a FROM t1 WHERE r >= -3 ORDER BY r DESC
10457 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52}
10458 do_test boundary2-4.25.ge.5 {
10460 SELECT a FROM t1 WHERE r >= -3 ORDER BY x
10462 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 52 33 38}
10463 do_test boundary2-4.25.lt.1 {
10465 SELECT a FROM t1 WHERE r < -3 ORDER BY a
10467 } {1 2 11 21 29 32 37 44 47 53 54 55 58 63 64}
10468 do_test boundary2-4.25.lt.2 {
10470 SELECT a FROM t1 WHERE r < -3 ORDER BY a DESC
10472 } {64 63 58 55 54 53 47 44 37 32 29 21 11 2 1}
10473 do_test boundary2-4.25.lt.3 {
10475 SELECT a FROM t1 WHERE r < -3 ORDER BY r
10477 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
10478 do_test boundary2-4.25.lt.4 {
10480 SELECT a FROM t1 WHERE r < -3 ORDER BY r DESC
10482 } {53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10483 do_test boundary2-4.25.lt.5 {
10485 SELECT a FROM t1 WHERE r < -3 ORDER BY x
10487 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
10488 do_test boundary2-4.25.le.1 {
10490 SELECT a FROM t1 WHERE r <= -3 ORDER BY a
10492 } {1 2 11 21 29 32 37 44 47 52 53 54 55 58 63 64}
10493 do_test boundary2-4.25.le.2 {
10495 SELECT a FROM t1 WHERE r <= -3 ORDER BY a DESC
10497 } {64 63 58 55 54 53 52 47 44 37 32 29 21 11 2 1}
10498 do_test boundary2-4.25.le.3 {
10500 SELECT a FROM t1 WHERE r <= -3 ORDER BY r
10502 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
10503 do_test boundary2-4.25.le.4 {
10505 SELECT a FROM t1 WHERE r <= -3 ORDER BY r DESC
10507 } {52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10508 do_test boundary2-4.25.le.5 {
10510 SELECT a FROM t1 WHERE r <= -3 ORDER BY x
10512 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
10513 do_test boundary2-4.26.1 {
10515 SELECT * FROM t1 WHERE r=0
10517 } {0 59 0000000000000000}
10518 do_test boundary2-4.26.2 {
10520 SELECT r, a FROM t1 WHERE x='0000000000000000'
10523 do_test boundary2-4.26.3 {
10525 SELECT r, x FROM t1 WHERE a=59
10527 } {0 0000000000000000}
10528 do_test boundary2-4.26.gt.1 {
10530 SELECT a FROM t1 WHERE r > 0 ORDER BY a
10532 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 60 61 62}
10533 do_test boundary2-4.26.gt.2 {
10535 SELECT a FROM t1 WHERE r > 0 ORDER BY a DESC
10537 } {62 61 60 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10538 do_test boundary2-4.26.gt.3 {
10540 SELECT a FROM t1 WHERE r > 0 ORDER BY r
10542 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10543 do_test boundary2-4.26.gt.4 {
10545 SELECT a FROM t1 WHERE r > 0 ORDER BY r DESC
10547 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60}
10548 do_test boundary2-4.26.gt.5 {
10550 SELECT a FROM t1 WHERE r > 0 ORDER BY x
10552 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10553 do_test boundary2-4.26.ge.1 {
10555 SELECT a FROM t1 WHERE r >= 0 ORDER BY a
10557 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
10558 do_test boundary2-4.26.ge.2 {
10560 SELECT a FROM t1 WHERE r >= 0 ORDER BY a DESC
10562 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10563 do_test boundary2-4.26.ge.3 {
10565 SELECT a FROM t1 WHERE r >= 0 ORDER BY r
10567 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10568 do_test boundary2-4.26.ge.4 {
10570 SELECT a FROM t1 WHERE r >= 0 ORDER BY r DESC
10572 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59}
10573 do_test boundary2-4.26.ge.5 {
10575 SELECT a FROM t1 WHERE r >= 0 ORDER BY x
10577 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10578 do_test boundary2-4.26.lt.1 {
10580 SELECT a FROM t1 WHERE r < 0 ORDER BY a
10582 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 63 64}
10583 do_test boundary2-4.26.lt.2 {
10585 SELECT a FROM t1 WHERE r < 0 ORDER BY a DESC
10587 } {64 63 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
10588 do_test boundary2-4.26.lt.3 {
10590 SELECT a FROM t1 WHERE r < 0 ORDER BY r
10592 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10593 do_test boundary2-4.26.lt.4 {
10595 SELECT a FROM t1 WHERE r < 0 ORDER BY r DESC
10597 } {38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10598 do_test boundary2-4.26.lt.5 {
10600 SELECT a FROM t1 WHERE r < 0 ORDER BY x
10602 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10603 do_test boundary2-4.26.le.1 {
10605 SELECT a FROM t1 WHERE r <= 0 ORDER BY a
10607 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 63 64}
10608 do_test boundary2-4.26.le.2 {
10610 SELECT a FROM t1 WHERE r <= 0 ORDER BY a DESC
10612 } {64 63 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
10613 do_test boundary2-4.26.le.3 {
10615 SELECT a FROM t1 WHERE r <= 0 ORDER BY r
10617 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59}
10618 do_test boundary2-4.26.le.4 {
10620 SELECT a FROM t1 WHERE r <= 0 ORDER BY r DESC
10622 } {59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10623 do_test boundary2-4.26.le.5 {
10625 SELECT a FROM t1 WHERE r <= 0 ORDER BY x
10627 } {59 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10628 do_test boundary2-4.27.1 {
10630 SELECT * FROM t1 WHERE r=-1
10632 } {-1 38 ffffffffffffffff}
10633 do_test boundary2-4.27.2 {
10635 SELECT r, a FROM t1 WHERE x='ffffffffffffffff'
10638 do_test boundary2-4.27.3 {
10640 SELECT r, x FROM t1 WHERE a=38
10642 } {-1 ffffffffffffffff}
10643 do_test boundary2-4.27.gt.1 {
10645 SELECT a FROM t1 WHERE r > -1 ORDER BY a
10647 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
10648 do_test boundary2-4.27.gt.2 {
10650 SELECT a FROM t1 WHERE r > -1 ORDER BY a DESC
10652 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10653 do_test boundary2-4.27.gt.3 {
10655 SELECT a FROM t1 WHERE r > -1 ORDER BY r
10657 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10658 do_test boundary2-4.27.gt.4 {
10660 SELECT a FROM t1 WHERE r > -1 ORDER BY r DESC
10662 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59}
10663 do_test boundary2-4.27.gt.5 {
10665 SELECT a FROM t1 WHERE r > -1 ORDER BY x
10667 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10668 do_test boundary2-4.27.ge.1 {
10670 SELECT a FROM t1 WHERE r >= -1 ORDER BY a
10672 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
10673 do_test boundary2-4.27.ge.2 {
10675 SELECT a FROM t1 WHERE r >= -1 ORDER BY a DESC
10677 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10678 do_test boundary2-4.27.ge.3 {
10680 SELECT a FROM t1 WHERE r >= -1 ORDER BY r
10682 } {38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10683 do_test boundary2-4.27.ge.4 {
10685 SELECT a FROM t1 WHERE r >= -1 ORDER BY r DESC
10687 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38}
10688 do_test boundary2-4.27.ge.5 {
10690 SELECT a FROM t1 WHERE r >= -1 ORDER BY x
10692 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 38}
10693 do_test boundary2-4.27.lt.1 {
10695 SELECT a FROM t1 WHERE r < -1 ORDER BY a
10697 } {1 2 11 21 29 32 33 37 44 47 52 53 54 55 58 63 64}
10698 do_test boundary2-4.27.lt.2 {
10700 SELECT a FROM t1 WHERE r < -1 ORDER BY a DESC
10702 } {64 63 58 55 54 53 52 47 44 37 33 32 29 21 11 2 1}
10703 do_test boundary2-4.27.lt.3 {
10705 SELECT a FROM t1 WHERE r < -1 ORDER BY r
10707 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
10708 do_test boundary2-4.27.lt.4 {
10710 SELECT a FROM t1 WHERE r < -1 ORDER BY r DESC
10712 } {33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10713 do_test boundary2-4.27.lt.5 {
10715 SELECT a FROM t1 WHERE r < -1 ORDER BY x
10717 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
10718 do_test boundary2-4.27.le.1 {
10720 SELECT a FROM t1 WHERE r <= -1 ORDER BY a
10722 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 63 64}
10723 do_test boundary2-4.27.le.2 {
10725 SELECT a FROM t1 WHERE r <= -1 ORDER BY a DESC
10727 } {64 63 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
10728 do_test boundary2-4.27.le.3 {
10730 SELECT a FROM t1 WHERE r <= -1 ORDER BY r
10732 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10733 do_test boundary2-4.27.le.4 {
10735 SELECT a FROM t1 WHERE r <= -1 ORDER BY r DESC
10737 } {38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10738 do_test boundary2-4.27.le.5 {
10740 SELECT a FROM t1 WHERE r <= -1 ORDER BY x
10742 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10743 do_test boundary2-4.28.1 {
10745 SELECT * FROM t1 WHERE r=-2
10747 } {-2 33 fffffffffffffffe}
10748 do_test boundary2-4.28.2 {
10750 SELECT r, a FROM t1 WHERE x='fffffffffffffffe'
10753 do_test boundary2-4.28.3 {
10755 SELECT r, x FROM t1 WHERE a=33
10757 } {-2 fffffffffffffffe}
10758 do_test boundary2-4.28.gt.1 {
10760 SELECT a FROM t1 WHERE r > -2 ORDER BY a
10762 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
10763 do_test boundary2-4.28.gt.2 {
10765 SELECT a FROM t1 WHERE r > -2 ORDER BY a DESC
10767 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10768 do_test boundary2-4.28.gt.3 {
10770 SELECT a FROM t1 WHERE r > -2 ORDER BY r
10772 } {38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10773 do_test boundary2-4.28.gt.4 {
10775 SELECT a FROM t1 WHERE r > -2 ORDER BY r DESC
10777 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38}
10778 do_test boundary2-4.28.gt.5 {
10780 SELECT a FROM t1 WHERE r > -2 ORDER BY x
10782 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 38}
10783 do_test boundary2-4.28.ge.1 {
10785 SELECT a FROM t1 WHERE r >= -2 ORDER BY a
10787 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 56 57 59 60 61 62}
10788 do_test boundary2-4.28.ge.2 {
10790 SELECT a FROM t1 WHERE r >= -2 ORDER BY a DESC
10792 } {62 61 60 59 57 56 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
10793 do_test boundary2-4.28.ge.3 {
10795 SELECT a FROM t1 WHERE r >= -2 ORDER BY r
10797 } {33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10798 do_test boundary2-4.28.ge.4 {
10800 SELECT a FROM t1 WHERE r >= -2 ORDER BY r DESC
10802 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33}
10803 do_test boundary2-4.28.ge.5 {
10805 SELECT a FROM t1 WHERE r >= -2 ORDER BY x
10807 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 33 38}
10808 do_test boundary2-4.28.lt.1 {
10810 SELECT a FROM t1 WHERE r < -2 ORDER BY a
10812 } {1 2 11 21 29 32 37 44 47 52 53 54 55 58 63 64}
10813 do_test boundary2-4.28.lt.2 {
10815 SELECT a FROM t1 WHERE r < -2 ORDER BY a DESC
10817 } {64 63 58 55 54 53 52 47 44 37 32 29 21 11 2 1}
10818 do_test boundary2-4.28.lt.3 {
10820 SELECT a FROM t1 WHERE r < -2 ORDER BY r
10822 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
10823 do_test boundary2-4.28.lt.4 {
10825 SELECT a FROM t1 WHERE r < -2 ORDER BY r DESC
10827 } {52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10828 do_test boundary2-4.28.lt.5 {
10830 SELECT a FROM t1 WHERE r < -2 ORDER BY x
10832 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52}
10833 do_test boundary2-4.28.le.1 {
10835 SELECT a FROM t1 WHERE r <= -2 ORDER BY a
10837 } {1 2 11 21 29 32 33 37 44 47 52 53 54 55 58 63 64}
10838 do_test boundary2-4.28.le.2 {
10840 SELECT a FROM t1 WHERE r <= -2 ORDER BY a DESC
10842 } {64 63 58 55 54 53 52 47 44 37 33 32 29 21 11 2 1}
10843 do_test boundary2-4.28.le.3 {
10845 SELECT a FROM t1 WHERE r <= -2 ORDER BY r
10847 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
10848 do_test boundary2-4.28.le.4 {
10850 SELECT a FROM t1 WHERE r <= -2 ORDER BY r DESC
10852 } {33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10853 do_test boundary2-4.28.le.5 {
10855 SELECT a FROM t1 WHERE r <= -2 ORDER BY x
10857 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33}
10858 do_test boundary2-4.29.1 {
10860 SELECT * FROM t1 WHERE r=2097152
10862 } {2097152 42 0000000000200000}
10863 do_test boundary2-4.29.2 {
10865 SELECT r, a FROM t1 WHERE x='0000000000200000'
10868 do_test boundary2-4.29.3 {
10870 SELECT r, x FROM t1 WHERE a=42
10872 } {2097152 0000000000200000}
10873 do_test boundary2-4.29.gt.1 {
10875 SELECT a FROM t1 WHERE r > 2097152 ORDER BY a
10877 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
10878 do_test boundary2-4.29.gt.2 {
10880 SELECT a FROM t1 WHERE r > 2097152 ORDER BY a DESC
10882 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
10883 do_test boundary2-4.29.gt.3 {
10885 SELECT a FROM t1 WHERE r > 2097152 ORDER BY r
10887 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10888 do_test boundary2-4.29.gt.4 {
10890 SELECT a FROM t1 WHERE r > 2097152 ORDER BY r DESC
10892 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18}
10893 do_test boundary2-4.29.gt.5 {
10895 SELECT a FROM t1 WHERE r > 2097152 ORDER BY x
10897 } {18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10898 do_test boundary2-4.29.ge.1 {
10900 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY a
10902 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
10903 do_test boundary2-4.29.ge.2 {
10905 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY a DESC
10907 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
10908 do_test boundary2-4.29.ge.3 {
10910 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY r
10912 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10913 do_test boundary2-4.29.ge.4 {
10915 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY r DESC
10917 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42}
10918 do_test boundary2-4.29.ge.5 {
10920 SELECT a FROM t1 WHERE r >= 2097152 ORDER BY x
10922 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
10923 do_test boundary2-4.29.lt.1 {
10925 SELECT a FROM t1 WHERE r < 2097152 ORDER BY a
10927 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
10928 do_test boundary2-4.29.lt.2 {
10930 SELECT a FROM t1 WHERE r < 2097152 ORDER BY a DESC
10932 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
10933 do_test boundary2-4.29.lt.3 {
10935 SELECT a FROM t1 WHERE r < 2097152 ORDER BY r
10937 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15}
10938 do_test boundary2-4.29.lt.4 {
10940 SELECT a FROM t1 WHERE r < 2097152 ORDER BY r DESC
10942 } {15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10943 do_test boundary2-4.29.lt.5 {
10945 SELECT a FROM t1 WHERE r < 2097152 ORDER BY x
10947 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10948 do_test boundary2-4.29.le.1 {
10950 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY a
10952 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
10953 do_test boundary2-4.29.le.2 {
10955 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY a DESC
10957 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
10958 do_test boundary2-4.29.le.3 {
10960 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY r
10962 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42}
10963 do_test boundary2-4.29.le.4 {
10965 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY r DESC
10967 } {42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
10968 do_test boundary2-4.29.le.5 {
10970 SELECT a FROM t1 WHERE r <= 2097152 ORDER BY x
10972 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
10973 do_test boundary2-4.30.1 {
10975 SELECT * FROM t1 WHERE r=128
10977 } {128 49 0000000000000080}
10978 do_test boundary2-4.30.2 {
10980 SELECT r, a FROM t1 WHERE x='0000000000000080'
10983 do_test boundary2-4.30.3 {
10985 SELECT r, x FROM t1 WHERE a=49
10987 } {128 0000000000000080}
10988 do_test boundary2-4.30.gt.1 {
10990 SELECT a FROM t1 WHERE r > 128 ORDER BY a
10992 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
10993 do_test boundary2-4.30.gt.2 {
10995 SELECT a FROM t1 WHERE r > 128 ORDER BY a DESC
10997 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
10998 do_test boundary2-4.30.gt.3 {
11000 SELECT a FROM t1 WHERE r > 128 ORDER BY r
11002 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11003 do_test boundary2-4.30.gt.4 {
11005 SELECT a FROM t1 WHERE r > 128 ORDER BY r DESC
11007 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30}
11008 do_test boundary2-4.30.gt.5 {
11010 SELECT a FROM t1 WHERE r > 128 ORDER BY x
11012 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11013 do_test boundary2-4.30.ge.1 {
11015 SELECT a FROM t1 WHERE r >= 128 ORDER BY a
11017 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
11018 do_test boundary2-4.30.ge.2 {
11020 SELECT a FROM t1 WHERE r >= 128 ORDER BY a DESC
11022 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
11023 do_test boundary2-4.30.ge.3 {
11025 SELECT a FROM t1 WHERE r >= 128 ORDER BY r
11027 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11028 do_test boundary2-4.30.ge.4 {
11030 SELECT a FROM t1 WHERE r >= 128 ORDER BY r DESC
11032 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49}
11033 do_test boundary2-4.30.ge.5 {
11035 SELECT a FROM t1 WHERE r >= 128 ORDER BY x
11037 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11038 do_test boundary2-4.30.lt.1 {
11040 SELECT a FROM t1 WHERE r < 128 ORDER BY a
11042 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
11043 do_test boundary2-4.30.lt.2 {
11045 SELECT a FROM t1 WHERE r < 128 ORDER BY a DESC
11047 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
11048 do_test boundary2-4.30.lt.3 {
11050 SELECT a FROM t1 WHERE r < 128 ORDER BY r
11052 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4}
11053 do_test boundary2-4.30.lt.4 {
11055 SELECT a FROM t1 WHERE r < 128 ORDER BY r DESC
11057 } {4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11058 do_test boundary2-4.30.lt.5 {
11060 SELECT a FROM t1 WHERE r < 128 ORDER BY x
11062 } {59 60 41 5 31 4 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11063 do_test boundary2-4.30.le.1 {
11065 SELECT a FROM t1 WHERE r <= 128 ORDER BY a
11067 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
11068 do_test boundary2-4.30.le.2 {
11070 SELECT a FROM t1 WHERE r <= 128 ORDER BY a DESC
11072 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
11073 do_test boundary2-4.30.le.3 {
11075 SELECT a FROM t1 WHERE r <= 128 ORDER BY r
11077 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49}
11078 do_test boundary2-4.30.le.4 {
11080 SELECT a FROM t1 WHERE r <= 128 ORDER BY r DESC
11082 } {49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11083 do_test boundary2-4.30.le.5 {
11085 SELECT a FROM t1 WHERE r <= 128 ORDER BY x
11087 } {59 60 41 5 31 4 49 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11088 do_test boundary2-4.31.1 {
11090 SELECT * FROM t1 WHERE r=255
11092 } {255 30 00000000000000ff}
11093 do_test boundary2-4.31.2 {
11095 SELECT r, a FROM t1 WHERE x='00000000000000ff'
11098 do_test boundary2-4.31.3 {
11100 SELECT r, x FROM t1 WHERE a=30
11102 } {255 00000000000000ff}
11103 do_test boundary2-4.31.gt.1 {
11105 SELECT a FROM t1 WHERE r > 255 ORDER BY a
11107 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
11108 do_test boundary2-4.31.gt.2 {
11110 SELECT a FROM t1 WHERE r > 255 ORDER BY a DESC
11112 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
11113 do_test boundary2-4.31.gt.3 {
11115 SELECT a FROM t1 WHERE r > 255 ORDER BY r
11117 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11118 do_test boundary2-4.31.gt.4 {
11120 SELECT a FROM t1 WHERE r > 255 ORDER BY r DESC
11122 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61}
11123 do_test boundary2-4.31.gt.5 {
11125 SELECT a FROM t1 WHERE r > 255 ORDER BY x
11127 } {61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11128 do_test boundary2-4.31.ge.1 {
11130 SELECT a FROM t1 WHERE r >= 255 ORDER BY a
11132 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 50 51 56 57 61 62}
11133 do_test boundary2-4.31.ge.2 {
11135 SELECT a FROM t1 WHERE r >= 255 ORDER BY a DESC
11137 } {62 61 57 56 51 50 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
11138 do_test boundary2-4.31.ge.3 {
11140 SELECT a FROM t1 WHERE r >= 255 ORDER BY r
11142 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11143 do_test boundary2-4.31.ge.4 {
11145 SELECT a FROM t1 WHERE r >= 255 ORDER BY r DESC
11147 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30}
11148 do_test boundary2-4.31.ge.5 {
11150 SELECT a FROM t1 WHERE r >= 255 ORDER BY x
11152 } {30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11153 do_test boundary2-4.31.lt.1 {
11155 SELECT a FROM t1 WHERE r < 255 ORDER BY a
11157 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
11158 do_test boundary2-4.31.lt.2 {
11160 SELECT a FROM t1 WHERE r < 255 ORDER BY a DESC
11162 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
11163 do_test boundary2-4.31.lt.3 {
11165 SELECT a FROM t1 WHERE r < 255 ORDER BY r
11167 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49}
11168 do_test boundary2-4.31.lt.4 {
11170 SELECT a FROM t1 WHERE r < 255 ORDER BY r DESC
11172 } {49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11173 do_test boundary2-4.31.lt.5 {
11175 SELECT a FROM t1 WHERE r < 255 ORDER BY x
11177 } {59 60 41 5 31 4 49 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11178 do_test boundary2-4.31.le.1 {
11180 SELECT a FROM t1 WHERE r <= 255 ORDER BY a
11182 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 63 64}
11183 do_test boundary2-4.31.le.2 {
11185 SELECT a FROM t1 WHERE r <= 255 ORDER BY a DESC
11187 } {64 63 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
11188 do_test boundary2-4.31.le.3 {
11190 SELECT a FROM t1 WHERE r <= 255 ORDER BY r
11192 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30}
11193 do_test boundary2-4.31.le.4 {
11195 SELECT a FROM t1 WHERE r <= 255 ORDER BY r DESC
11197 } {30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11198 do_test boundary2-4.31.le.5 {
11200 SELECT a FROM t1 WHERE r <= 255 ORDER BY x
11202 } {59 60 41 5 31 4 49 30 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11203 do_test boundary2-4.32.1 {
11205 SELECT * FROM t1 WHERE r=-2147483648
11207 } {-2147483648 11 ffffffff80000000}
11208 do_test boundary2-4.32.2 {
11210 SELECT r, a FROM t1 WHERE x='ffffffff80000000'
11213 do_test boundary2-4.32.3 {
11215 SELECT r, x FROM t1 WHERE a=11
11217 } {-2147483648 ffffffff80000000}
11218 do_test boundary2-4.32.gt.1 {
11220 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY a
11222 } {1 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
11223 do_test boundary2-4.32.gt.2 {
11225 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY a DESC
11227 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3 1}
11228 do_test boundary2-4.32.gt.3 {
11230 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY r
11232 } {1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11233 do_test boundary2-4.32.gt.4 {
11235 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY r DESC
11237 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1}
11238 do_test boundary2-4.32.gt.5 {
11240 SELECT a FROM t1 WHERE r > -2147483648 ORDER BY x
11242 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 1 37 29 32 54 53 52 33 38}
11243 do_test boundary2-4.32.ge.1 {
11245 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY a
11247 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
11248 do_test boundary2-4.32.ge.2 {
11250 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY a DESC
11252 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
11253 do_test boundary2-4.32.ge.3 {
11255 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY r
11257 } {11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11258 do_test boundary2-4.32.ge.4 {
11260 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY r DESC
11262 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11}
11263 do_test boundary2-4.32.ge.5 {
11265 SELECT a FROM t1 WHERE r >= -2147483648 ORDER BY x
11267 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 11 1 37 29 32 54 53 52 33 38}
11268 do_test boundary2-4.32.lt.1 {
11270 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY a
11272 } {2 21 44 47 55 58 63 64}
11273 do_test boundary2-4.32.lt.2 {
11275 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY a DESC
11277 } {64 63 58 55 47 44 21 2}
11278 do_test boundary2-4.32.lt.3 {
11280 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY r
11282 } {55 2 64 21 44 58 63 47}
11283 do_test boundary2-4.32.lt.4 {
11285 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY r DESC
11287 } {47 63 58 44 21 64 2 55}
11288 do_test boundary2-4.32.lt.5 {
11290 SELECT a FROM t1 WHERE r < -2147483648 ORDER BY x
11292 } {55 2 64 21 44 58 63 47}
11293 do_test boundary2-4.32.le.1 {
11295 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY a
11297 } {2 11 21 44 47 55 58 63 64}
11298 do_test boundary2-4.32.le.2 {
11300 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY a DESC
11302 } {64 63 58 55 47 44 21 11 2}
11303 do_test boundary2-4.32.le.3 {
11305 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY r
11307 } {55 2 64 21 44 58 63 47 11}
11308 do_test boundary2-4.32.le.4 {
11310 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY r DESC
11312 } {11 47 63 58 44 21 64 2 55}
11313 do_test boundary2-4.32.le.5 {
11315 SELECT a FROM t1 WHERE r <= -2147483648 ORDER BY x
11317 } {55 2 64 21 44 58 63 47 11}
11318 do_test boundary2-4.33.1 {
11320 SELECT * FROM t1 WHERE r=34359738367
11322 } {34359738367 39 00000007ffffffff}
11323 do_test boundary2-4.33.2 {
11325 SELECT r, a FROM t1 WHERE x='00000007ffffffff'
11328 do_test boundary2-4.33.3 {
11330 SELECT r, x FROM t1 WHERE a=39
11332 } {34359738367 00000007ffffffff}
11333 do_test boundary2-4.33.gt.1 {
11335 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY a
11337 } {3 7 10 13 17 19 22 25 26 27 28 34 35 43 45 46 56 57}
11338 do_test boundary2-4.33.gt.2 {
11340 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY a DESC
11342 } {57 56 46 45 43 35 34 28 27 26 25 22 19 17 13 10 7 3}
11343 do_test boundary2-4.33.gt.3 {
11345 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY r
11347 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11348 do_test boundary2-4.33.gt.4 {
11350 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY r DESC
11352 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22}
11353 do_test boundary2-4.33.gt.5 {
11355 SELECT a FROM t1 WHERE r > 34359738367 ORDER BY x
11357 } {22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11358 do_test boundary2-4.33.ge.1 {
11360 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY a
11362 } {3 7 10 13 17 19 22 25 26 27 28 34 35 39 43 45 46 56 57}
11363 do_test boundary2-4.33.ge.2 {
11365 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY a DESC
11367 } {57 56 46 45 43 39 35 34 28 27 26 25 22 19 17 13 10 7 3}
11368 do_test boundary2-4.33.ge.3 {
11370 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY r
11372 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11373 do_test boundary2-4.33.ge.4 {
11375 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY r DESC
11377 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39}
11378 do_test boundary2-4.33.ge.5 {
11380 SELECT a FROM t1 WHERE r >= 34359738367 ORDER BY x
11382 } {39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11383 do_test boundary2-4.33.lt.1 {
11385 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY a
11387 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
11388 do_test boundary2-4.33.lt.2 {
11390 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY a DESC
11392 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
11393 do_test boundary2-4.33.lt.3 {
11395 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY r
11397 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36}
11398 do_test boundary2-4.33.lt.4 {
11400 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY r DESC
11402 } {36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11403 do_test boundary2-4.33.lt.5 {
11405 SELECT a FROM t1 WHERE r < 34359738367 ORDER BY x
11407 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11408 do_test boundary2-4.33.le.1 {
11410 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY a
11412 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
11413 do_test boundary2-4.33.le.2 {
11415 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY a DESC
11417 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
11418 do_test boundary2-4.33.le.3 {
11420 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY r
11422 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39}
11423 do_test boundary2-4.33.le.4 {
11425 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY r DESC
11427 } {39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11428 do_test boundary2-4.33.le.5 {
11430 SELECT a FROM t1 WHERE r <= 34359738367 ORDER BY x
11432 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11433 do_test boundary2-4.34.1 {
11435 SELECT * FROM t1 WHERE r=-549755813889
11437 } {-549755813889 58 ffffff7fffffffff}
11438 do_test boundary2-4.34.2 {
11440 SELECT r, a FROM t1 WHERE x='ffffff7fffffffff'
11442 } {-549755813889 58}
11443 do_test boundary2-4.34.3 {
11445 SELECT r, x FROM t1 WHERE a=58
11447 } {-549755813889 ffffff7fffffffff}
11448 do_test boundary2-4.34.gt.1 {
11450 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY a
11452 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62 63}
11453 do_test boundary2-4.34.gt.2 {
11455 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY a DESC
11457 } {63 62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
11458 do_test boundary2-4.34.gt.3 {
11460 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY r
11462 } {63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11463 do_test boundary2-4.34.gt.4 {
11465 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY r DESC
11467 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63}
11468 do_test boundary2-4.34.gt.5 {
11470 SELECT a FROM t1 WHERE r > -549755813889 ORDER BY x
11472 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 63 47 11 1 37 29 32 54 53 52 33 38}
11473 do_test boundary2-4.34.ge.1 {
11475 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY a
11477 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63}
11478 do_test boundary2-4.34.ge.2 {
11480 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY a DESC
11482 } {63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
11483 do_test boundary2-4.34.ge.3 {
11485 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY r
11487 } {58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11488 do_test boundary2-4.34.ge.4 {
11490 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY r DESC
11492 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58}
11493 do_test boundary2-4.34.ge.5 {
11495 SELECT a FROM t1 WHERE r >= -549755813889 ORDER BY x
11497 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 58 63 47 11 1 37 29 32 54 53 52 33 38}
11498 do_test boundary2-4.34.lt.1 {
11500 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY a
11503 do_test boundary2-4.34.lt.2 {
11505 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY a DESC
11508 do_test boundary2-4.34.lt.3 {
11510 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY r
11513 do_test boundary2-4.34.lt.4 {
11515 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY r DESC
11518 do_test boundary2-4.34.lt.5 {
11520 SELECT a FROM t1 WHERE r < -549755813889 ORDER BY x
11523 do_test boundary2-4.34.le.1 {
11525 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY a
11527 } {2 21 44 55 58 64}
11528 do_test boundary2-4.34.le.2 {
11530 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY a DESC
11532 } {64 58 55 44 21 2}
11533 do_test boundary2-4.34.le.3 {
11535 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY r
11537 } {55 2 64 21 44 58}
11538 do_test boundary2-4.34.le.4 {
11540 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY r DESC
11542 } {58 44 21 64 2 55}
11543 do_test boundary2-4.34.le.5 {
11545 SELECT a FROM t1 WHERE r <= -549755813889 ORDER BY x
11547 } {55 2 64 21 44 58}
11548 do_test boundary2-4.35.1 {
11550 SELECT * FROM t1 WHERE r=-32768
11552 } {-32768 32 ffffffffffff8000}
11553 do_test boundary2-4.35.2 {
11555 SELECT r, a FROM t1 WHERE x='ffffffffffff8000'
11558 do_test boundary2-4.35.3 {
11560 SELECT r, x FROM t1 WHERE a=32
11562 } {-32768 ffffffffffff8000}
11563 do_test boundary2-4.35.gt.1 {
11565 SELECT a FROM t1 WHERE r > -32768 ORDER BY a
11567 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
11568 do_test boundary2-4.35.gt.2 {
11570 SELECT a FROM t1 WHERE r > -32768 ORDER BY a DESC
11572 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
11573 do_test boundary2-4.35.gt.3 {
11575 SELECT a FROM t1 WHERE r > -32768 ORDER BY r
11577 } {54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11578 do_test boundary2-4.35.gt.4 {
11580 SELECT a FROM t1 WHERE r > -32768 ORDER BY r DESC
11582 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54}
11583 do_test boundary2-4.35.gt.5 {
11585 SELECT a FROM t1 WHERE r > -32768 ORDER BY x
11587 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 54 53 52 33 38}
11588 do_test boundary2-4.35.ge.1 {
11590 SELECT a FROM t1 WHERE r >= -32768 ORDER BY a
11592 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 32 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
11593 do_test boundary2-4.35.ge.2 {
11595 SELECT a FROM t1 WHERE r >= -32768 ORDER BY a DESC
11597 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 32 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
11598 do_test boundary2-4.35.ge.3 {
11600 SELECT a FROM t1 WHERE r >= -32768 ORDER BY r
11602 } {32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11603 do_test boundary2-4.35.ge.4 {
11605 SELECT a FROM t1 WHERE r >= -32768 ORDER BY r DESC
11607 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32}
11608 do_test boundary2-4.35.ge.5 {
11610 SELECT a FROM t1 WHERE r >= -32768 ORDER BY x
11612 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 32 54 53 52 33 38}
11613 do_test boundary2-4.35.lt.1 {
11615 SELECT a FROM t1 WHERE r < -32768 ORDER BY a
11617 } {1 2 11 21 29 37 44 47 55 58 63 64}
11618 do_test boundary2-4.35.lt.2 {
11620 SELECT a FROM t1 WHERE r < -32768 ORDER BY a DESC
11622 } {64 63 58 55 47 44 37 29 21 11 2 1}
11623 do_test boundary2-4.35.lt.3 {
11625 SELECT a FROM t1 WHERE r < -32768 ORDER BY r
11627 } {55 2 64 21 44 58 63 47 11 1 37 29}
11628 do_test boundary2-4.35.lt.4 {
11630 SELECT a FROM t1 WHERE r < -32768 ORDER BY r DESC
11632 } {29 37 1 11 47 63 58 44 21 64 2 55}
11633 do_test boundary2-4.35.lt.5 {
11635 SELECT a FROM t1 WHERE r < -32768 ORDER BY x
11637 } {55 2 64 21 44 58 63 47 11 1 37 29}
11638 do_test boundary2-4.35.le.1 {
11640 SELECT a FROM t1 WHERE r <= -32768 ORDER BY a
11642 } {1 2 11 21 29 32 37 44 47 55 58 63 64}
11643 do_test boundary2-4.35.le.2 {
11645 SELECT a FROM t1 WHERE r <= -32768 ORDER BY a DESC
11647 } {64 63 58 55 47 44 37 32 29 21 11 2 1}
11648 do_test boundary2-4.35.le.3 {
11650 SELECT a FROM t1 WHERE r <= -32768 ORDER BY r
11652 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
11653 do_test boundary2-4.35.le.4 {
11655 SELECT a FROM t1 WHERE r <= -32768 ORDER BY r DESC
11657 } {32 29 37 1 11 47 63 58 44 21 64 2 55}
11658 do_test boundary2-4.35.le.5 {
11660 SELECT a FROM t1 WHERE r <= -32768 ORDER BY x
11662 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
11663 do_test boundary2-4.36.1 {
11665 SELECT * FROM t1 WHERE r=2147483647
11667 } {2147483647 20 000000007fffffff}
11668 do_test boundary2-4.36.2 {
11670 SELECT r, a FROM t1 WHERE x='000000007fffffff'
11673 do_test boundary2-4.36.3 {
11675 SELECT r, x FROM t1 WHERE a=20
11677 } {2147483647 000000007fffffff}
11678 do_test boundary2-4.36.gt.1 {
11680 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY a
11682 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
11683 do_test boundary2-4.36.gt.2 {
11685 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY a DESC
11687 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
11688 do_test boundary2-4.36.gt.3 {
11690 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY r
11692 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11693 do_test boundary2-4.36.gt.4 {
11695 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY r DESC
11697 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51}
11698 do_test boundary2-4.36.gt.5 {
11700 SELECT a FROM t1 WHERE r > 2147483647 ORDER BY x
11702 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11703 do_test boundary2-4.36.ge.1 {
11705 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY a
11707 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
11708 do_test boundary2-4.36.ge.2 {
11710 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY a DESC
11712 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
11713 do_test boundary2-4.36.ge.3 {
11715 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY r
11717 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11718 do_test boundary2-4.36.ge.4 {
11720 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY r DESC
11722 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20}
11723 do_test boundary2-4.36.ge.5 {
11725 SELECT a FROM t1 WHERE r >= 2147483647 ORDER BY x
11727 } {20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11728 do_test boundary2-4.36.lt.1 {
11730 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY a
11732 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
11733 do_test boundary2-4.36.lt.2 {
11735 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY a DESC
11737 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
11738 do_test boundary2-4.36.lt.3 {
11740 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY r
11742 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40}
11743 do_test boundary2-4.36.lt.4 {
11745 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY r DESC
11747 } {40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11748 do_test boundary2-4.36.lt.5 {
11750 SELECT a FROM t1 WHERE r < 2147483647 ORDER BY x
11752 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11753 do_test boundary2-4.36.le.1 {
11755 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY a
11757 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
11758 do_test boundary2-4.36.le.2 {
11760 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY a DESC
11762 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
11763 do_test boundary2-4.36.le.3 {
11765 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY r
11767 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20}
11768 do_test boundary2-4.36.le.4 {
11770 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY r DESC
11772 } {20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11773 do_test boundary2-4.36.le.5 {
11775 SELECT a FROM t1 WHERE r <= 2147483647 ORDER BY x
11777 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
11778 do_test boundary2-4.37.1 {
11780 SELECT * FROM t1 WHERE r=-129
11782 } {-129 54 ffffffffffffff7f}
11783 do_test boundary2-4.37.2 {
11785 SELECT r, a FROM t1 WHERE x='ffffffffffffff7f'
11788 do_test boundary2-4.37.3 {
11790 SELECT r, x FROM t1 WHERE a=54
11792 } {-129 ffffffffffffff7f}
11793 do_test boundary2-4.37.gt.1 {
11795 SELECT a FROM t1 WHERE r > -129 ORDER BY a
11797 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 56 57 59 60 61 62}
11798 do_test boundary2-4.37.gt.2 {
11800 SELECT a FROM t1 WHERE r > -129 ORDER BY a DESC
11802 } {62 61 60 59 57 56 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
11803 do_test boundary2-4.37.gt.3 {
11805 SELECT a FROM t1 WHERE r > -129 ORDER BY r
11807 } {53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11808 do_test boundary2-4.37.gt.4 {
11810 SELECT a FROM t1 WHERE r > -129 ORDER BY r DESC
11812 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53}
11813 do_test boundary2-4.37.gt.5 {
11815 SELECT a FROM t1 WHERE r > -129 ORDER BY x
11817 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 53 52 33 38}
11818 do_test boundary2-4.37.ge.1 {
11820 SELECT a FROM t1 WHERE r >= -129 ORDER BY a
11822 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
11823 do_test boundary2-4.37.ge.2 {
11825 SELECT a FROM t1 WHERE r >= -129 ORDER BY a DESC
11827 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
11828 do_test boundary2-4.37.ge.3 {
11830 SELECT a FROM t1 WHERE r >= -129 ORDER BY r
11832 } {54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11833 do_test boundary2-4.37.ge.4 {
11835 SELECT a FROM t1 WHERE r >= -129 ORDER BY r DESC
11837 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54}
11838 do_test boundary2-4.37.ge.5 {
11840 SELECT a FROM t1 WHERE r >= -129 ORDER BY x
11842 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 54 53 52 33 38}
11843 do_test boundary2-4.37.lt.1 {
11845 SELECT a FROM t1 WHERE r < -129 ORDER BY a
11847 } {1 2 11 21 29 32 37 44 47 55 58 63 64}
11848 do_test boundary2-4.37.lt.2 {
11850 SELECT a FROM t1 WHERE r < -129 ORDER BY a DESC
11852 } {64 63 58 55 47 44 37 32 29 21 11 2 1}
11853 do_test boundary2-4.37.lt.3 {
11855 SELECT a FROM t1 WHERE r < -129 ORDER BY r
11857 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
11858 do_test boundary2-4.37.lt.4 {
11860 SELECT a FROM t1 WHERE r < -129 ORDER BY r DESC
11862 } {32 29 37 1 11 47 63 58 44 21 64 2 55}
11863 do_test boundary2-4.37.lt.5 {
11865 SELECT a FROM t1 WHERE r < -129 ORDER BY x
11867 } {55 2 64 21 44 58 63 47 11 1 37 29 32}
11868 do_test boundary2-4.37.le.1 {
11870 SELECT a FROM t1 WHERE r <= -129 ORDER BY a
11872 } {1 2 11 21 29 32 37 44 47 54 55 58 63 64}
11873 do_test boundary2-4.37.le.2 {
11875 SELECT a FROM t1 WHERE r <= -129 ORDER BY a DESC
11877 } {64 63 58 55 54 47 44 37 32 29 21 11 2 1}
11878 do_test boundary2-4.37.le.3 {
11880 SELECT a FROM t1 WHERE r <= -129 ORDER BY r
11882 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
11883 do_test boundary2-4.37.le.4 {
11885 SELECT a FROM t1 WHERE r <= -129 ORDER BY r DESC
11887 } {54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11888 do_test boundary2-4.37.le.5 {
11890 SELECT a FROM t1 WHERE r <= -129 ORDER BY x
11892 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
11893 do_test boundary2-4.38.1 {
11895 SELECT * FROM t1 WHERE r=-128
11897 } {-128 53 ffffffffffffff80}
11898 do_test boundary2-4.38.2 {
11900 SELECT r, a FROM t1 WHERE x='ffffffffffffff80'
11903 do_test boundary2-4.38.3 {
11905 SELECT r, x FROM t1 WHERE a=53
11907 } {-128 ffffffffffffff80}
11908 do_test boundary2-4.38.gt.1 {
11910 SELECT a FROM t1 WHERE r > -128 ORDER BY a
11912 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 56 57 59 60 61 62}
11913 do_test boundary2-4.38.gt.2 {
11915 SELECT a FROM t1 WHERE r > -128 ORDER BY a DESC
11917 } {62 61 60 59 57 56 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
11918 do_test boundary2-4.38.gt.3 {
11920 SELECT a FROM t1 WHERE r > -128 ORDER BY r
11922 } {52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11923 do_test boundary2-4.38.gt.4 {
11925 SELECT a FROM t1 WHERE r > -128 ORDER BY r DESC
11927 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52}
11928 do_test boundary2-4.38.gt.5 {
11930 SELECT a FROM t1 WHERE r > -128 ORDER BY x
11932 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 52 33 38}
11933 do_test boundary2-4.38.ge.1 {
11935 SELECT a FROM t1 WHERE r >= -128 ORDER BY a
11937 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 33 34 35 36 38 39 40 41 42 43 45 46 48 49 50 51 52 53 56 57 59 60 61 62}
11938 do_test boundary2-4.38.ge.2 {
11940 SELECT a FROM t1 WHERE r >= -128 ORDER BY a DESC
11942 } {62 61 60 59 57 56 53 52 51 50 49 48 46 45 43 42 41 40 39 38 36 35 34 33 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
11943 do_test boundary2-4.38.ge.3 {
11945 SELECT a FROM t1 WHERE r >= -128 ORDER BY r
11947 } {53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
11948 do_test boundary2-4.38.ge.4 {
11950 SELECT a FROM t1 WHERE r >= -128 ORDER BY r DESC
11952 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53}
11953 do_test boundary2-4.38.ge.5 {
11955 SELECT a FROM t1 WHERE r >= -128 ORDER BY x
11957 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 53 52 33 38}
11958 do_test boundary2-4.38.lt.1 {
11960 SELECT a FROM t1 WHERE r < -128 ORDER BY a
11962 } {1 2 11 21 29 32 37 44 47 54 55 58 63 64}
11963 do_test boundary2-4.38.lt.2 {
11965 SELECT a FROM t1 WHERE r < -128 ORDER BY a DESC
11967 } {64 63 58 55 54 47 44 37 32 29 21 11 2 1}
11968 do_test boundary2-4.38.lt.3 {
11970 SELECT a FROM t1 WHERE r < -128 ORDER BY r
11972 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
11973 do_test boundary2-4.38.lt.4 {
11975 SELECT a FROM t1 WHERE r < -128 ORDER BY r DESC
11977 } {54 32 29 37 1 11 47 63 58 44 21 64 2 55}
11978 do_test boundary2-4.38.lt.5 {
11980 SELECT a FROM t1 WHERE r < -128 ORDER BY x
11982 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54}
11983 do_test boundary2-4.38.le.1 {
11985 SELECT a FROM t1 WHERE r <= -128 ORDER BY a
11987 } {1 2 11 21 29 32 37 44 47 53 54 55 58 63 64}
11988 do_test boundary2-4.38.le.2 {
11990 SELECT a FROM t1 WHERE r <= -128 ORDER BY a DESC
11992 } {64 63 58 55 54 53 47 44 37 32 29 21 11 2 1}
11993 do_test boundary2-4.38.le.3 {
11995 SELECT a FROM t1 WHERE r <= -128 ORDER BY r
11997 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
11998 do_test boundary2-4.38.le.4 {
12000 SELECT a FROM t1 WHERE r <= -128 ORDER BY r DESC
12002 } {53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12003 do_test boundary2-4.38.le.5 {
12005 SELECT a FROM t1 WHERE r <= -128 ORDER BY x
12007 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53}
12008 do_test boundary2-4.39.1 {
12010 SELECT * FROM t1 WHERE r=72057594037927936
12012 } {72057594037927936 28 0100000000000000}
12013 do_test boundary2-4.39.2 {
12015 SELECT r, a FROM t1 WHERE x='0100000000000000'
12017 } {72057594037927936 28}
12018 do_test boundary2-4.39.3 {
12020 SELECT r, x FROM t1 WHERE a=28
12022 } {72057594037927936 0100000000000000}
12023 do_test boundary2-4.39.gt.1 {
12025 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY a
12028 do_test boundary2-4.39.gt.2 {
12030 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY a DESC
12033 do_test boundary2-4.39.gt.3 {
12035 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY r
12038 do_test boundary2-4.39.gt.4 {
12040 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY r DESC
12043 do_test boundary2-4.39.gt.5 {
12045 SELECT a FROM t1 WHERE r > 72057594037927936 ORDER BY x
12048 do_test boundary2-4.39.ge.1 {
12050 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY a
12053 do_test boundary2-4.39.ge.2 {
12055 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY a DESC
12058 do_test boundary2-4.39.ge.3 {
12060 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY r
12063 do_test boundary2-4.39.ge.4 {
12065 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY r DESC
12068 do_test boundary2-4.39.ge.5 {
12070 SELECT a FROM t1 WHERE r >= 72057594037927936 ORDER BY x
12073 do_test boundary2-4.39.lt.1 {
12075 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY a
12077 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
12078 do_test boundary2-4.39.lt.2 {
12080 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY a DESC
12082 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
12083 do_test boundary2-4.39.lt.3 {
12085 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY r
12087 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17}
12088 do_test boundary2-4.39.lt.4 {
12090 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY r DESC
12092 } {17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12093 do_test boundary2-4.39.lt.5 {
12095 SELECT a FROM t1 WHERE r < 72057594037927936 ORDER BY x
12097 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12098 do_test boundary2-4.39.le.1 {
12100 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY a
12102 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
12103 do_test boundary2-4.39.le.2 {
12105 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY a DESC
12107 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
12108 do_test boundary2-4.39.le.3 {
12110 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY r
12112 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28}
12113 do_test boundary2-4.39.le.4 {
12115 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY r DESC
12117 } {28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12118 do_test boundary2-4.39.le.5 {
12120 SELECT a FROM t1 WHERE r <= 72057594037927936 ORDER BY x
12122 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12123 do_test boundary2-4.40.1 {
12125 SELECT * FROM t1 WHERE r=2147483648
12127 } {2147483648 51 0000000080000000}
12128 do_test boundary2-4.40.2 {
12130 SELECT r, a FROM t1 WHERE x='0000000080000000'
12133 do_test boundary2-4.40.3 {
12135 SELECT r, x FROM t1 WHERE a=51
12137 } {2147483648 0000000080000000}
12138 do_test boundary2-4.40.gt.1 {
12140 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY a
12142 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 56 57}
12143 do_test boundary2-4.40.gt.2 {
12145 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY a DESC
12147 } {57 56 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
12148 do_test boundary2-4.40.gt.3 {
12150 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY r
12152 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12153 do_test boundary2-4.40.gt.4 {
12155 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY r DESC
12157 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14}
12158 do_test boundary2-4.40.gt.5 {
12160 SELECT a FROM t1 WHERE r > 2147483648 ORDER BY x
12162 } {14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12163 do_test boundary2-4.40.ge.1 {
12165 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY a
12167 } {3 7 10 13 14 17 19 22 25 26 27 28 34 35 36 39 43 45 46 51 56 57}
12168 do_test boundary2-4.40.ge.2 {
12170 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY a DESC
12172 } {57 56 51 46 45 43 39 36 35 34 28 27 26 25 22 19 17 14 13 10 7 3}
12173 do_test boundary2-4.40.ge.3 {
12175 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY r
12177 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12178 do_test boundary2-4.40.ge.4 {
12180 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY r DESC
12182 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51}
12183 do_test boundary2-4.40.ge.5 {
12185 SELECT a FROM t1 WHERE r >= 2147483648 ORDER BY x
12187 } {51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12188 do_test boundary2-4.40.lt.1 {
12190 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY a
12192 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
12193 do_test boundary2-4.40.lt.2 {
12195 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY a DESC
12197 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
12198 do_test boundary2-4.40.lt.3 {
12200 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY r
12202 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20}
12203 do_test boundary2-4.40.lt.4 {
12205 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY r DESC
12207 } {20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12208 do_test boundary2-4.40.lt.5 {
12210 SELECT a FROM t1 WHERE r < 2147483648 ORDER BY x
12212 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12213 do_test boundary2-4.40.le.1 {
12215 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY a
12217 } {1 2 4 5 6 8 9 11 12 15 16 18 20 21 23 24 29 30 31 32 33 37 38 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
12218 do_test boundary2-4.40.le.2 {
12220 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY a DESC
12222 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 38 37 33 32 31 30 29 24 23 21 20 18 16 15 12 11 9 8 6 5 4 2 1}
12223 do_test boundary2-4.40.le.3 {
12225 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY r
12227 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51}
12228 do_test boundary2-4.40.le.4 {
12230 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY r DESC
12232 } {51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12233 do_test boundary2-4.40.le.5 {
12235 SELECT a FROM t1 WHERE r <= 2147483648 ORDER BY x
12237 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12238 do_test boundary2-4.41.1 {
12240 SELECT * FROM t1 WHERE r=549755813887
12242 } {549755813887 46 0000007fffffffff}
12243 do_test boundary2-4.41.2 {
12245 SELECT r, a FROM t1 WHERE x='0000007fffffffff'
12247 } {549755813887 46}
12248 do_test boundary2-4.41.3 {
12250 SELECT r, x FROM t1 WHERE a=46
12252 } {549755813887 0000007fffffffff}
12253 do_test boundary2-4.41.gt.1 {
12255 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY a
12257 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 56 57}
12258 do_test boundary2-4.41.gt.2 {
12260 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY a DESC
12262 } {57 56 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
12263 do_test boundary2-4.41.gt.3 {
12265 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY r
12267 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12268 do_test boundary2-4.41.gt.4 {
12270 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY r DESC
12272 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35}
12273 do_test boundary2-4.41.gt.5 {
12275 SELECT a FROM t1 WHERE r > 549755813887 ORDER BY x
12277 } {35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12278 do_test boundary2-4.41.ge.1 {
12280 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY a
12282 } {3 7 10 13 17 19 25 26 27 28 34 35 43 45 46 56 57}
12283 do_test boundary2-4.41.ge.2 {
12285 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY a DESC
12287 } {57 56 46 45 43 35 34 28 27 26 25 19 17 13 10 7 3}
12288 do_test boundary2-4.41.ge.3 {
12290 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY r
12292 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12293 do_test boundary2-4.41.ge.4 {
12295 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY r DESC
12297 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46}
12298 do_test boundary2-4.41.ge.5 {
12300 SELECT a FROM t1 WHERE r >= 549755813887 ORDER BY x
12302 } {46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12303 do_test boundary2-4.41.lt.1 {
12305 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY a
12307 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
12308 do_test boundary2-4.41.lt.2 {
12310 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY a DESC
12312 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
12313 do_test boundary2-4.41.lt.3 {
12315 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY r
12317 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22}
12318 do_test boundary2-4.41.lt.4 {
12320 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY r DESC
12322 } {22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12323 do_test boundary2-4.41.lt.5 {
12325 SELECT a FROM t1 WHERE r < 549755813887 ORDER BY x
12327 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12328 do_test boundary2-4.41.le.1 {
12330 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY a
12332 } {1 2 4 5 6 8 9 11 12 14 15 16 18 20 21 22 23 24 29 30 31 32 33 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 58 59 60 61 62 63 64}
12333 do_test boundary2-4.41.le.2 {
12335 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY a DESC
12337 } {64 63 62 61 60 59 58 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 33 32 31 30 29 24 23 22 21 20 18 16 15 14 12 11 9 8 6 5 4 2 1}
12338 do_test boundary2-4.41.le.3 {
12340 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY r
12342 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46}
12343 do_test boundary2-4.41.le.4 {
12345 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY r DESC
12347 } {46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12348 do_test boundary2-4.41.le.5 {
12350 SELECT a FROM t1 WHERE r <= 549755813887 ORDER BY x
12352 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12353 do_test boundary2-4.42.1 {
12355 SELECT * FROM t1 WHERE r=-549755813888
12357 } {-549755813888 63 ffffff8000000000}
12358 do_test boundary2-4.42.2 {
12360 SELECT r, a FROM t1 WHERE x='ffffff8000000000'
12362 } {-549755813888 63}
12363 do_test boundary2-4.42.3 {
12365 SELECT r, x FROM t1 WHERE a=63
12367 } {-549755813888 ffffff8000000000}
12368 do_test boundary2-4.42.gt.1 {
12370 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY a
12372 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62}
12373 do_test boundary2-4.42.gt.2 {
12375 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY a DESC
12377 } {62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
12378 do_test boundary2-4.42.gt.3 {
12380 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY r
12382 } {47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12383 do_test boundary2-4.42.gt.4 {
12385 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY r DESC
12387 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47}
12388 do_test boundary2-4.42.gt.5 {
12390 SELECT a FROM t1 WHERE r > -549755813888 ORDER BY x
12392 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 47 11 1 37 29 32 54 53 52 33 38}
12393 do_test boundary2-4.42.ge.1 {
12395 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY a
12397 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62 63}
12398 do_test boundary2-4.42.ge.2 {
12400 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY a DESC
12402 } {63 62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
12403 do_test boundary2-4.42.ge.3 {
12405 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY r
12407 } {63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12408 do_test boundary2-4.42.ge.4 {
12410 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY r DESC
12412 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63}
12413 do_test boundary2-4.42.ge.5 {
12415 SELECT a FROM t1 WHERE r >= -549755813888 ORDER BY x
12417 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 63 47 11 1 37 29 32 54 53 52 33 38}
12418 do_test boundary2-4.42.lt.1 {
12420 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY a
12422 } {2 21 44 55 58 64}
12423 do_test boundary2-4.42.lt.2 {
12425 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY a DESC
12427 } {64 58 55 44 21 2}
12428 do_test boundary2-4.42.lt.3 {
12430 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY r
12432 } {55 2 64 21 44 58}
12433 do_test boundary2-4.42.lt.4 {
12435 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY r DESC
12437 } {58 44 21 64 2 55}
12438 do_test boundary2-4.42.lt.5 {
12440 SELECT a FROM t1 WHERE r < -549755813888 ORDER BY x
12442 } {55 2 64 21 44 58}
12443 do_test boundary2-4.42.le.1 {
12445 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY a
12447 } {2 21 44 55 58 63 64}
12448 do_test boundary2-4.42.le.2 {
12450 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY a DESC
12452 } {64 63 58 55 44 21 2}
12453 do_test boundary2-4.42.le.3 {
12455 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY r
12457 } {55 2 64 21 44 58 63}
12458 do_test boundary2-4.42.le.4 {
12460 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY r DESC
12462 } {63 58 44 21 64 2 55}
12463 do_test boundary2-4.42.le.5 {
12465 SELECT a FROM t1 WHERE r <= -549755813888 ORDER BY x
12467 } {55 2 64 21 44 58 63}
12468 do_test boundary2-4.43.1 {
12470 SELECT * FROM t1 WHERE r=281474976710655
12472 } {281474976710655 10 0000ffffffffffff}
12473 do_test boundary2-4.43.2 {
12475 SELECT r, a FROM t1 WHERE x='0000ffffffffffff'
12477 } {281474976710655 10}
12478 do_test boundary2-4.43.3 {
12480 SELECT r, x FROM t1 WHERE a=10
12482 } {281474976710655 0000ffffffffffff}
12483 do_test boundary2-4.43.gt.1 {
12485 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY a
12487 } {3 13 17 26 27 28 43 45}
12488 do_test boundary2-4.43.gt.2 {
12490 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY a DESC
12492 } {45 43 28 27 26 17 13 3}
12493 do_test boundary2-4.43.gt.3 {
12495 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY r
12497 } {26 13 43 27 45 17 28 3}
12498 do_test boundary2-4.43.gt.4 {
12500 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY r DESC
12502 } {3 28 17 45 27 43 13 26}
12503 do_test boundary2-4.43.gt.5 {
12505 SELECT a FROM t1 WHERE r > 281474976710655 ORDER BY x
12507 } {26 13 43 27 45 17 28 3}
12508 do_test boundary2-4.43.ge.1 {
12510 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY a
12512 } {3 10 13 17 26 27 28 43 45}
12513 do_test boundary2-4.43.ge.2 {
12515 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY a DESC
12517 } {45 43 28 27 26 17 13 10 3}
12518 do_test boundary2-4.43.ge.3 {
12520 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY r
12522 } {10 26 13 43 27 45 17 28 3}
12523 do_test boundary2-4.43.ge.4 {
12525 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY r DESC
12527 } {3 28 17 45 27 43 13 26 10}
12528 do_test boundary2-4.43.ge.5 {
12530 SELECT a FROM t1 WHERE r >= 281474976710655 ORDER BY x
12532 } {10 26 13 43 27 45 17 28 3}
12533 do_test boundary2-4.43.lt.1 {
12535 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY a
12537 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
12538 do_test boundary2-4.43.lt.2 {
12540 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY a DESC
12542 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
12543 do_test boundary2-4.43.lt.3 {
12545 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY r
12547 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34}
12548 do_test boundary2-4.43.lt.4 {
12550 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY r DESC
12552 } {34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12553 do_test boundary2-4.43.lt.5 {
12555 SELECT a FROM t1 WHERE r < 281474976710655 ORDER BY x
12557 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12558 do_test boundary2-4.43.le.1 {
12560 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY a
12562 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
12563 do_test boundary2-4.43.le.2 {
12565 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY a DESC
12567 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
12568 do_test boundary2-4.43.le.3 {
12570 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY r
12572 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10}
12573 do_test boundary2-4.43.le.4 {
12575 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY r DESC
12577 } {10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12578 do_test boundary2-4.43.le.5 {
12580 SELECT a FROM t1 WHERE r <= 281474976710655 ORDER BY x
12582 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12583 do_test boundary2-4.44.1 {
12585 SELECT * FROM t1 WHERE r=4398046511103
12587 } {4398046511103 7 000003ffffffffff}
12588 do_test boundary2-4.44.2 {
12590 SELECT r, a FROM t1 WHERE x='000003ffffffffff'
12592 } {4398046511103 7}
12593 do_test boundary2-4.44.3 {
12595 SELECT r, x FROM t1 WHERE a=7
12597 } {4398046511103 000003ffffffffff}
12598 do_test boundary2-4.44.gt.1 {
12600 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY a
12602 } {3 10 13 17 25 26 27 28 34 43 45 56}
12603 do_test boundary2-4.44.gt.2 {
12605 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY a DESC
12607 } {56 45 43 34 28 27 26 25 17 13 10 3}
12608 do_test boundary2-4.44.gt.3 {
12610 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY r
12612 } {56 25 34 10 26 13 43 27 45 17 28 3}
12613 do_test boundary2-4.44.gt.4 {
12615 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY r DESC
12617 } {3 28 17 45 27 43 13 26 10 34 25 56}
12618 do_test boundary2-4.44.gt.5 {
12620 SELECT a FROM t1 WHERE r > 4398046511103 ORDER BY x
12622 } {56 25 34 10 26 13 43 27 45 17 28 3}
12623 do_test boundary2-4.44.ge.1 {
12625 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY a
12627 } {3 7 10 13 17 25 26 27 28 34 43 45 56}
12628 do_test boundary2-4.44.ge.2 {
12630 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY a DESC
12632 } {56 45 43 34 28 27 26 25 17 13 10 7 3}
12633 do_test boundary2-4.44.ge.3 {
12635 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY r
12637 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
12638 do_test boundary2-4.44.ge.4 {
12640 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY r DESC
12642 } {3 28 17 45 27 43 13 26 10 34 25 56 7}
12643 do_test boundary2-4.44.ge.5 {
12645 SELECT a FROM t1 WHERE r >= 4398046511103 ORDER BY x
12647 } {7 56 25 34 10 26 13 43 27 45 17 28 3}
12648 do_test boundary2-4.44.lt.1 {
12650 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY a
12652 } {1 2 4 5 6 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
12653 do_test boundary2-4.44.lt.2 {
12655 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY a DESC
12657 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 6 5 4 2 1}
12658 do_test boundary2-4.44.lt.3 {
12660 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY r
12662 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19}
12663 do_test boundary2-4.44.lt.4 {
12665 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY r DESC
12667 } {19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12668 do_test boundary2-4.44.lt.5 {
12670 SELECT a FROM t1 WHERE r < 4398046511103 ORDER BY x
12672 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12673 do_test boundary2-4.44.le.1 {
12675 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY a
12677 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
12678 do_test boundary2-4.44.le.2 {
12680 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY a DESC
12682 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
12683 do_test boundary2-4.44.le.3 {
12685 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY r
12687 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7}
12688 do_test boundary2-4.44.le.4 {
12690 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY r DESC
12692 } {7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12693 do_test boundary2-4.44.le.5 {
12695 SELECT a FROM t1 WHERE r <= 4398046511103 ORDER BY x
12697 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12698 do_test boundary2-4.45.1 {
12700 SELECT * FROM t1 WHERE r=268435455
12702 } {268435455 12 000000000fffffff}
12703 do_test boundary2-4.45.2 {
12705 SELECT r, a FROM t1 WHERE x='000000000fffffff'
12708 do_test boundary2-4.45.3 {
12710 SELECT r, x FROM t1 WHERE a=12
12712 } {268435455 000000000fffffff}
12713 do_test boundary2-4.45.gt.1 {
12715 SELECT a FROM t1 WHERE r > 268435455 ORDER BY a
12717 } {3 7 10 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
12718 do_test boundary2-4.45.gt.2 {
12720 SELECT a FROM t1 WHERE r > 268435455 ORDER BY a DESC
12722 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 10 7 3}
12723 do_test boundary2-4.45.gt.3 {
12725 SELECT a FROM t1 WHERE r > 268435455 ORDER BY r
12727 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12728 do_test boundary2-4.45.gt.4 {
12730 SELECT a FROM t1 WHERE r > 268435455 ORDER BY r DESC
12732 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40}
12733 do_test boundary2-4.45.gt.5 {
12735 SELECT a FROM t1 WHERE r > 268435455 ORDER BY x
12737 } {40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12738 do_test boundary2-4.45.ge.1 {
12740 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY a
12742 } {3 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
12743 do_test boundary2-4.45.ge.2 {
12745 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY a DESC
12747 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 3}
12748 do_test boundary2-4.45.ge.3 {
12750 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY r
12752 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12753 do_test boundary2-4.45.ge.4 {
12755 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY r DESC
12757 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12}
12758 do_test boundary2-4.45.ge.5 {
12760 SELECT a FROM t1 WHERE r >= 268435455 ORDER BY x
12762 } {12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12763 do_test boundary2-4.45.lt.1 {
12765 SELECT a FROM t1 WHERE r < 268435455 ORDER BY a
12767 } {1 2 4 5 6 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
12768 do_test boundary2-4.45.lt.2 {
12770 SELECT a FROM t1 WHERE r < 268435455 ORDER BY a DESC
12772 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 6 5 4 2 1}
12773 do_test boundary2-4.45.lt.3 {
12775 SELECT a FROM t1 WHERE r < 268435455 ORDER BY r
12777 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6}
12778 do_test boundary2-4.45.lt.4 {
12780 SELECT a FROM t1 WHERE r < 268435455 ORDER BY r DESC
12782 } {6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12783 do_test boundary2-4.45.lt.5 {
12785 SELECT a FROM t1 WHERE r < 268435455 ORDER BY x
12787 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12788 do_test boundary2-4.45.le.1 {
12790 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY a
12792 } {1 2 4 5 6 8 9 11 12 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
12793 do_test boundary2-4.45.le.2 {
12795 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY a DESC
12797 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 12 11 9 8 6 5 4 2 1}
12798 do_test boundary2-4.45.le.3 {
12800 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY r
12802 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12}
12803 do_test boundary2-4.45.le.4 {
12805 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY r DESC
12807 } {12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12808 do_test boundary2-4.45.le.5 {
12810 SELECT a FROM t1 WHERE r <= 268435455 ORDER BY x
12812 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12813 do_test boundary2-4.46.1 {
12815 SELECT * FROM t1 WHERE r=-9223372036854775808
12817 } {-9223372036854775808 55 8000000000000000}
12818 do_test boundary2-4.46.2 {
12820 SELECT r, a FROM t1 WHERE x='8000000000000000'
12822 } {-9223372036854775808 55}
12823 do_test boundary2-4.46.3 {
12825 SELECT r, x FROM t1 WHERE a=55
12827 } {-9223372036854775808 8000000000000000}
12828 do_test boundary2-4.46.gt.1 {
12830 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY a
12832 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
12833 do_test boundary2-4.46.gt.2 {
12835 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY a DESC
12837 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
12838 do_test boundary2-4.46.gt.3 {
12840 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY r
12842 } {2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12843 do_test boundary2-4.46.gt.4 {
12845 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY r DESC
12847 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2}
12848 do_test boundary2-4.46.gt.5 {
12850 SELECT a FROM t1 WHERE r > -9223372036854775808 ORDER BY x
12852 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12853 do_test boundary2-4.46.ge.1 {
12855 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY a
12857 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
12858 do_test boundary2-4.46.ge.2 {
12860 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY a DESC
12862 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
12863 do_test boundary2-4.46.ge.3 {
12865 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY r
12867 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
12868 do_test boundary2-4.46.ge.4 {
12870 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY r DESC
12872 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
12873 do_test boundary2-4.46.ge.5 {
12875 SELECT a FROM t1 WHERE r >= -9223372036854775808 ORDER BY x
12877 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
12878 do_test boundary2-4.46.lt.1 {
12880 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY a
12883 do_test boundary2-4.46.lt.2 {
12885 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY a DESC
12888 do_test boundary2-4.46.lt.3 {
12890 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY r
12893 do_test boundary2-4.46.lt.4 {
12895 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY r DESC
12898 do_test boundary2-4.46.lt.5 {
12900 SELECT a FROM t1 WHERE r < -9223372036854775808 ORDER BY x
12903 do_test boundary2-4.46.le.1 {
12905 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY a
12908 do_test boundary2-4.46.le.2 {
12910 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY a DESC
12913 do_test boundary2-4.46.le.3 {
12915 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY r
12918 do_test boundary2-4.46.le.4 {
12920 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY r DESC
12923 do_test boundary2-4.46.le.5 {
12925 SELECT a FROM t1 WHERE r <= -9223372036854775808 ORDER BY x
12928 do_test boundary2-4.47.1 {
12930 SELECT * FROM t1 WHERE r=562949953421312
12932 } {562949953421312 43 0002000000000000}
12933 do_test boundary2-4.47.2 {
12935 SELECT r, a FROM t1 WHERE x='0002000000000000'
12937 } {562949953421312 43}
12938 do_test boundary2-4.47.3 {
12940 SELECT r, x FROM t1 WHERE a=43
12942 } {562949953421312 0002000000000000}
12943 do_test boundary2-4.47.gt.1 {
12945 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY a
12948 do_test boundary2-4.47.gt.2 {
12950 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY a DESC
12953 do_test boundary2-4.47.gt.3 {
12955 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY r
12958 do_test boundary2-4.47.gt.4 {
12960 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY r DESC
12963 do_test boundary2-4.47.gt.5 {
12965 SELECT a FROM t1 WHERE r > 562949953421312 ORDER BY x
12968 do_test boundary2-4.47.ge.1 {
12970 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY a
12972 } {3 17 27 28 43 45}
12973 do_test boundary2-4.47.ge.2 {
12975 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY a DESC
12977 } {45 43 28 27 17 3}
12978 do_test boundary2-4.47.ge.3 {
12980 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY r
12982 } {43 27 45 17 28 3}
12983 do_test boundary2-4.47.ge.4 {
12985 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY r DESC
12987 } {3 28 17 45 27 43}
12988 do_test boundary2-4.47.ge.5 {
12990 SELECT a FROM t1 WHERE r >= 562949953421312 ORDER BY x
12992 } {43 27 45 17 28 3}
12993 do_test boundary2-4.47.lt.1 {
12995 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY a
12997 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
12998 do_test boundary2-4.47.lt.2 {
13000 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY a DESC
13002 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
13003 do_test boundary2-4.47.lt.3 {
13005 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY r
13007 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13}
13008 do_test boundary2-4.47.lt.4 {
13010 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY r DESC
13012 } {13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13013 do_test boundary2-4.47.lt.5 {
13015 SELECT a FROM t1 WHERE r < 562949953421312 ORDER BY x
13017 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13018 do_test boundary2-4.47.le.1 {
13020 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY a
13022 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13023 do_test boundary2-4.47.le.2 {
13025 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY a DESC
13027 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
13028 do_test boundary2-4.47.le.3 {
13030 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY r
13032 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43}
13033 do_test boundary2-4.47.le.4 {
13035 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY r DESC
13037 } {43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13038 do_test boundary2-4.47.le.5 {
13040 SELECT a FROM t1 WHERE r <= 562949953421312 ORDER BY x
13042 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13043 do_test boundary2-4.48.1 {
13045 SELECT * FROM t1 WHERE r=-8388609
13047 } {-8388609 1 ffffffffff7fffff}
13048 do_test boundary2-4.48.2 {
13050 SELECT r, a FROM t1 WHERE x='ffffffffff7fffff'
13053 do_test boundary2-4.48.3 {
13055 SELECT r, x FROM t1 WHERE a=1
13057 } {-8388609 ffffffffff7fffff}
13058 do_test boundary2-4.48.gt.1 {
13060 SELECT a FROM t1 WHERE r > -8388609 ORDER BY a
13062 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
13063 do_test boundary2-4.48.gt.2 {
13065 SELECT a FROM t1 WHERE r > -8388609 ORDER BY a DESC
13067 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
13068 do_test boundary2-4.48.gt.3 {
13070 SELECT a FROM t1 WHERE r > -8388609 ORDER BY r
13072 } {37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13073 do_test boundary2-4.48.gt.4 {
13075 SELECT a FROM t1 WHERE r > -8388609 ORDER BY r DESC
13077 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37}
13078 do_test boundary2-4.48.gt.5 {
13080 SELECT a FROM t1 WHERE r > -8388609 ORDER BY x
13082 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 37 29 32 54 53 52 33 38}
13083 do_test boundary2-4.48.ge.1 {
13085 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY a
13087 } {1 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
13088 do_test boundary2-4.48.ge.2 {
13090 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY a DESC
13092 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3 1}
13093 do_test boundary2-4.48.ge.3 {
13095 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY r
13097 } {1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13098 do_test boundary2-4.48.ge.4 {
13100 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY r DESC
13102 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1}
13103 do_test boundary2-4.48.ge.5 {
13105 SELECT a FROM t1 WHERE r >= -8388609 ORDER BY x
13107 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 1 37 29 32 54 53 52 33 38}
13108 do_test boundary2-4.48.lt.1 {
13110 SELECT a FROM t1 WHERE r < -8388609 ORDER BY a
13112 } {2 11 21 44 47 55 58 63 64}
13113 do_test boundary2-4.48.lt.2 {
13115 SELECT a FROM t1 WHERE r < -8388609 ORDER BY a DESC
13117 } {64 63 58 55 47 44 21 11 2}
13118 do_test boundary2-4.48.lt.3 {
13120 SELECT a FROM t1 WHERE r < -8388609 ORDER BY r
13122 } {55 2 64 21 44 58 63 47 11}
13123 do_test boundary2-4.48.lt.4 {
13125 SELECT a FROM t1 WHERE r < -8388609 ORDER BY r DESC
13127 } {11 47 63 58 44 21 64 2 55}
13128 do_test boundary2-4.48.lt.5 {
13130 SELECT a FROM t1 WHERE r < -8388609 ORDER BY x
13132 } {55 2 64 21 44 58 63 47 11}
13133 do_test boundary2-4.48.le.1 {
13135 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY a
13137 } {1 2 11 21 44 47 55 58 63 64}
13138 do_test boundary2-4.48.le.2 {
13140 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY a DESC
13142 } {64 63 58 55 47 44 21 11 2 1}
13143 do_test boundary2-4.48.le.3 {
13145 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY r
13147 } {55 2 64 21 44 58 63 47 11 1}
13148 do_test boundary2-4.48.le.4 {
13150 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY r DESC
13152 } {1 11 47 63 58 44 21 64 2 55}
13153 do_test boundary2-4.48.le.5 {
13155 SELECT a FROM t1 WHERE r <= -8388609 ORDER BY x
13157 } {55 2 64 21 44 58 63 47 11 1}
13158 do_test boundary2-4.49.1 {
13160 SELECT * FROM t1 WHERE r=16777215
13162 } {16777215 9 0000000000ffffff}
13163 do_test boundary2-4.49.2 {
13165 SELECT r, a FROM t1 WHERE x='0000000000ffffff'
13168 do_test boundary2-4.49.3 {
13170 SELECT r, x FROM t1 WHERE a=9
13172 } {16777215 0000000000ffffff}
13173 do_test boundary2-4.49.gt.1 {
13175 SELECT a FROM t1 WHERE r > 16777215 ORDER BY a
13177 } {3 6 7 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
13178 do_test boundary2-4.49.gt.2 {
13180 SELECT a FROM t1 WHERE r > 16777215 ORDER BY a DESC
13182 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 7 6 3}
13183 do_test boundary2-4.49.gt.3 {
13185 SELECT a FROM t1 WHERE r > 16777215 ORDER BY r
13187 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13188 do_test boundary2-4.49.gt.4 {
13190 SELECT a FROM t1 WHERE r > 16777215 ORDER BY r DESC
13192 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6}
13193 do_test boundary2-4.49.gt.5 {
13195 SELECT a FROM t1 WHERE r > 16777215 ORDER BY x
13197 } {6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13198 do_test boundary2-4.49.ge.1 {
13200 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY a
13202 } {3 6 7 9 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
13203 do_test boundary2-4.49.ge.2 {
13205 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY a DESC
13207 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 9 7 6 3}
13208 do_test boundary2-4.49.ge.3 {
13210 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY r
13212 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13213 do_test boundary2-4.49.ge.4 {
13215 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY r DESC
13217 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9}
13218 do_test boundary2-4.49.ge.5 {
13220 SELECT a FROM t1 WHERE r >= 16777215 ORDER BY x
13222 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13223 do_test boundary2-4.49.lt.1 {
13225 SELECT a FROM t1 WHERE r < 16777215 ORDER BY a
13227 } {1 2 4 5 8 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
13228 do_test boundary2-4.49.lt.2 {
13230 SELECT a FROM t1 WHERE r < 16777215 ORDER BY a DESC
13232 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 8 5 4 2 1}
13233 do_test boundary2-4.49.lt.3 {
13235 SELECT a FROM t1 WHERE r < 16777215 ORDER BY r
13237 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24}
13238 do_test boundary2-4.49.lt.4 {
13240 SELECT a FROM t1 WHERE r < 16777215 ORDER BY r DESC
13242 } {24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13243 do_test boundary2-4.49.lt.5 {
13245 SELECT a FROM t1 WHERE r < 16777215 ORDER BY x
13247 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13248 do_test boundary2-4.49.le.1 {
13250 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY a
13252 } {1 2 4 5 8 9 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
13253 do_test boundary2-4.49.le.2 {
13255 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY a DESC
13257 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 9 8 5 4 2 1}
13258 do_test boundary2-4.49.le.3 {
13260 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY r
13262 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9}
13263 do_test boundary2-4.49.le.4 {
13265 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY r DESC
13267 } {9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13268 do_test boundary2-4.49.le.5 {
13270 SELECT a FROM t1 WHERE r <= 16777215 ORDER BY x
13272 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13273 do_test boundary2-4.50.1 {
13275 SELECT * FROM t1 WHERE r=8388608
13277 } {8388608 24 0000000000800000}
13278 do_test boundary2-4.50.2 {
13280 SELECT r, a FROM t1 WHERE x='0000000000800000'
13283 do_test boundary2-4.50.3 {
13285 SELECT r, x FROM t1 WHERE a=24
13287 } {8388608 0000000000800000}
13288 do_test boundary2-4.50.gt.1 {
13290 SELECT a FROM t1 WHERE r > 8388608 ORDER BY a
13292 } {3 6 7 9 10 12 13 14 17 19 20 22 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
13293 do_test boundary2-4.50.gt.2 {
13295 SELECT a FROM t1 WHERE r > 8388608 ORDER BY a DESC
13297 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 22 20 19 17 14 13 12 10 9 7 6 3}
13298 do_test boundary2-4.50.gt.3 {
13300 SELECT a FROM t1 WHERE r > 8388608 ORDER BY r
13302 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13303 do_test boundary2-4.50.gt.4 {
13305 SELECT a FROM t1 WHERE r > 8388608 ORDER BY r DESC
13307 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9}
13308 do_test boundary2-4.50.gt.5 {
13310 SELECT a FROM t1 WHERE r > 8388608 ORDER BY x
13312 } {9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13313 do_test boundary2-4.50.ge.1 {
13315 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY a
13317 } {3 6 7 9 10 12 13 14 17 19 20 22 24 25 26 27 28 34 35 36 39 40 43 45 46 51 56 57}
13318 do_test boundary2-4.50.ge.2 {
13320 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY a DESC
13322 } {57 56 51 46 45 43 40 39 36 35 34 28 27 26 25 24 22 20 19 17 14 13 12 10 9 7 6 3}
13323 do_test boundary2-4.50.ge.3 {
13325 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY r
13327 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13328 do_test boundary2-4.50.ge.4 {
13330 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY r DESC
13332 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24}
13333 do_test boundary2-4.50.ge.5 {
13335 SELECT a FROM t1 WHERE r >= 8388608 ORDER BY x
13337 } {24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13338 do_test boundary2-4.50.lt.1 {
13340 SELECT a FROM t1 WHERE r < 8388608 ORDER BY a
13342 } {1 2 4 5 8 11 15 16 18 21 23 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
13343 do_test boundary2-4.50.lt.2 {
13345 SELECT a FROM t1 WHERE r < 8388608 ORDER BY a DESC
13347 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 23 21 18 16 15 11 8 5 4 2 1}
13348 do_test boundary2-4.50.lt.3 {
13350 SELECT a FROM t1 WHERE r < 8388608 ORDER BY r
13352 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18}
13353 do_test boundary2-4.50.lt.4 {
13355 SELECT a FROM t1 WHERE r < 8388608 ORDER BY r DESC
13357 } {18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13358 do_test boundary2-4.50.lt.5 {
13360 SELECT a FROM t1 WHERE r < 8388608 ORDER BY x
13362 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13363 do_test boundary2-4.50.le.1 {
13365 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY a
13367 } {1 2 4 5 8 11 15 16 18 21 23 24 29 30 31 32 33 37 38 41 42 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
13368 do_test boundary2-4.50.le.2 {
13370 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY a DESC
13372 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 42 41 38 37 33 32 31 30 29 24 23 21 18 16 15 11 8 5 4 2 1}
13373 do_test boundary2-4.50.le.3 {
13375 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY r
13377 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24}
13378 do_test boundary2-4.50.le.4 {
13380 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY r DESC
13382 } {24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13383 do_test boundary2-4.50.le.5 {
13385 SELECT a FROM t1 WHERE r <= 8388608 ORDER BY x
13387 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13388 do_test boundary2-4.51.1 {
13390 SELECT * FROM t1 WHERE r=16383
13392 } {16383 8 0000000000003fff}
13393 do_test boundary2-4.51.2 {
13395 SELECT r, a FROM t1 WHERE x='0000000000003fff'
13398 do_test boundary2-4.51.3 {
13400 SELECT r, x FROM t1 WHERE a=8
13402 } {16383 0000000000003fff}
13403 do_test boundary2-4.51.gt.1 {
13405 SELECT a FROM t1 WHERE r > 16383 ORDER BY a
13407 } {3 6 7 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
13408 do_test boundary2-4.51.gt.2 {
13410 SELECT a FROM t1 WHERE r > 16383 ORDER BY a DESC
13412 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 7 6 3}
13413 do_test boundary2-4.51.gt.3 {
13415 SELECT a FROM t1 WHERE r > 16383 ORDER BY r
13417 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13418 do_test boundary2-4.51.gt.4 {
13420 SELECT a FROM t1 WHERE r > 16383 ORDER BY r DESC
13422 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16}
13423 do_test boundary2-4.51.gt.5 {
13425 SELECT a FROM t1 WHERE r > 16383 ORDER BY x
13427 } {16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13428 do_test boundary2-4.51.ge.1 {
13430 SELECT a FROM t1 WHERE r >= 16383 ORDER BY a
13432 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
13433 do_test boundary2-4.51.ge.2 {
13435 SELECT a FROM t1 WHERE r >= 16383 ORDER BY a DESC
13437 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
13438 do_test boundary2-4.51.ge.3 {
13440 SELECT a FROM t1 WHERE r >= 16383 ORDER BY r
13442 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13443 do_test boundary2-4.51.ge.4 {
13445 SELECT a FROM t1 WHERE r >= 16383 ORDER BY r DESC
13447 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8}
13448 do_test boundary2-4.51.ge.5 {
13450 SELECT a FROM t1 WHERE r >= 16383 ORDER BY x
13452 } {8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13453 do_test boundary2-4.51.lt.1 {
13455 SELECT a FROM t1 WHERE r < 16383 ORDER BY a
13457 } {1 2 4 5 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
13458 do_test boundary2-4.51.lt.2 {
13460 SELECT a FROM t1 WHERE r < 16383 ORDER BY a DESC
13462 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 5 4 2 1}
13463 do_test boundary2-4.51.lt.3 {
13465 SELECT a FROM t1 WHERE r < 16383 ORDER BY r
13467 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61}
13468 do_test boundary2-4.51.lt.4 {
13470 SELECT a FROM t1 WHERE r < 16383 ORDER BY r DESC
13472 } {61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13473 do_test boundary2-4.51.lt.5 {
13475 SELECT a FROM t1 WHERE r < 16383 ORDER BY x
13477 } {59 60 41 5 31 4 49 30 61 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13478 do_test boundary2-4.51.le.1 {
13480 SELECT a FROM t1 WHERE r <= 16383 ORDER BY a
13482 } {1 2 4 5 8 11 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
13483 do_test boundary2-4.51.le.2 {
13485 SELECT a FROM t1 WHERE r <= 16383 ORDER BY a DESC
13487 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 11 8 5 4 2 1}
13488 do_test boundary2-4.51.le.3 {
13490 SELECT a FROM t1 WHERE r <= 16383 ORDER BY r
13492 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8}
13493 do_test boundary2-4.51.le.4 {
13495 SELECT a FROM t1 WHERE r <= 16383 ORDER BY r DESC
13497 } {8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13498 do_test boundary2-4.51.le.5 {
13500 SELECT a FROM t1 WHERE r <= 16383 ORDER BY x
13502 } {59 60 41 5 31 4 49 30 61 8 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13503 do_test boundary2-4.52.1 {
13505 SELECT * FROM t1 WHERE r=140737488355328
13507 } {140737488355328 34 0000800000000000}
13508 do_test boundary2-4.52.2 {
13510 SELECT r, a FROM t1 WHERE x='0000800000000000'
13512 } {140737488355328 34}
13513 do_test boundary2-4.52.3 {
13515 SELECT r, x FROM t1 WHERE a=34
13517 } {140737488355328 0000800000000000}
13518 do_test boundary2-4.52.gt.1 {
13520 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY a
13522 } {3 10 13 17 26 27 28 43 45}
13523 do_test boundary2-4.52.gt.2 {
13525 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY a DESC
13527 } {45 43 28 27 26 17 13 10 3}
13528 do_test boundary2-4.52.gt.3 {
13530 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY r
13532 } {10 26 13 43 27 45 17 28 3}
13533 do_test boundary2-4.52.gt.4 {
13535 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY r DESC
13537 } {3 28 17 45 27 43 13 26 10}
13538 do_test boundary2-4.52.gt.5 {
13540 SELECT a FROM t1 WHERE r > 140737488355328 ORDER BY x
13542 } {10 26 13 43 27 45 17 28 3}
13543 do_test boundary2-4.52.ge.1 {
13545 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY a
13547 } {3 10 13 17 26 27 28 34 43 45}
13548 do_test boundary2-4.52.ge.2 {
13550 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY a DESC
13552 } {45 43 34 28 27 26 17 13 10 3}
13553 do_test boundary2-4.52.ge.3 {
13555 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY r
13557 } {34 10 26 13 43 27 45 17 28 3}
13558 do_test boundary2-4.52.ge.4 {
13560 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY r DESC
13562 } {3 28 17 45 27 43 13 26 10 34}
13563 do_test boundary2-4.52.ge.5 {
13565 SELECT a FROM t1 WHERE r >= 140737488355328 ORDER BY x
13567 } {34 10 26 13 43 27 45 17 28 3}
13568 do_test boundary2-4.52.lt.1 {
13570 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY a
13572 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13573 do_test boundary2-4.52.lt.2 {
13575 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY a DESC
13577 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
13578 do_test boundary2-4.52.lt.3 {
13580 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY r
13582 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25}
13583 do_test boundary2-4.52.lt.4 {
13585 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY r DESC
13587 } {25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13588 do_test boundary2-4.52.lt.5 {
13590 SELECT a FROM t1 WHERE r < 140737488355328 ORDER BY x
13592 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13593 do_test boundary2-4.52.le.1 {
13595 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY a
13597 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13598 do_test boundary2-4.52.le.2 {
13600 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY a DESC
13602 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
13603 do_test boundary2-4.52.le.3 {
13605 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY r
13607 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34}
13608 do_test boundary2-4.52.le.4 {
13610 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY r DESC
13612 } {34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13613 do_test boundary2-4.52.le.5 {
13615 SELECT a FROM t1 WHERE r <= 140737488355328 ORDER BY x
13617 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13618 do_test boundary2-4.53.1 {
13620 SELECT * FROM t1 WHERE r=2097151
13622 } {2097151 15 00000000001fffff}
13623 do_test boundary2-4.53.2 {
13625 SELECT r, a FROM t1 WHERE x='00000000001fffff'
13628 do_test boundary2-4.53.3 {
13630 SELECT r, x FROM t1 WHERE a=15
13632 } {2097151 00000000001fffff}
13633 do_test boundary2-4.53.gt.1 {
13635 SELECT a FROM t1 WHERE r > 2097151 ORDER BY a
13637 } {3 6 7 9 10 12 13 14 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
13638 do_test boundary2-4.53.gt.2 {
13640 SELECT a FROM t1 WHERE r > 2097151 ORDER BY a DESC
13642 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 14 13 12 10 9 7 6 3}
13643 do_test boundary2-4.53.gt.3 {
13645 SELECT a FROM t1 WHERE r > 2097151 ORDER BY r
13647 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13648 do_test boundary2-4.53.gt.4 {
13650 SELECT a FROM t1 WHERE r > 2097151 ORDER BY r DESC
13652 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42}
13653 do_test boundary2-4.53.gt.5 {
13655 SELECT a FROM t1 WHERE r > 2097151 ORDER BY x
13657 } {42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13658 do_test boundary2-4.53.ge.1 {
13660 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY a
13662 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 51 56 57}
13663 do_test boundary2-4.53.ge.2 {
13665 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY a DESC
13667 } {57 56 51 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
13668 do_test boundary2-4.53.ge.3 {
13670 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY r
13672 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13673 do_test boundary2-4.53.ge.4 {
13675 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY r DESC
13677 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15}
13678 do_test boundary2-4.53.ge.5 {
13680 SELECT a FROM t1 WHERE r >= 2097151 ORDER BY x
13682 } {15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13683 do_test boundary2-4.53.lt.1 {
13685 SELECT a FROM t1 WHERE r < 2097151 ORDER BY a
13687 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
13688 do_test boundary2-4.53.lt.2 {
13690 SELECT a FROM t1 WHERE r < 2097151 ORDER BY a DESC
13692 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
13693 do_test boundary2-4.53.lt.3 {
13695 SELECT a FROM t1 WHERE r < 2097151 ORDER BY r
13697 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62}
13698 do_test boundary2-4.53.lt.4 {
13700 SELECT a FROM t1 WHERE r < 2097151 ORDER BY r DESC
13702 } {62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13703 do_test boundary2-4.53.lt.5 {
13705 SELECT a FROM t1 WHERE r < 2097151 ORDER BY x
13707 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13708 do_test boundary2-4.53.le.1 {
13710 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY a
13712 } {1 2 4 5 8 11 15 16 21 23 29 30 31 32 33 37 38 41 44 47 48 49 50 52 53 54 55 58 59 60 61 62 63 64}
13713 do_test boundary2-4.53.le.2 {
13715 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY a DESC
13717 } {64 63 62 61 60 59 58 55 54 53 52 50 49 48 47 44 41 38 37 33 32 31 30 29 23 21 16 15 11 8 5 4 2 1}
13718 do_test boundary2-4.53.le.3 {
13720 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY r
13722 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15}
13723 do_test boundary2-4.53.le.4 {
13725 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY r DESC
13727 } {15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13728 do_test boundary2-4.53.le.5 {
13730 SELECT a FROM t1 WHERE r <= 2097151 ORDER BY x
13732 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13733 do_test boundary2-4.54.1 {
13735 SELECT * FROM t1 WHERE r=140737488355327
13737 } {140737488355327 25 00007fffffffffff}
13738 do_test boundary2-4.54.2 {
13740 SELECT r, a FROM t1 WHERE x='00007fffffffffff'
13742 } {140737488355327 25}
13743 do_test boundary2-4.54.3 {
13745 SELECT r, x FROM t1 WHERE a=25
13747 } {140737488355327 00007fffffffffff}
13748 do_test boundary2-4.54.gt.1 {
13750 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY a
13752 } {3 10 13 17 26 27 28 34 43 45}
13753 do_test boundary2-4.54.gt.2 {
13755 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY a DESC
13757 } {45 43 34 28 27 26 17 13 10 3}
13758 do_test boundary2-4.54.gt.3 {
13760 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY r
13762 } {34 10 26 13 43 27 45 17 28 3}
13763 do_test boundary2-4.54.gt.4 {
13765 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY r DESC
13767 } {3 28 17 45 27 43 13 26 10 34}
13768 do_test boundary2-4.54.gt.5 {
13770 SELECT a FROM t1 WHERE r > 140737488355327 ORDER BY x
13772 } {34 10 26 13 43 27 45 17 28 3}
13773 do_test boundary2-4.54.ge.1 {
13775 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY a
13777 } {3 10 13 17 25 26 27 28 34 43 45}
13778 do_test boundary2-4.54.ge.2 {
13780 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY a DESC
13782 } {45 43 34 28 27 26 25 17 13 10 3}
13783 do_test boundary2-4.54.ge.3 {
13785 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY r
13787 } {25 34 10 26 13 43 27 45 17 28 3}
13788 do_test boundary2-4.54.ge.4 {
13790 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY r DESC
13792 } {3 28 17 45 27 43 13 26 10 34 25}
13793 do_test boundary2-4.54.ge.5 {
13795 SELECT a FROM t1 WHERE r >= 140737488355327 ORDER BY x
13797 } {25 34 10 26 13 43 27 45 17 28 3}
13798 do_test boundary2-4.54.lt.1 {
13800 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY a
13802 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13803 do_test boundary2-4.54.lt.2 {
13805 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY a DESC
13807 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
13808 do_test boundary2-4.54.lt.3 {
13810 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY r
13812 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56}
13813 do_test boundary2-4.54.lt.4 {
13815 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY r DESC
13817 } {56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13818 do_test boundary2-4.54.lt.5 {
13820 SELECT a FROM t1 WHERE r < 140737488355327 ORDER BY x
13822 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13823 do_test boundary2-4.54.le.1 {
13825 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY a
13827 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13828 do_test boundary2-4.54.le.2 {
13830 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY a DESC
13832 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
13833 do_test boundary2-4.54.le.3 {
13835 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY r
13837 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25}
13838 do_test boundary2-4.54.le.4 {
13840 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY r DESC
13842 } {25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13843 do_test boundary2-4.54.le.5 {
13845 SELECT a FROM t1 WHERE r <= 140737488355327 ORDER BY x
13847 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13848 do_test boundary2-4.55.1 {
13850 SELECT * FROM t1 WHERE r=281474976710656
13852 } {281474976710656 26 0001000000000000}
13853 do_test boundary2-4.55.2 {
13855 SELECT r, a FROM t1 WHERE x='0001000000000000'
13857 } {281474976710656 26}
13858 do_test boundary2-4.55.3 {
13860 SELECT r, x FROM t1 WHERE a=26
13862 } {281474976710656 0001000000000000}
13863 do_test boundary2-4.55.gt.1 {
13865 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY a
13867 } {3 13 17 27 28 43 45}
13868 do_test boundary2-4.55.gt.2 {
13870 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY a DESC
13872 } {45 43 28 27 17 13 3}
13873 do_test boundary2-4.55.gt.3 {
13875 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY r
13877 } {13 43 27 45 17 28 3}
13878 do_test boundary2-4.55.gt.4 {
13880 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY r DESC
13882 } {3 28 17 45 27 43 13}
13883 do_test boundary2-4.55.gt.5 {
13885 SELECT a FROM t1 WHERE r > 281474976710656 ORDER BY x
13887 } {13 43 27 45 17 28 3}
13888 do_test boundary2-4.55.ge.1 {
13890 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY a
13892 } {3 13 17 26 27 28 43 45}
13893 do_test boundary2-4.55.ge.2 {
13895 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY a DESC
13897 } {45 43 28 27 26 17 13 3}
13898 do_test boundary2-4.55.ge.3 {
13900 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY r
13902 } {26 13 43 27 45 17 28 3}
13903 do_test boundary2-4.55.ge.4 {
13905 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY r DESC
13907 } {3 28 17 45 27 43 13 26}
13908 do_test boundary2-4.55.ge.5 {
13910 SELECT a FROM t1 WHERE r >= 281474976710656 ORDER BY x
13912 } {26 13 43 27 45 17 28 3}
13913 do_test boundary2-4.55.lt.1 {
13915 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY a
13917 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13918 do_test boundary2-4.55.lt.2 {
13920 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY a DESC
13922 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
13923 do_test boundary2-4.55.lt.3 {
13925 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY r
13927 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10}
13928 do_test boundary2-4.55.lt.4 {
13930 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY r DESC
13932 } {10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13933 do_test boundary2-4.55.lt.5 {
13935 SELECT a FROM t1 WHERE r < 281474976710656 ORDER BY x
13937 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13938 do_test boundary2-4.55.le.1 {
13940 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY a
13942 } {1 2 4 5 6 7 8 9 10 11 12 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
13943 do_test boundary2-4.55.le.2 {
13945 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY a DESC
13947 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 12 11 10 9 8 7 6 5 4 2 1}
13948 do_test boundary2-4.55.le.3 {
13950 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY r
13952 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26}
13953 do_test boundary2-4.55.le.4 {
13955 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY r DESC
13957 } {26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
13958 do_test boundary2-4.55.le.5 {
13960 SELECT a FROM t1 WHERE r <= 281474976710656 ORDER BY x
13962 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
13963 do_test boundary2-4.56.1 {
13965 SELECT * FROM t1 WHERE r=32767
13967 } {32767 23 0000000000007fff}
13968 do_test boundary2-4.56.2 {
13970 SELECT r, a FROM t1 WHERE x='0000000000007fff'
13973 do_test boundary2-4.56.3 {
13975 SELECT r, x FROM t1 WHERE a=23
13977 } {32767 0000000000007fff}
13978 do_test boundary2-4.56.gt.1 {
13980 SELECT a FROM t1 WHERE r > 32767 ORDER BY a
13982 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
13983 do_test boundary2-4.56.gt.2 {
13985 SELECT a FROM t1 WHERE r > 32767 ORDER BY a DESC
13987 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
13988 do_test boundary2-4.56.gt.3 {
13990 SELECT a FROM t1 WHERE r > 32767 ORDER BY r
13992 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
13993 do_test boundary2-4.56.gt.4 {
13995 SELECT a FROM t1 WHERE r > 32767 ORDER BY r DESC
13997 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50}
13998 do_test boundary2-4.56.gt.5 {
14000 SELECT a FROM t1 WHERE r > 32767 ORDER BY x
14002 } {50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14003 do_test boundary2-4.56.ge.1 {
14005 SELECT a FROM t1 WHERE r >= 32767 ORDER BY a
14007 } {3 6 7 9 10 12 13 14 15 17 18 19 20 22 23 24 25 26 27 28 34 35 36 39 40 42 43 45 46 48 50 51 56 57 62}
14008 do_test boundary2-4.56.ge.2 {
14010 SELECT a FROM t1 WHERE r >= 32767 ORDER BY a DESC
14012 } {62 57 56 51 50 48 46 45 43 42 40 39 36 35 34 28 27 26 25 24 23 22 20 19 18 17 15 14 13 12 10 9 7 6 3}
14013 do_test boundary2-4.56.ge.3 {
14015 SELECT a FROM t1 WHERE r >= 32767 ORDER BY r
14017 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14018 do_test boundary2-4.56.ge.4 {
14020 SELECT a FROM t1 WHERE r >= 32767 ORDER BY r DESC
14022 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23}
14023 do_test boundary2-4.56.ge.5 {
14025 SELECT a FROM t1 WHERE r >= 32767 ORDER BY x
14027 } {23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14028 do_test boundary2-4.56.lt.1 {
14030 SELECT a FROM t1 WHERE r < 32767 ORDER BY a
14032 } {1 2 4 5 8 11 16 21 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
14033 do_test boundary2-4.56.lt.2 {
14035 SELECT a FROM t1 WHERE r < 32767 ORDER BY a DESC
14037 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 21 16 11 8 5 4 2 1}
14038 do_test boundary2-4.56.lt.3 {
14040 SELECT a FROM t1 WHERE r < 32767 ORDER BY r
14042 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16}
14043 do_test boundary2-4.56.lt.4 {
14045 SELECT a FROM t1 WHERE r < 32767 ORDER BY r DESC
14047 } {16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14048 do_test boundary2-4.56.lt.5 {
14050 SELECT a FROM t1 WHERE r < 32767 ORDER BY x
14052 } {59 60 41 5 31 4 49 30 61 8 16 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14053 do_test boundary2-4.56.le.1 {
14055 SELECT a FROM t1 WHERE r <= 32767 ORDER BY a
14057 } {1 2 4 5 8 11 16 21 23 29 30 31 32 33 37 38 41 44 47 49 52 53 54 55 58 59 60 61 63 64}
14058 do_test boundary2-4.56.le.2 {
14060 SELECT a FROM t1 WHERE r <= 32767 ORDER BY a DESC
14062 } {64 63 61 60 59 58 55 54 53 52 49 47 44 41 38 37 33 32 31 30 29 23 21 16 11 8 5 4 2 1}
14063 do_test boundary2-4.56.le.3 {
14065 SELECT a FROM t1 WHERE r <= 32767 ORDER BY r
14067 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23}
14068 do_test boundary2-4.56.le.4 {
14070 SELECT a FROM t1 WHERE r <= 32767 ORDER BY r DESC
14072 } {23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14073 do_test boundary2-4.56.le.5 {
14075 SELECT a FROM t1 WHERE r <= 32767 ORDER BY x
14077 } {59 60 41 5 31 4 49 30 61 8 16 23 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14078 do_test boundary2-4.57.1 {
14080 SELECT * FROM t1 WHERE r=127
14082 } {127 4 000000000000007f}
14083 do_test boundary2-4.57.2 {
14085 SELECT r, a FROM t1 WHERE x='000000000000007f'
14088 do_test boundary2-4.57.3 {
14090 SELECT r, x FROM t1 WHERE a=4
14092 } {127 000000000000007f}
14093 do_test boundary2-4.57.gt.1 {
14095 SELECT a FROM t1 WHERE r > 127 ORDER BY a
14097 } {3 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
14098 do_test boundary2-4.57.gt.2 {
14100 SELECT a FROM t1 WHERE r > 127 ORDER BY a DESC
14102 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 3}
14103 do_test boundary2-4.57.gt.3 {
14105 SELECT a FROM t1 WHERE r > 127 ORDER BY r
14107 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14108 do_test boundary2-4.57.gt.4 {
14110 SELECT a FROM t1 WHERE r > 127 ORDER BY r DESC
14112 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49}
14113 do_test boundary2-4.57.gt.5 {
14115 SELECT a FROM t1 WHERE r > 127 ORDER BY x
14117 } {49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14118 do_test boundary2-4.57.ge.1 {
14120 SELECT a FROM t1 WHERE r >= 127 ORDER BY a
14122 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
14123 do_test boundary2-4.57.ge.2 {
14125 SELECT a FROM t1 WHERE r >= 127 ORDER BY a DESC
14127 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
14128 do_test boundary2-4.57.ge.3 {
14130 SELECT a FROM t1 WHERE r >= 127 ORDER BY r
14132 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14133 do_test boundary2-4.57.ge.4 {
14135 SELECT a FROM t1 WHERE r >= 127 ORDER BY r DESC
14137 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4}
14138 do_test boundary2-4.57.ge.5 {
14140 SELECT a FROM t1 WHERE r >= 127 ORDER BY x
14142 } {4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14143 do_test boundary2-4.57.lt.1 {
14145 SELECT a FROM t1 WHERE r < 127 ORDER BY a
14147 } {1 2 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
14148 do_test boundary2-4.57.lt.2 {
14150 SELECT a FROM t1 WHERE r < 127 ORDER BY a DESC
14152 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 2 1}
14153 do_test boundary2-4.57.lt.3 {
14155 SELECT a FROM t1 WHERE r < 127 ORDER BY r
14157 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31}
14158 do_test boundary2-4.57.lt.4 {
14160 SELECT a FROM t1 WHERE r < 127 ORDER BY r DESC
14162 } {31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14163 do_test boundary2-4.57.lt.5 {
14165 SELECT a FROM t1 WHERE r < 127 ORDER BY x
14167 } {59 60 41 5 31 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14168 do_test boundary2-4.57.le.1 {
14170 SELECT a FROM t1 WHERE r <= 127 ORDER BY a
14172 } {1 2 4 5 11 21 29 31 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
14173 do_test boundary2-4.57.le.2 {
14175 SELECT a FROM t1 WHERE r <= 127 ORDER BY a DESC
14177 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 31 29 21 11 5 4 2 1}
14178 do_test boundary2-4.57.le.3 {
14180 SELECT a FROM t1 WHERE r <= 127 ORDER BY r
14182 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4}
14183 do_test boundary2-4.57.le.4 {
14185 SELECT a FROM t1 WHERE r <= 127 ORDER BY r DESC
14187 } {4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14188 do_test boundary2-4.57.le.5 {
14190 SELECT a FROM t1 WHERE r <= 127 ORDER BY x
14192 } {59 60 41 5 31 4 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14193 do_test boundary2-4.58.1 {
14195 SELECT * FROM t1 WHERE r=36028797018963967
14197 } {36028797018963967 27 007fffffffffffff}
14198 do_test boundary2-4.58.2 {
14200 SELECT r, a FROM t1 WHERE x='007fffffffffffff'
14202 } {36028797018963967 27}
14203 do_test boundary2-4.58.3 {
14205 SELECT r, x FROM t1 WHERE a=27
14207 } {36028797018963967 007fffffffffffff}
14208 do_test boundary2-4.58.gt.1 {
14210 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY a
14213 do_test boundary2-4.58.gt.2 {
14215 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY a DESC
14218 do_test boundary2-4.58.gt.3 {
14220 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY r
14223 do_test boundary2-4.58.gt.4 {
14225 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY r DESC
14228 do_test boundary2-4.58.gt.5 {
14230 SELECT a FROM t1 WHERE r > 36028797018963967 ORDER BY x
14233 do_test boundary2-4.58.ge.1 {
14235 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY a
14238 do_test boundary2-4.58.ge.2 {
14240 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY a DESC
14243 do_test boundary2-4.58.ge.3 {
14245 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY r
14248 do_test boundary2-4.58.ge.4 {
14250 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY r DESC
14253 do_test boundary2-4.58.ge.5 {
14255 SELECT a FROM t1 WHERE r >= 36028797018963967 ORDER BY x
14258 do_test boundary2-4.58.lt.1 {
14260 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY a
14262 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
14263 do_test boundary2-4.58.lt.2 {
14265 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY a DESC
14267 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
14268 do_test boundary2-4.58.lt.3 {
14270 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY r
14272 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43}
14273 do_test boundary2-4.58.lt.4 {
14275 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY r DESC
14277 } {43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14278 do_test boundary2-4.58.lt.5 {
14280 SELECT a FROM t1 WHERE r < 36028797018963967 ORDER BY x
14282 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14283 do_test boundary2-4.58.le.1 {
14285 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY a
14287 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
14288 do_test boundary2-4.58.le.2 {
14290 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY a DESC
14292 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
14293 do_test boundary2-4.58.le.3 {
14295 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY r
14297 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27}
14298 do_test boundary2-4.58.le.4 {
14300 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY r DESC
14302 } {27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14303 do_test boundary2-4.58.le.5 {
14305 SELECT a FROM t1 WHERE r <= 36028797018963967 ORDER BY x
14307 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14308 do_test boundary2-4.59.1 {
14310 SELECT * FROM t1 WHERE r=4398046511104
14312 } {4398046511104 56 0000040000000000}
14313 do_test boundary2-4.59.2 {
14315 SELECT r, a FROM t1 WHERE x='0000040000000000'
14317 } {4398046511104 56}
14318 do_test boundary2-4.59.3 {
14320 SELECT r, x FROM t1 WHERE a=56
14322 } {4398046511104 0000040000000000}
14323 do_test boundary2-4.59.gt.1 {
14325 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY a
14327 } {3 10 13 17 25 26 27 28 34 43 45}
14328 do_test boundary2-4.59.gt.2 {
14330 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY a DESC
14332 } {45 43 34 28 27 26 25 17 13 10 3}
14333 do_test boundary2-4.59.gt.3 {
14335 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY r
14337 } {25 34 10 26 13 43 27 45 17 28 3}
14338 do_test boundary2-4.59.gt.4 {
14340 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY r DESC
14342 } {3 28 17 45 27 43 13 26 10 34 25}
14343 do_test boundary2-4.59.gt.5 {
14345 SELECT a FROM t1 WHERE r > 4398046511104 ORDER BY x
14347 } {25 34 10 26 13 43 27 45 17 28 3}
14348 do_test boundary2-4.59.ge.1 {
14350 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY a
14352 } {3 10 13 17 25 26 27 28 34 43 45 56}
14353 do_test boundary2-4.59.ge.2 {
14355 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY a DESC
14357 } {56 45 43 34 28 27 26 25 17 13 10 3}
14358 do_test boundary2-4.59.ge.3 {
14360 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY r
14362 } {56 25 34 10 26 13 43 27 45 17 28 3}
14363 do_test boundary2-4.59.ge.4 {
14365 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY r DESC
14367 } {3 28 17 45 27 43 13 26 10 34 25 56}
14368 do_test boundary2-4.59.ge.5 {
14370 SELECT a FROM t1 WHERE r >= 4398046511104 ORDER BY x
14372 } {56 25 34 10 26 13 43 27 45 17 28 3}
14373 do_test boundary2-4.59.lt.1 {
14375 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY a
14377 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 57 58 59 60 61 62 63 64}
14378 do_test boundary2-4.59.lt.2 {
14380 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY a DESC
14382 } {64 63 62 61 60 59 58 57 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
14383 do_test boundary2-4.59.lt.3 {
14385 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY r
14387 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7}
14388 do_test boundary2-4.59.lt.4 {
14390 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY r DESC
14392 } {7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14393 do_test boundary2-4.59.lt.5 {
14395 SELECT a FROM t1 WHERE r < 4398046511104 ORDER BY x
14397 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14398 do_test boundary2-4.59.le.1 {
14400 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY a
14402 } {1 2 4 5 6 7 8 9 11 12 14 15 16 18 19 20 21 22 23 24 29 30 31 32 33 35 36 37 38 39 40 41 42 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
14403 do_test boundary2-4.59.le.2 {
14405 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY a DESC
14407 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 42 41 40 39 38 37 36 35 33 32 31 30 29 24 23 22 21 20 19 18 16 15 14 12 11 9 8 7 6 5 4 2 1}
14408 do_test boundary2-4.59.le.3 {
14410 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY r
14412 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56}
14413 do_test boundary2-4.59.le.4 {
14415 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY r DESC
14417 } {56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14418 do_test boundary2-4.59.le.5 {
14420 SELECT a FROM t1 WHERE r <= 4398046511104 ORDER BY x
14422 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14423 do_test boundary2-4.60.1 {
14425 SELECT * FROM t1 WHERE r=1
14427 } {1 60 0000000000000001}
14428 do_test boundary2-4.60.2 {
14430 SELECT r, a FROM t1 WHERE x='0000000000000001'
14433 do_test boundary2-4.60.3 {
14435 SELECT r, x FROM t1 WHERE a=60
14437 } {1 0000000000000001}
14438 do_test boundary2-4.60.gt.1 {
14440 SELECT a FROM t1 WHERE r > 1 ORDER BY a
14442 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 61 62}
14443 do_test boundary2-4.60.gt.2 {
14445 SELECT a FROM t1 WHERE r > 1 ORDER BY a DESC
14447 } {62 61 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
14448 do_test boundary2-4.60.gt.3 {
14450 SELECT a FROM t1 WHERE r > 1 ORDER BY r
14452 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14453 do_test boundary2-4.60.gt.4 {
14455 SELECT a FROM t1 WHERE r > 1 ORDER BY r DESC
14457 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41}
14458 do_test boundary2-4.60.gt.5 {
14460 SELECT a FROM t1 WHERE r > 1 ORDER BY x
14462 } {41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14463 do_test boundary2-4.60.ge.1 {
14465 SELECT a FROM t1 WHERE r >= 1 ORDER BY a
14467 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 41 42 43 45 46 48 49 50 51 56 57 60 61 62}
14468 do_test boundary2-4.60.ge.2 {
14470 SELECT a FROM t1 WHERE r >= 1 ORDER BY a DESC
14472 } {62 61 60 57 56 51 50 49 48 46 45 43 42 41 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
14473 do_test boundary2-4.60.ge.3 {
14475 SELECT a FROM t1 WHERE r >= 1 ORDER BY r
14477 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14478 do_test boundary2-4.60.ge.4 {
14480 SELECT a FROM t1 WHERE r >= 1 ORDER BY r DESC
14482 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60}
14483 do_test boundary2-4.60.ge.5 {
14485 SELECT a FROM t1 WHERE r >= 1 ORDER BY x
14487 } {60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14488 do_test boundary2-4.60.lt.1 {
14490 SELECT a FROM t1 WHERE r < 1 ORDER BY a
14492 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 63 64}
14493 do_test boundary2-4.60.lt.2 {
14495 SELECT a FROM t1 WHERE r < 1 ORDER BY a DESC
14497 } {64 63 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
14498 do_test boundary2-4.60.lt.3 {
14500 SELECT a FROM t1 WHERE r < 1 ORDER BY r
14502 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59}
14503 do_test boundary2-4.60.lt.4 {
14505 SELECT a FROM t1 WHERE r < 1 ORDER BY r DESC
14507 } {59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14508 do_test boundary2-4.60.lt.5 {
14510 SELECT a FROM t1 WHERE r < 1 ORDER BY x
14512 } {59 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14513 do_test boundary2-4.60.le.1 {
14515 SELECT a FROM t1 WHERE r <= 1 ORDER BY a
14517 } {1 2 11 21 29 32 33 37 38 44 47 52 53 54 55 58 59 60 63 64}
14518 do_test boundary2-4.60.le.2 {
14520 SELECT a FROM t1 WHERE r <= 1 ORDER BY a DESC
14522 } {64 63 60 59 58 55 54 53 52 47 44 38 37 33 32 29 21 11 2 1}
14523 do_test boundary2-4.60.le.3 {
14525 SELECT a FROM t1 WHERE r <= 1 ORDER BY r
14527 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60}
14528 do_test boundary2-4.60.le.4 {
14530 SELECT a FROM t1 WHERE r <= 1 ORDER BY r DESC
14532 } {60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14533 do_test boundary2-4.60.le.5 {
14535 SELECT a FROM t1 WHERE r <= 1 ORDER BY x
14537 } {59 60 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14538 do_test boundary2-4.61.1 {
14540 SELECT * FROM t1 WHERE r=36028797018963968
14542 } {36028797018963968 45 0080000000000000}
14543 do_test boundary2-4.61.2 {
14545 SELECT r, a FROM t1 WHERE x='0080000000000000'
14547 } {36028797018963968 45}
14548 do_test boundary2-4.61.3 {
14550 SELECT r, x FROM t1 WHERE a=45
14552 } {36028797018963968 0080000000000000}
14553 do_test boundary2-4.61.gt.1 {
14555 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY a
14558 do_test boundary2-4.61.gt.2 {
14560 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY a DESC
14563 do_test boundary2-4.61.gt.3 {
14565 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY r
14568 do_test boundary2-4.61.gt.4 {
14570 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY r DESC
14573 do_test boundary2-4.61.gt.5 {
14575 SELECT a FROM t1 WHERE r > 36028797018963968 ORDER BY x
14578 do_test boundary2-4.61.ge.1 {
14580 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY a
14583 do_test boundary2-4.61.ge.2 {
14585 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY a DESC
14588 do_test boundary2-4.61.ge.3 {
14590 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY r
14593 do_test boundary2-4.61.ge.4 {
14595 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY r DESC
14598 do_test boundary2-4.61.ge.5 {
14600 SELECT a FROM t1 WHERE r >= 36028797018963968 ORDER BY x
14603 do_test boundary2-4.61.lt.1 {
14605 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY a
14607 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
14608 do_test boundary2-4.61.lt.2 {
14610 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY a DESC
14612 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
14613 do_test boundary2-4.61.lt.3 {
14615 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY r
14617 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27}
14618 do_test boundary2-4.61.lt.4 {
14620 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY r DESC
14622 } {27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14623 do_test boundary2-4.61.lt.5 {
14625 SELECT a FROM t1 WHERE r < 36028797018963968 ORDER BY x
14627 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14628 do_test boundary2-4.61.le.1 {
14630 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY a
14632 } {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
14633 do_test boundary2-4.61.le.2 {
14635 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY a DESC
14637 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 27 26 25 24 23 22 21 20 19 18 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
14638 do_test boundary2-4.61.le.3 {
14640 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY r
14642 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45}
14643 do_test boundary2-4.61.le.4 {
14645 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY r DESC
14647 } {45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14648 do_test boundary2-4.61.le.5 {
14650 SELECT a FROM t1 WHERE r <= 36028797018963968 ORDER BY x
14652 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14653 do_test boundary2-4.62.1 {
14655 SELECT * FROM t1 WHERE r=-2147483649
14657 } {-2147483649 47 ffffffff7fffffff}
14658 do_test boundary2-4.62.2 {
14660 SELECT r, a FROM t1 WHERE x='ffffffff7fffffff'
14663 do_test boundary2-4.62.3 {
14665 SELECT r, x FROM t1 WHERE a=47
14667 } {-2147483649 ffffffff7fffffff}
14668 do_test boundary2-4.62.gt.1 {
14670 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY a
14672 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 48 49 50 51 52 53 54 56 57 59 60 61 62}
14673 do_test boundary2-4.62.gt.2 {
14675 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY a DESC
14677 } {62 61 60 59 57 56 54 53 52 51 50 49 48 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
14678 do_test boundary2-4.62.gt.3 {
14680 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY r
14682 } {11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14683 do_test boundary2-4.62.gt.4 {
14685 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY r DESC
14687 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11}
14688 do_test boundary2-4.62.gt.5 {
14690 SELECT a FROM t1 WHERE r > -2147483649 ORDER BY x
14692 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 11 1 37 29 32 54 53 52 33 38}
14693 do_test boundary2-4.62.ge.1 {
14695 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY a
14697 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 48 49 50 51 52 53 54 56 57 59 60 61 62}
14698 do_test boundary2-4.62.ge.2 {
14700 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY a DESC
14702 } {62 61 60 59 57 56 54 53 52 51 50 49 48 47 46 45 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
14703 do_test boundary2-4.62.ge.3 {
14705 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY r
14707 } {47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14708 do_test boundary2-4.62.ge.4 {
14710 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY r DESC
14712 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47}
14713 do_test boundary2-4.62.ge.5 {
14715 SELECT a FROM t1 WHERE r >= -2147483649 ORDER BY x
14717 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 47 11 1 37 29 32 54 53 52 33 38}
14718 do_test boundary2-4.62.lt.1 {
14720 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY a
14722 } {2 21 44 55 58 63 64}
14723 do_test boundary2-4.62.lt.2 {
14725 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY a DESC
14727 } {64 63 58 55 44 21 2}
14728 do_test boundary2-4.62.lt.3 {
14730 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY r
14732 } {55 2 64 21 44 58 63}
14733 do_test boundary2-4.62.lt.4 {
14735 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY r DESC
14737 } {63 58 44 21 64 2 55}
14738 do_test boundary2-4.62.lt.5 {
14740 SELECT a FROM t1 WHERE r < -2147483649 ORDER BY x
14742 } {55 2 64 21 44 58 63}
14743 do_test boundary2-4.62.le.1 {
14745 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY a
14747 } {2 21 44 47 55 58 63 64}
14748 do_test boundary2-4.62.le.2 {
14750 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY a DESC
14752 } {64 63 58 55 47 44 21 2}
14753 do_test boundary2-4.62.le.3 {
14755 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY r
14757 } {55 2 64 21 44 58 63 47}
14758 do_test boundary2-4.62.le.4 {
14760 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY r DESC
14762 } {47 63 58 44 21 64 2 55}
14763 do_test boundary2-4.62.le.5 {
14765 SELECT a FROM t1 WHERE r <= -2147483649 ORDER BY x
14767 } {55 2 64 21 44 58 63 47}
14768 do_test boundary2-4.63.1 {
14770 SELECT * FROM t1 WHERE r=-36028797018963969
14772 } {-36028797018963969 2 ff7fffffffffffff}
14773 do_test boundary2-4.63.2 {
14775 SELECT r, a FROM t1 WHERE x='ff7fffffffffffff'
14777 } {-36028797018963969 2}
14778 do_test boundary2-4.63.3 {
14780 SELECT r, x FROM t1 WHERE a=2
14782 } {-36028797018963969 ff7fffffffffffff}
14783 do_test boundary2-4.63.gt.1 {
14785 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY a
14787 } {1 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
14788 do_test boundary2-4.63.gt.2 {
14790 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY a DESC
14792 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 1}
14793 do_test boundary2-4.63.gt.3 {
14795 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY r
14797 } {64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14798 do_test boundary2-4.63.gt.4 {
14800 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY r DESC
14802 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64}
14803 do_test boundary2-4.63.gt.5 {
14805 SELECT a FROM t1 WHERE r > -36028797018963969 ORDER BY x
14807 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14808 do_test boundary2-4.63.ge.1 {
14810 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY a
14812 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64}
14813 do_test boundary2-4.63.ge.2 {
14815 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY a DESC
14817 } {64 63 62 61 60 59 58 57 56 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
14818 do_test boundary2-4.63.ge.3 {
14820 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY r
14822 } {2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14823 do_test boundary2-4.63.ge.4 {
14825 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY r DESC
14827 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2}
14828 do_test boundary2-4.63.ge.5 {
14830 SELECT a FROM t1 WHERE r >= -36028797018963969 ORDER BY x
14832 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14833 do_test boundary2-4.63.lt.1 {
14835 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY a
14838 do_test boundary2-4.63.lt.2 {
14840 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY a DESC
14843 do_test boundary2-4.63.lt.3 {
14845 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY r
14848 do_test boundary2-4.63.lt.4 {
14850 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY r DESC
14853 do_test boundary2-4.63.lt.5 {
14855 SELECT a FROM t1 WHERE r < -36028797018963969 ORDER BY x
14858 do_test boundary2-4.63.le.1 {
14860 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY a
14863 do_test boundary2-4.63.le.2 {
14865 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY a DESC
14868 do_test boundary2-4.63.le.3 {
14870 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY r
14873 do_test boundary2-4.63.le.4 {
14875 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY r DESC
14878 do_test boundary2-4.63.le.5 {
14880 SELECT a FROM t1 WHERE r <= -36028797018963969 ORDER BY x
14883 do_test boundary2-4.64.1 {
14885 SELECT * FROM t1 WHERE r=3
14887 } {3 5 0000000000000003}
14888 do_test boundary2-4.64.2 {
14890 SELECT r, a FROM t1 WHERE x='0000000000000003'
14893 do_test boundary2-4.64.3 {
14895 SELECT r, x FROM t1 WHERE a=5
14897 } {3 0000000000000003}
14898 do_test boundary2-4.64.gt.1 {
14900 SELECT a FROM t1 WHERE r > 3 ORDER BY a
14902 } {3 4 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
14903 do_test boundary2-4.64.gt.2 {
14905 SELECT a FROM t1 WHERE r > 3 ORDER BY a DESC
14907 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 4 3}
14908 do_test boundary2-4.64.gt.3 {
14910 SELECT a FROM t1 WHERE r > 3 ORDER BY r
14912 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14913 do_test boundary2-4.64.gt.4 {
14915 SELECT a FROM t1 WHERE r > 3 ORDER BY r DESC
14917 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31}
14918 do_test boundary2-4.64.gt.5 {
14920 SELECT a FROM t1 WHERE r > 3 ORDER BY x
14922 } {31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14923 do_test boundary2-4.64.ge.1 {
14925 SELECT a FROM t1 WHERE r >= 3 ORDER BY a
14927 } {3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 19 20 22 23 24 25 26 27 28 30 31 34 35 36 39 40 42 43 45 46 48 49 50 51 56 57 61 62}
14928 do_test boundary2-4.64.ge.2 {
14930 SELECT a FROM t1 WHERE r >= 3 ORDER BY a DESC
14932 } {62 61 57 56 51 50 49 48 46 45 43 42 40 39 36 35 34 31 30 28 27 26 25 24 23 22 20 19 18 17 16 15 14 13 12 10 9 8 7 6 5 4 3}
14933 do_test boundary2-4.64.ge.3 {
14935 SELECT a FROM t1 WHERE r >= 3 ORDER BY r
14937 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14938 do_test boundary2-4.64.ge.4 {
14940 SELECT a FROM t1 WHERE r >= 3 ORDER BY r DESC
14942 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5}
14943 do_test boundary2-4.64.ge.5 {
14945 SELECT a FROM t1 WHERE r >= 3 ORDER BY x
14947 } {5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
14948 do_test boundary2-4.64.lt.1 {
14950 SELECT a FROM t1 WHERE r < 3 ORDER BY a
14952 } {1 2 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
14953 do_test boundary2-4.64.lt.2 {
14955 SELECT a FROM t1 WHERE r < 3 ORDER BY a DESC
14957 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 2 1}
14958 do_test boundary2-4.64.lt.3 {
14960 SELECT a FROM t1 WHERE r < 3 ORDER BY r
14962 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41}
14963 do_test boundary2-4.64.lt.4 {
14965 SELECT a FROM t1 WHERE r < 3 ORDER BY r DESC
14967 } {41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14968 do_test boundary2-4.64.lt.5 {
14970 SELECT a FROM t1 WHERE r < 3 ORDER BY x
14972 } {59 60 41 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14973 do_test boundary2-4.64.le.1 {
14975 SELECT a FROM t1 WHERE r <= 3 ORDER BY a
14977 } {1 2 5 11 21 29 32 33 37 38 41 44 47 52 53 54 55 58 59 60 63 64}
14978 do_test boundary2-4.64.le.2 {
14980 SELECT a FROM t1 WHERE r <= 3 ORDER BY a DESC
14982 } {64 63 60 59 58 55 54 53 52 47 44 41 38 37 33 32 29 21 11 5 2 1}
14983 do_test boundary2-4.64.le.3 {
14985 SELECT a FROM t1 WHERE r <= 3 ORDER BY r
14987 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5}
14988 do_test boundary2-4.64.le.4 {
14990 SELECT a FROM t1 WHERE r <= 3 ORDER BY r DESC
14992 } {5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
14993 do_test boundary2-4.64.le.5 {
14995 SELECT a FROM t1 WHERE r <= 3 ORDER BY x
14997 } {59 60 41 5 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
14998 do_test boundary2-4.65.gt.1 {
15000 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY a
15003 do_test boundary2-4.65.gt.2 {
15005 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY a DESC
15008 do_test boundary2-4.65.gt.3 {
15010 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY r
15013 do_test boundary2-4.65.gt.4 {
15015 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY r DESC
15018 do_test boundary2-4.65.gt.5 {
15020 SELECT a FROM t1 WHERE r > 9.22337303685477580800e+18 ORDER BY x
15023 do_test boundary2-4.65.ge.1 {
15025 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY a
15028 do_test boundary2-4.65.ge.2 {
15030 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY a DESC
15033 do_test boundary2-4.65.ge.3 {
15035 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY r
15038 do_test boundary2-4.65.ge.4 {
15040 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY r DESC
15043 do_test boundary2-4.65.ge.5 {
15045 SELECT a FROM t1 WHERE r >= 9.22337303685477580800e+18 ORDER BY x
15048 do_test boundary2-4.65.lt.1 {
15050 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY a
15052 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
15053 do_test boundary2-4.65.lt.2 {
15055 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY a DESC
15057 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
15058 do_test boundary2-4.65.lt.3 {
15060 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY r
15062 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
15063 do_test boundary2-4.65.lt.4 {
15065 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY r DESC
15067 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
15068 do_test boundary2-4.65.lt.5 {
15070 SELECT a FROM t1 WHERE r < 9.22337303685477580800e+18 ORDER BY x
15072 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
15073 do_test boundary2-4.65.le.1 {
15075 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY a
15077 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
15078 do_test boundary2-4.65.le.2 {
15080 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY a DESC
15082 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
15083 do_test boundary2-4.65.le.3 {
15085 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY r
15087 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
15088 do_test boundary2-4.65.le.4 {
15090 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY r DESC
15092 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
15093 do_test boundary2-4.65.le.5 {
15095 SELECT a FROM t1 WHERE r <= 9.22337303685477580800e+18 ORDER BY x
15097 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
15098 do_test boundary2-4.66.gt.1 {
15100 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY a
15102 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
15103 do_test boundary2-4.66.gt.2 {
15105 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY a DESC
15107 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
15108 do_test boundary2-4.66.gt.3 {
15110 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY r
15112 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
15113 do_test boundary2-4.66.gt.4 {
15115 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY r DESC
15117 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
15118 do_test boundary2-4.66.gt.5 {
15120 SELECT a FROM t1 WHERE r > -9.22337303685477580800e+18 ORDER BY x
15122 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
15123 do_test boundary2-4.66.ge.1 {
15125 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY a
15127 } {1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64}
15128 do_test boundary2-4.66.ge.2 {
15130 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY a DESC
15132 } {64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1}
15133 do_test boundary2-4.66.ge.3 {
15135 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY r
15137 } {55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38 59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3}
15138 do_test boundary2-4.66.ge.4 {
15140 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY r DESC
15142 } {3 28 17 45 27 43 13 26 10 34 25 56 7 19 57 35 46 22 39 36 14 51 20 40 12 6 9 24 18 42 15 62 48 50 23 16 8 61 30 49 4 31 5 41 60 59 38 33 52 53 54 32 29 37 1 11 47 63 58 44 21 64 2 55}
15143 do_test boundary2-4.66.ge.5 {
15145 SELECT a FROM t1 WHERE r >= -9.22337303685477580800e+18 ORDER BY x
15147 } {59 60 41 5 31 4 49 30 61 8 16 23 50 48 62 15 42 18 24 9 6 12 40 20 51 14 36 39 22 46 35 57 19 7 56 25 34 10 26 13 43 27 45 17 28 3 55 2 64 21 44 58 63 47 11 1 37 29 32 54 53 52 33 38}
15148 do_test boundary2-4.66.lt.1 {
15150 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY a
15153 do_test boundary2-4.66.lt.2 {
15155 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY a DESC
15158 do_test boundary2-4.66.lt.3 {
15160 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY r
15163 do_test boundary2-4.66.lt.4 {
15165 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY r DESC
15168 do_test boundary2-4.66.lt.5 {
15170 SELECT a FROM t1 WHERE r < -9.22337303685477580800e+18 ORDER BY x
15173 do_test boundary2-4.66.le.1 {
15175 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY a
15178 do_test boundary2-4.66.le.2 {
15180 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY a DESC
15183 do_test boundary2-4.66.le.3 {
15185 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY r
15188 do_test boundary2-4.66.le.4 {
15190 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY r DESC
15193 do_test boundary2-4.66.le.5 {
15195 SELECT a FROM t1 WHERE r <= -9.22337303685477580800e+18 ORDER BY x