SQLite4
Artifact Content
Not logged in

Artifact 06a004dde1e402074d168da11e4e79d3e09fbbfd:


# 2008 December 11
#
# The author disclaims copyright to this source code.  In place of
# a legal notice, here is a blessing:
#
#    May you do good and not evil.
#    May you find forgiveness for yourself and forgive others.
#    May you share freely, never taking more than you give.
#
#***********************************************************************
# This file implements regression tests for SQLite library.
#
# This file is automatically generated from a separate TCL script.
# This file seeks to exercise integer boundary values.
#
# $Id: boundary1.tcl,v 1.3 2009/01/02 15:45:48 shane Exp $

set testdir [file dirname $argv0]
source $testdir/tester.tcl

# Many of the boundary tests depend on a working 64-bit implementation.
if {![working_64bit_int]} { finish_test; return }

do_test boundary1-1.1 {
  db eval {
    CREATE TABLE t1(oid INTEGER PRIMARY KEY,a,x);
    INSERT INTO t1(oid,a,x) VALUES(-576460752303423488,1,'fffffffff8000000f800000000000000');
    INSERT INTO t1(oid,a,x) VALUES(576460752303423487,2,'07ffffff7ffffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(9223372036854775807,3,'7fffffff7fffffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(2147483647,4,'000000007fffffff');
    INSERT INTO t1(oid,a,x) VALUES(0,5,'0000000000000000');
    INSERT INTO t1(oid,a,x) VALUES(4398046511103,6,'000003ff3ffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(36028797018963968,7,'0080000080000000000000');
    INSERT INTO t1(oid,a,x) VALUES(1152921504606846975,8,'0ffffffffffffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(36028797018963967,9,'007fffff7fffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(65536,10,'0000000000010000');
    INSERT INTO t1(oid,a,x) VALUES(1,11,'0000000000000001');
    INSERT INTO t1(oid,a,x) VALUES(-140737488355328,12,'ffffffffffff8000ffff800000000000');
    INSERT INTO t1(oid,a,x) VALUES(-128,13,'ffffffffffffffffffffffffffffff80');
    INSERT INTO t1(oid,a,x) VALUES(256,14,'0000000000000100');
    INSERT INTO t1(oid,a,x) VALUES(-3,15,'fffffffffffffffffffffffffffffffd');
    INSERT INTO t1(oid,a,x) VALUES(1152921504606846976,16,'100000001000000000000000');
    INSERT INTO t1(oid,a,x) VALUES(-32769,17,'ffffffffffffffffffffffffffff7fff');
    INSERT INTO t1(oid,a,x) VALUES(1099511627776,18,'0000010010000000000');
    INSERT INTO t1(oid,a,x) VALUES(32767,19,'0000000000007fff');
    INSERT INTO t1(oid,a,x) VALUES(1099511627775,20,'000000ffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(3,21,'0000000000000003');
    INSERT INTO t1(oid,a,x) VALUES(2097152,22,'0000000000200000');
    INSERT INTO t1(oid,a,x) VALUES(2147483648,23,'0000000080000000');
    INSERT INTO t1(oid,a,x) VALUES(72057594037927936,24,'01000000100000000000000');
    INSERT INTO t1(oid,a,x) VALUES(8388607,25,'00000000007fffff');
    INSERT INTO t1(oid,a,x) VALUES(9223372036854775808,26,'ffffffff800000008000000000000000');
    INSERT INTO t1(oid,a,x) VALUES(4294967296,27,'00000001100000000');
    INSERT INTO t1(oid,a,x) VALUES(140737488355327,28,'00007fff7fffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(281474976710656,29,'000100001000000000000');
    INSERT INTO t1(oid,a,x) VALUES(562949953421312,30,'000200002000000000000');
    INSERT INTO t1(oid,a,x) VALUES(-8388609,31,'ffffffffffffffffffffffffff7fffff');
    INSERT INTO t1(oid,a,x) VALUES(281474976710655,32,'0000ffffffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(562949953421311,33,'0001ffff1ffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(-1,34,'ffffffffffffffffffffffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(-549755813888,35,'ffffffffffffff80ffffff8000000000');
    INSERT INTO t1(oid,a,x) VALUES(-2147483648,36,'ffffffffffffffffffffffff80000000');
    INSERT INTO t1(oid,a,x) VALUES(16384,37,'0000000000004000');
    INSERT INTO t1(oid,a,x) VALUES(8388608,38,'0000000000800000');
    INSERT INTO t1(oid,a,x) VALUES(4398046511104,39,'0000040040000000000');
    INSERT INTO t1(oid,a,x) VALUES(-2147483649,40,'ffffffffffffffffffffffff7fffffff');
    INSERT INTO t1(oid,a,x) VALUES(-140737488355329,41,'ffffffffffff7fffffff7fffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(-32768,42,'ffffffffffffffffffffffffffff8000');
    INSERT INTO t1(oid,a,x) VALUES(34359738368,43,'00000008800000000');
    INSERT INTO t1(oid,a,x) VALUES(268435455,44,'000000000fffffff');
    INSERT INTO t1(oid,a,x) VALUES(255,45,'00000000000000ff');
    INSERT INTO t1(oid,a,x) VALUES(2097151,46,'00000000001fffff');
    INSERT INTO t1(oid,a,x) VALUES(140737488355328,47,'00008000800000000000');
    INSERT INTO t1(oid,a,x) VALUES(32768,48,'0000000000008000');
    INSERT INTO t1(oid,a,x) VALUES(72057594037927935,49,'00ffffffffffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(2,50,'0000000000000002');
    INSERT INTO t1(oid,a,x) VALUES(-129,51,'ffffffffffffffffffffffffffffff7f');
    INSERT INTO t1(oid,a,x) VALUES(549755813888,52,'000000808000000000');
    INSERT INTO t1(oid,a,x) VALUES(549755813887,53,'0000007f7fffffffff');
    INSERT INTO t1(oid,a,x) VALUES(4,54,'0000000000000004');
    INSERT INTO t1(oid,a,x) VALUES(-2,55,'fffffffffffffffffffffffffffffffe');
    INSERT INTO t1(oid,a,x) VALUES(128,56,'0000000000000080');
    INSERT INTO t1(oid,a,x) VALUES(576460752303423488,57,'08000000800000000000000');
    INSERT INTO t1(oid,a,x) VALUES(-8388608,58,'ffffffffffffffffffffffffff800000');
    INSERT INTO t1(oid,a,x) VALUES(-36028797018963969,59,'ffffffffff7fffffff7fffffffffffff');
    INSERT INTO t1(oid,a,x) VALUES(34359738367,60,'000000077ffffffff');
    INSERT INTO t1(oid,a,x) VALUES(-549755813889,61,'ffffffffffffff7fffffff7fffffffff');
    INSERT INTO t1(oid,a,x) VALUES(268435456,62,'0000000010000000');
    INSERT INTO t1(oid,a,x) VALUES(16777216,63,'0000000001000000');
    INSERT INTO t1(oid,a,x) VALUES(127,64,'000000000000007f');
    INSERT INTO t1(oid,a,x) VALUES(65535,65,'000000000000ffff');
    INSERT INTO t1(oid,a,x) VALUES(4294967295,66,'00000000ffffffff');
    INSERT INTO t1(oid,a,x) VALUES(-36028797018963968,67,'ffffffffff800000ff80000000000000');
    INSERT INTO t1(oid,a,x) VALUES(16383,68,'0000000000003fff');
    INSERT INTO t1(oid,a,x) VALUES(16777215,69,'0000000000ffffff');
    INSERT INTO t1(oid,a,x) VALUES(-576460752303423489,70,'fffffffff7fffffff7ffffffffffffff');
    CREATE INDEX t1i1 ON t1(a);
    CREATE INDEX t1i2 ON t1(x);
  }
} {}
do_test boundary1-1.2 {
  db eval {
    SELECT count(*) FROM t1
  }
} {70}
do_test boundary1-2.1.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=562949953421312
  }
} {30 000200002000000000000}
do_test boundary1-2.1.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000200002000000000000'
  }
} {562949953421312 30}
do_test boundary1-2.1.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=30
  }
} {562949953421312 000200002000000000000}
do_test boundary1-2.1.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421312 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 49 57}
do_test boundary1-2.1.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421312 ORDER BY a DESC
  }
} {57 49 26 24 16 9 8 7 3 2}
do_test boundary1-2.1.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421312 ORDER BY oid
  }
} {9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.1.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421312 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9}
do_test boundary1-2.1.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421312 ORDER BY x
  }
} {9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.1.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421312 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 30 49 57}
do_test boundary1-2.1.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421312 ORDER BY a DESC
  }
} {57 49 30 26 24 16 9 8 7 3 2}
do_test boundary1-2.1.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421312 ORDER BY oid
  }
} {30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.1.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421312 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30}
do_test boundary1-2.1.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421312 ORDER BY x
  }
} {30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.1.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421312 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.1.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421312 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.1.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421312 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33}
do_test boundary1-2.1.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421312 ORDER BY oid DESC
  }
} {33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.1.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421312 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.1.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421312 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.1.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421312 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.1.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421312 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30}
do_test boundary1-2.1.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421312 ORDER BY oid DESC
  }
} {30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.1.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421312 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.2.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423487 ORDER BY a
  }
} {3 8 16 26 57}
do_test boundary1-2.2.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423487 ORDER BY a DESC
  }
} {57 26 16 8 3}
do_test boundary1-2.2.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423487 ORDER BY oid
  }
} {57 8 16 3 26}
do_test boundary1-2.2.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423487 ORDER BY oid DESC
  }
} {26 3 16 8 57}
do_test boundary1-2.2.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423487 ORDER BY x
  }
} {57 8 16 3 26}
do_test boundary1-2.2.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423487 ORDER BY a
  }
} {2 3 8 16 26 57}
do_test boundary1-2.2.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423487 ORDER BY a DESC
  }
} {57 26 16 8 3 2}
do_test boundary1-2.2.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423487 ORDER BY oid
  }
} {2 57 8 16 3 26}
do_test boundary1-2.2.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423487 ORDER BY oid DESC
  }
} {26 3 16 8 57 2}
do_test boundary1-2.2.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423487 ORDER BY x
  }
} {2 57 8 16 3 26}
do_test boundary1-2.2.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423487 ORDER BY a
  }
} {1 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.2.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423487 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 1}
do_test boundary1-2.2.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423487 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24}
do_test boundary1-2.2.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423487 ORDER BY oid DESC
  }
} {24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.2.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423487 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.2.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423487 ORDER BY a
  }
} {1 2 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.2.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423487 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 2 1}
do_test boundary1-2.2.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423487 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2}
do_test boundary1-2.2.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423487 ORDER BY oid DESC
  }
} {2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.2.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423487 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.3.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=32767
  }
} {19 0000000000007fff}
do_test boundary1-2.3.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000007fff'
  }
} {32767 19}
do_test boundary1-2.3.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=19
  }
} {32767 0000000000007fff}
do_test boundary1-2.3.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.3.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.3.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.3.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767 ORDER BY x
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.0 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.3.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.5 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.3.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.3.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.3.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.3.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767 ORDER BY x
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.0 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.3.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.5 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.3.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.3.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 21 31 34 35 36 37 40 41 42 45 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.3.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 45 42 41 40 37 36 35 34 31 21 17 15 14 13 12 11 5 1}
do_test boundary1-2.3.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.3.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.3.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.3.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.3.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.0 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.3.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.3.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.5 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.3.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.3.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 5 1}
do_test boundary1-2.3.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.3.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.3.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.3.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.3.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.0 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.3.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.3.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.5 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.4.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963969 ORDER BY a
  }
} {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 60 61 62 63 64 65 66 67 68 69}
do_test boundary1-2.4.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963969 ORDER BY a DESC
  }
} {69 68 67 66 65 64 63 62 61 60 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}
do_test boundary1-2.4.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963969 ORDER BY oid
  }
} {67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.4.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963969 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67}
do_test boundary1-2.4.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963969 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.4.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.0 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.4.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.4.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.5 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.4.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32767.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.4.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963969 ORDER BY a
  }
} {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 65 66 67 68 69}
do_test boundary1-2.4.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963969 ORDER BY a DESC
  }
} {69 68 67 66 65 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}
do_test boundary1-2.4.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963969 ORDER BY oid
  }
} {59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.4.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963969 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59}
do_test boundary1-2.4.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963969 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.4.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.0 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.4.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.4.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.5 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.4.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32767.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.4.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963969 ORDER BY a
  }
} {1 70}
do_test boundary1-2.4.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963969 ORDER BY a DESC
  }
} {70 1}
do_test boundary1-2.4.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963969 ORDER BY oid
  }
} {70 1}
do_test boundary1-2.4.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963969 ORDER BY oid DESC
  }
} {1 70}
do_test boundary1-2.4.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963969 ORDER BY x
  }
} {70 1}
do_test boundary1-2.4.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.4.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.0 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.4.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.4.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32767.5 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.4.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963969 ORDER BY a
  }
} {1 59 70}
do_test boundary1-2.4.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963969 ORDER BY a DESC
  }
} {70 59 1}
do_test boundary1-2.4.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963969 ORDER BY oid
  }
} {70 1 59}
do_test boundary1-2.4.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963969 ORDER BY oid DESC
  }
} {59 1 70}
do_test boundary1-2.4.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963969 ORDER BY x
  }
} {70 1 59}
do_test boundary1-2.4.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.4.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.0 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.4.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.4.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32767.5 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.5.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=2147483648
  }
} {23 0000000080000000}
do_test boundary1-2.5.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000080000000'
  }
} {2147483648 23}
do_test boundary1-2.5.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=23
  }
} {2147483648 0000000080000000}
do_test boundary1-2.5.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 66}
do_test boundary1-2.5.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648 ORDER BY a DESC
  }
} {66 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.5.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648 ORDER BY oid
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66}
do_test boundary1-2.5.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648 ORDER BY x
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648.0 ORDER BY oid
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66}
do_test boundary1-2.5.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648.5 ORDER BY oid
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483648.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66}
do_test boundary1-2.5.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 66}
do_test boundary1-2.5.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648 ORDER BY a DESC
  }
} {66 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.5.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648 ORDER BY oid
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23}
do_test boundary1-2.5.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648 ORDER BY x
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648.0 ORDER BY oid
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23}
do_test boundary1-2.5.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648.5 ORDER BY oid
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.5.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483648.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66}
do_test boundary1-2.5.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 67 68 69 70}
do_test boundary1-2.5.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.5.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4}
do_test boundary1-2.5.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648 ORDER BY oid DESC
  }
} {4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.5.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.5.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4}
do_test boundary1-2.5.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648.0 ORDER BY oid DESC
  }
} {4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.5.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23}
do_test boundary1-2.5.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483648.5 ORDER BY oid DESC
  }
} {23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.5.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 67 68 69 70}
do_test boundary1-2.5.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.5.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23}
do_test boundary1-2.5.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648 ORDER BY oid DESC
  }
} {23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.5.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.5.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23}
do_test boundary1-2.5.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648.0 ORDER BY oid DESC
  }
} {23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.5.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23}
do_test boundary1-2.5.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483648.5 ORDER BY oid DESC
  }
} {23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.6.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=34359738368
  }
} {43 00000008800000000}
do_test boundary1-2.6.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00000008800000000'
  }
} {34359738368 43}
do_test boundary1-2.6.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=43
  }
} {34359738368 00000008800000000}
do_test boundary1-2.6.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 47 49 52 53 57}
do_test boundary1-2.6.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368 ORDER BY a DESC
  }
} {57 53 52 49 47 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.6.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368 ORDER BY oid
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53}
do_test boundary1-2.6.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368 ORDER BY x
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368.0 ORDER BY oid
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53}
do_test boundary1-2.6.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368.5 ORDER BY oid
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738368.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53}
do_test boundary1-2.6.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 43 47 49 52 53 57}
do_test boundary1-2.6.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368 ORDER BY a DESC
  }
} {57 53 52 49 47 43 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.6.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368 ORDER BY oid
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43}
do_test boundary1-2.6.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368 ORDER BY x
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368.0 ORDER BY oid
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43}
do_test boundary1-2.6.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368.5 ORDER BY oid
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.6.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738368.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53}
do_test boundary1-2.6.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.6.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.6.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60}
do_test boundary1-2.6.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368 ORDER BY oid DESC
  }
} {60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.6.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.6.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60}
do_test boundary1-2.6.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368.0 ORDER BY oid DESC
  }
} {60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.6.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43}
do_test boundary1-2.6.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738368.5 ORDER BY oid DESC
  }
} {43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.6.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.6.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.6.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43}
do_test boundary1-2.6.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368 ORDER BY oid DESC
  }
} {43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.6.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.6.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43}
do_test boundary1-2.6.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368.0 ORDER BY oid DESC
  }
} {43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.6.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43}
do_test boundary1-2.6.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738368.5 ORDER BY oid DESC
  }
} {43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.7.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=140737488355327
  }
} {28 00007fff7fffffffffff}
do_test boundary1-2.7.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00007fff7fffffffffff'
  }
} {140737488355327 28}
do_test boundary1-2.7.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=28
  }
} {140737488355327 00007fff7fffffffffff}
do_test boundary1-2.7.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355327 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 29 30 32 33 47 49 57}
do_test boundary1-2.7.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355327 ORDER BY a DESC
  }
} {57 49 47 33 32 30 29 26 24 16 9 8 7 3 2}
do_test boundary1-2.7.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355327 ORDER BY oid
  }
} {47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.7.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355327 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47}
do_test boundary1-2.7.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355327 ORDER BY x
  }
} {47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.7.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355327 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 28 29 30 32 33 47 49 57}
do_test boundary1-2.7.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355327 ORDER BY a DESC
  }
} {57 49 47 33 32 30 29 28 26 24 16 9 8 7 3 2}
do_test boundary1-2.7.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355327 ORDER BY oid
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.7.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355327 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28}
do_test boundary1-2.7.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355327 ORDER BY x
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.7.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355327 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 31 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.7.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355327 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 39 38 37 36 35 34 31 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.7.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355327 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39}
do_test boundary1-2.7.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355327 ORDER BY oid DESC
  }
} {39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.7.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355327 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.7.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355327 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 31 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.7.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355327 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 39 38 37 36 35 34 31 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.7.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355327 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28}
do_test boundary1-2.7.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355327 ORDER BY oid DESC
  }
} {28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.7.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355327 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.8.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=255
  }
} {45 00000000000000ff}
do_test boundary1-2.8.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00000000000000ff'
  }
} {255 45}
do_test boundary1-2.8.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=45
  }
} {255 00000000000000ff}
do_test boundary1-2.8.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 68 69}
do_test boundary1-2.8.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.8.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.8.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255 ORDER BY x
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255.0 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.8.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255.5 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 255.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.8.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 57 60 62 63 65 66 68 69}
do_test boundary1-2.8.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.8.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255 ORDER BY oid
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45}
do_test boundary1-2.8.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255 ORDER BY x
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255.0 ORDER BY oid
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45}
do_test boundary1-2.8.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255.5 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.8.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 255.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.8.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 54 55 56 58 59 61 64 67 70}
do_test boundary1-2.8.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255 ORDER BY a DESC
  }
} {70 67 64 61 59 58 56 55 54 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.8.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56}
do_test boundary1-2.8.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255 ORDER BY oid DESC
  }
} {56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.8.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255 ORDER BY x
  }
} {5 11 50 21 54 64 56 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.8.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56}
do_test boundary1-2.8.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255.0 ORDER BY oid DESC
  }
} {56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.8.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.8.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 255.5 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.8.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 45 50 51 54 55 56 58 59 61 64 67 70}
do_test boundary1-2.8.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255 ORDER BY a DESC
  }
} {70 67 64 61 59 58 56 55 54 51 50 45 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.8.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.8.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.8.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.8.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.8.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255.0 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.8.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.8.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 255.5 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.9.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-1
  }
} {34 ffffffffffffffffffffffffffffffff}
do_test boundary1-2.9.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffffffffff'
  }
} {-1 34}
do_test boundary1-2.9.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=34
  }
} {-1 ffffffffffffffffffffffffffffffff}
do_test boundary1-2.9.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.9.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.9.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1 ORDER BY oid
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5}
do_test boundary1-2.9.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1.0 ORDER BY oid
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5}
do_test boundary1-2.9.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1.5 ORDER BY oid
  }
} {34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -1.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34}
do_test boundary1-2.9.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.9.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.9.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1 ORDER BY oid
  }
} {34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34}
do_test boundary1-2.9.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 34}
do_test boundary1-2.9.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1.0 ORDER BY oid
  }
} {34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34}
do_test boundary1-2.9.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1.5 ORDER BY oid
  }
} {34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.9.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -1.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34}
do_test boundary1-2.9.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1 ORDER BY a
  }
} {1 12 13 15 17 31 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.9.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 31 17 15 13 12 1}
do_test boundary1-2.9.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.9.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1 ORDER BY oid DESC
  }
} {55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.9.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.9.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.9.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1.0 ORDER BY oid DESC
  }
} {55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.9.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.9.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -1.5 ORDER BY oid DESC
  }
} {55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.9.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1 ORDER BY a
  }
} {1 12 13 15 17 31 34 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.9.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 34 31 17 15 13 12 1}
do_test boundary1-2.9.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.9.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1 ORDER BY oid DESC
  }
} {34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.9.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.9.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.9.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1.0 ORDER BY oid DESC
  }
} {34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.9.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.9.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -1.5 ORDER BY oid DESC
  }
} {55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.10.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=562949953421311
  }
} {33 0001ffff1ffffffffffff}
do_test boundary1-2.10.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0001ffff1ffffffffffff'
  }
} {562949953421311 33}
do_test boundary1-2.10.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=33
  }
} {562949953421311 0001ffff1ffffffffffff}
do_test boundary1-2.10.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421311 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 30 49 57}
do_test boundary1-2.10.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421311 ORDER BY a DESC
  }
} {57 49 30 26 24 16 9 8 7 3 2}
do_test boundary1-2.10.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421311 ORDER BY oid
  }
} {30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.10.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421311 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30}
do_test boundary1-2.10.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 562949953421311 ORDER BY x
  }
} {30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.10.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421311 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 30 33 49 57}
do_test boundary1-2.10.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421311 ORDER BY a DESC
  }
} {57 49 33 30 26 24 16 9 8 7 3 2}
do_test boundary1-2.10.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421311 ORDER BY oid
  }
} {33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.10.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421311 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33}
do_test boundary1-2.10.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 562949953421311 ORDER BY x
  }
} {33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.10.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421311 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.10.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421311 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 32 31 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.10.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421311 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29}
do_test boundary1-2.10.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421311 ORDER BY oid DESC
  }
} {29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.10.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 562949953421311 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.10.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421311 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.10.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421311 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.10.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421311 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33}
do_test boundary1-2.10.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421311 ORDER BY oid DESC
  }
} {33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.10.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 562949953421311 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.11.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=65536
  }
} {10 0000000000010000}
do_test boundary1-2.11.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000010000'
  }
} {65536 10}
do_test boundary1-2.11.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=10
  }
} {65536 0000000000010000}
do_test boundary1-2.11.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.11.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.11.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.11.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536 ORDER BY x
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536.0 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.11.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536.5 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65536.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.11.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.11.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.11.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536 ORDER BY oid
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10}
do_test boundary1-2.11.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536 ORDER BY x
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536.0 ORDER BY oid
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10}
do_test boundary1-2.11.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536.5 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.11.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65536.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.11.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.11.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 5 1}
do_test boundary1-2.11.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65}
do_test boundary1-2.11.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536 ORDER BY oid DESC
  }
} {65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.11.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.11.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65}
do_test boundary1-2.11.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536.0 ORDER BY oid DESC
  }
} {65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.11.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.11.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65536.5 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.11.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.11.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.11.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.11.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.11.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.11.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.11.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536.0 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.11.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.11.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65536.5 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.12.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-2147483649
  }
} {40 ffffffffffffffffffffffff7fffffff}
do_test boundary1-2.12.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffff7fffffff'
  }
} {-2147483649 40}
do_test boundary1-2.12.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=40
  }
} {-2147483649 ffffffffffffffffffffffff7fffffff}
do_test boundary1-2.12.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.12.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 36 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.12.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649 ORDER BY oid
  }
} {36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.12.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36}
do_test boundary1-2.12.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.12.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649.0 ORDER BY oid
  }
} {36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.12.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36}
do_test boundary1-2.12.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649.5 ORDER BY oid
  }
} {40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.12.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483649.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40}
do_test boundary1-2.12.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.12.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 40 39 38 37 36 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.12.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649 ORDER BY oid
  }
} {40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.12.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40}
do_test boundary1-2.12.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.12.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649.0 ORDER BY oid
  }
} {40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.12.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40}
do_test boundary1-2.12.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649.5 ORDER BY oid
  }
} {40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.12.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483649.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40}
do_test boundary1-2.12.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649 ORDER BY a
  }
} {1 12 35 41 59 61 67 70}
do_test boundary1-2.12.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649 ORDER BY a DESC
  }
} {70 67 61 59 41 35 12 1}
do_test boundary1-2.12.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.12.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649 ORDER BY oid DESC
  }
} {35 61 12 41 67 59 1 70}
do_test boundary1-2.12.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649 ORDER BY x
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.12.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.12.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649.0 ORDER BY oid DESC
  }
} {35 61 12 41 67 59 1 70}
do_test boundary1-2.12.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.12.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483649.5 ORDER BY oid DESC
  }
} {35 61 12 41 67 59 1 70}
do_test boundary1-2.12.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649 ORDER BY a
  }
} {1 12 35 40 41 59 61 67 70}
do_test boundary1-2.12.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649 ORDER BY a DESC
  }
} {70 67 61 59 41 40 35 12 1}
do_test boundary1-2.12.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.12.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649 ORDER BY oid DESC
  }
} {40 35 61 12 41 67 59 1 70}
do_test boundary1-2.12.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.12.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.12.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649.0 ORDER BY oid DESC
  }
} {40 35 61 12 41 67 59 1 70}
do_test boundary1-2.12.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.12.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483649.5 ORDER BY oid DESC
  }
} {35 61 12 41 67 59 1 70}
do_test boundary1-2.13.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-8388608
  }
} {58 ffffffffffffffffffffffffff800000}
do_test boundary1-2.13.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffff800000'
  }
} {-8388608 58}
do_test boundary1-2.13.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=58
  }
} {-8388608 ffffffffffffffffffffffffff800000}
do_test boundary1-2.13.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.13.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.13.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.13.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.13.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 17 42 51 13 15 55 34}
do_test boundary1-2.13.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.0 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.13.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.13.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.5 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.13.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.13.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.13.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.13.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.13.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.13.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 58 17 42 51 13 15 55 34}
do_test boundary1-2.13.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.0 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.13.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.13.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.5 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.13.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.13.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608 ORDER BY a
  }
} {1 12 31 35 36 40 41 59 61 67 70}
do_test boundary1-2.13.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608 ORDER BY a DESC
  }
} {70 67 61 59 41 40 36 35 31 12 1}
do_test boundary1-2.13.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.13.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.13.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.13.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.13.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.0 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.13.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.13.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.5 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.13.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608 ORDER BY a
  }
} {1 12 31 35 36 40 41 58 59 61 67 70}
do_test boundary1-2.13.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608 ORDER BY a DESC
  }
} {70 67 61 59 58 41 40 36 35 31 12 1}
do_test boundary1-2.13.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.13.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.13.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.13.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.13.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.0 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.13.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.13.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.5 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.14.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423489 ORDER BY a
  }
} {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 65 66 67 68 69}
do_test boundary1-2.14.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423489 ORDER BY a DESC
  }
} {69 68 67 66 65 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}
do_test boundary1-2.14.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423489 ORDER BY oid
  }
} {1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.14.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423489 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1}
do_test boundary1-2.14.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423489 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.14.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.0 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.14.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.14.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.5 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.14.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388608.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.14.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423489 ORDER BY a
  }
} {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 65 66 67 68 69 70}
do_test boundary1-2.14.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423489 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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}
do_test boundary1-2.14.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423489 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.14.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423489 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.14.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423489 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.14.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.0 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.14.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.14.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.5 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.14.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388608.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.14.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423489 ORDER BY a
  }
} {}
do_test boundary1-2.14.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423489 ORDER BY a DESC
  }
} {}
do_test boundary1-2.14.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423489 ORDER BY oid
  }
} {}
do_test boundary1-2.14.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423489 ORDER BY oid DESC
  }
} {}
do_test boundary1-2.14.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423489 ORDER BY x
  }
} {}
do_test boundary1-2.14.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.14.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.0 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.14.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.14.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388608.5 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.14.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423489 ORDER BY a
  }
} {70}
do_test boundary1-2.14.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423489 ORDER BY a DESC
  }
} {70}
do_test boundary1-2.14.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423489 ORDER BY oid
  }
} {70}
do_test boundary1-2.14.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423489 ORDER BY oid DESC
  }
} {70}
do_test boundary1-2.14.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423489 ORDER BY x
  }
} {70}
do_test boundary1-2.14.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.14.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.0 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.14.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.14.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388608.5 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.15.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=4
  }
} {54 0000000000000004}
do_test boundary1-2.15.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000004'
  }
} {4 54}
do_test boundary1-2.15.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=54
  }
} {4 0000000000000004}
do_test boundary1-2.15.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.15.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.15.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4 ORDER BY oid
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64}
do_test boundary1-2.15.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4 ORDER BY x
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4.0 ORDER BY oid
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64}
do_test boundary1-2.15.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4.5 ORDER BY oid
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64}
do_test boundary1-2.15.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.15.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.15.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4 ORDER BY oid
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54}
do_test boundary1-2.15.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4 ORDER BY x
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4.0 ORDER BY oid
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54}
do_test boundary1-2.15.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4.5 ORDER BY oid
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.15.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64}
do_test boundary1-2.15.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 55 58 59 61 67 70}
do_test boundary1-2.15.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.15.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21}
do_test boundary1-2.15.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4 ORDER BY oid DESC
  }
} {21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.15.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4 ORDER BY x
  }
} {5 11 50 21 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.15.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21}
do_test boundary1-2.15.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4.0 ORDER BY oid DESC
  }
} {21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.15.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54}
do_test boundary1-2.15.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4.5 ORDER BY oid DESC
  }
} {54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.15.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 54 55 58 59 61 67 70}
do_test boundary1-2.15.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4 ORDER BY a DESC
  }
} {70 67 61 59 58 55 54 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.15.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54}
do_test boundary1-2.15.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4 ORDER BY oid DESC
  }
} {54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.15.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4 ORDER BY x
  }
} {5 11 50 21 54 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.15.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54}
do_test boundary1-2.15.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4.0 ORDER BY oid DESC
  }
} {54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.15.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54}
do_test boundary1-2.15.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4.5 ORDER BY oid DESC
  }
} {54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.16.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-36028797018963968
  }
} {67 ffffffffff800000ff80000000000000}
do_test boundary1-2.16.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffff800000ff80000000000000'
  }
} {-36028797018963968 67}
do_test boundary1-2.16.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=67
  }
} {-36028797018963968 ffffffffff800000ff80000000000000}
do_test boundary1-2.16.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963968 ORDER BY a
  }
} {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 60 61 62 63 64 65 66 68 69}
do_test boundary1-2.16.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963968 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 61 60 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}
do_test boundary1-2.16.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963968 ORDER BY oid
  }
} {41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.16.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963968 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41}
do_test boundary1-2.16.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -36028797018963968 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.16.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963968 ORDER BY a
  }
} {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 60 61 62 63 64 65 66 67 68 69}
do_test boundary1-2.16.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963968 ORDER BY a DESC
  }
} {69 68 67 66 65 64 63 62 61 60 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}
do_test boundary1-2.16.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963968 ORDER BY oid
  }
} {67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.16.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963968 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67}
do_test boundary1-2.16.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -36028797018963968 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.16.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963968 ORDER BY a
  }
} {1 59 70}
do_test boundary1-2.16.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963968 ORDER BY a DESC
  }
} {70 59 1}
do_test boundary1-2.16.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963968 ORDER BY oid
  }
} {70 1 59}
do_test boundary1-2.16.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963968 ORDER BY oid DESC
  }
} {59 1 70}
do_test boundary1-2.16.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -36028797018963968 ORDER BY x
  }
} {70 1 59}
do_test boundary1-2.16.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963968 ORDER BY a
  }
} {1 59 67 70}
do_test boundary1-2.16.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963968 ORDER BY a DESC
  }
} {70 67 59 1}
do_test boundary1-2.16.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963968 ORDER BY oid
  }
} {70 1 59 67}
do_test boundary1-2.16.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963968 ORDER BY oid DESC
  }
} {67 59 1 70}
do_test boundary1-2.16.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -36028797018963968 ORDER BY x
  }
} {70 1 59 67}
do_test boundary1-2.17.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-2
  }
} {55 fffffffffffffffffffffffffffffffe}
do_test boundary1-2.17.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='fffffffffffffffffffffffffffffffe'
  }
} {-2 55}
do_test boundary1-2.17.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=55
  }
} {-2 fffffffffffffffffffffffffffffffe}
do_test boundary1-2.17.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.17.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.17.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2 ORDER BY oid
  }
} {34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.17.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34}
do_test boundary1-2.17.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 34}
do_test boundary1-2.17.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2.0 ORDER BY oid
  }
} {34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.17.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34}
do_test boundary1-2.17.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2.5 ORDER BY oid
  }
} {55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.17.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55}
do_test boundary1-2.17.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.17.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.17.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2 ORDER BY oid
  }
} {55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.17.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55}
do_test boundary1-2.17.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 55 34}
do_test boundary1-2.17.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2.0 ORDER BY oid
  }
} {55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.17.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55}
do_test boundary1-2.17.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2.5 ORDER BY oid
  }
} {55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.17.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55}
do_test boundary1-2.17.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2 ORDER BY a
  }
} {1 12 13 15 17 31 35 36 40 41 42 51 58 59 61 67 70}
do_test boundary1-2.17.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2 ORDER BY a DESC
  }
} {70 67 61 59 58 51 42 41 40 36 35 31 17 15 13 12 1}
do_test boundary1-2.17.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.17.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2 ORDER BY oid DESC
  }
} {15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.17.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.17.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.17.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2.0 ORDER BY oid DESC
  }
} {15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.17.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.17.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2.5 ORDER BY oid DESC
  }
} {15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.17.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2 ORDER BY a
  }
} {1 12 13 15 17 31 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.17.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 31 17 15 13 12 1}
do_test boundary1-2.17.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.17.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2 ORDER BY oid DESC
  }
} {55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.17.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.17.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55}
do_test boundary1-2.17.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2.0 ORDER BY oid DESC
  }
} {55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.17.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.17.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2.5 ORDER BY oid DESC
  }
} {15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.18.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=16777216
  }
} {63 0000000001000000}
do_test boundary1-2.18.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000001000000'
  }
} {16777216 63}
do_test boundary1-2.18.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=63
  }
} {16777216 0000000001000000}
do_test boundary1-2.18.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 44 47 49 52 53 57 60 62 66}
do_test boundary1-2.18.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216 ORDER BY a DESC
  }
} {66 62 60 57 53 52 49 47 44 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.18.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216 ORDER BY oid
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44}
do_test boundary1-2.18.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216 ORDER BY x
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216.0 ORDER BY oid
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44}
do_test boundary1-2.18.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216.5 ORDER BY oid
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777216.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44}
do_test boundary1-2.18.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 44 47 49 52 53 57 60 62 63 66}
do_test boundary1-2.18.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216 ORDER BY a DESC
  }
} {66 63 62 60 57 53 52 49 47 44 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.18.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216 ORDER BY oid
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63}
do_test boundary1-2.18.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216 ORDER BY x
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216.0 ORDER BY oid
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63}
do_test boundary1-2.18.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216.5 ORDER BY oid
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.18.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777216.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44}
do_test boundary1-2.18.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 69 70}
do_test boundary1-2.18.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216 ORDER BY a DESC
  }
} {70 69 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.18.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69}
do_test boundary1-2.18.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216 ORDER BY oid DESC
  }
} {69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.18.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.18.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69}
do_test boundary1-2.18.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216.0 ORDER BY oid DESC
  }
} {69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.18.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63}
do_test boundary1-2.18.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777216.5 ORDER BY oid DESC
  }
} {63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.18.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 45 46 48 50 51 54 55 56 58 59 61 63 64 65 67 68 69 70}
do_test boundary1-2.18.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 61 59 58 56 55 54 51 50 48 46 45 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.18.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63}
do_test boundary1-2.18.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216 ORDER BY oid DESC
  }
} {63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.18.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.18.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63}
do_test boundary1-2.18.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216.0 ORDER BY oid DESC
  }
} {63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.18.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63}
do_test boundary1-2.18.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777216.5 ORDER BY oid DESC
  }
} {63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.19.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=2097151
  }
} {46 00000000001fffff}
do_test boundary1-2.19.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00000000001fffff'
  }
} {2097151 46}
do_test boundary1-2.19.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=46
  }
} {2097151 00000000001fffff}
do_test boundary1-2.19.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.19.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.19.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.19.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151 ORDER BY x
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.0 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.19.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.5 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.19.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.19.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.19.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.19.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151 ORDER BY x
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.0 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.19.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.5 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.19.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.19.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.19.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.19.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.19.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.19.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.19.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.19.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.0 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.19.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.19.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.5 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.19.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.19.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.19.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.19.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.19.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.19.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.19.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.0 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.19.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.19.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.5 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.20.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927935 ORDER BY a
  }
} {2 3 8 16 24 26 57}
do_test boundary1-2.20.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927935 ORDER BY a DESC
  }
} {57 26 24 16 8 3 2}
do_test boundary1-2.20.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927935 ORDER BY oid
  }
} {24 2 57 8 16 3 26}
do_test boundary1-2.20.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927935 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24}
do_test boundary1-2.20.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927935 ORDER BY x
  }
} {24 2 57 8 16 3 26}
do_test boundary1-2.20.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.0 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.20.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.20.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.5 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.20.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097151.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.20.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927935 ORDER BY a
  }
} {2 3 8 16 24 26 49 57}
do_test boundary1-2.20.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927935 ORDER BY a DESC
  }
} {57 49 26 24 16 8 3 2}
do_test boundary1-2.20.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927935 ORDER BY oid
  }
} {49 24 2 57 8 16 3 26}
do_test boundary1-2.20.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927935 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49}
do_test boundary1-2.20.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927935 ORDER BY x
  }
} {49 24 2 57 8 16 3 26}
do_test boundary1-2.20.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.0 ORDER BY oid
  }
} {46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.20.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46}
do_test boundary1-2.20.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.5 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.20.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097151.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.20.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927935 ORDER BY a
  }
} {1 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.20.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927935 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 1}
do_test boundary1-2.20.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927935 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7}
do_test boundary1-2.20.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927935 ORDER BY oid DESC
  }
} {7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.20.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927935 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.20.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10}
do_test boundary1-2.20.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.0 ORDER BY oid DESC
  }
} {10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.20.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.20.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097151.5 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.20.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927935 ORDER BY a
  }
} {1 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 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 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.20.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927935 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 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 25 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 1}
do_test boundary1-2.20.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927935 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49}
do_test boundary1-2.20.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927935 ORDER BY oid DESC
  }
} {49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.20.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927935 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.20.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.20.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.0 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.20.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.20.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097151.5 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.21.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=268435456
  }
} {62 0000000010000000}
do_test boundary1-2.21.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000010000000'
  }
} {268435456 62}
do_test boundary1-2.21.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=62
  }
} {268435456 0000000010000000}
do_test boundary1-2.21.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 66}
do_test boundary1-2.21.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456 ORDER BY a DESC
  }
} {66 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.21.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456 ORDER BY oid
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4}
do_test boundary1-2.21.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456 ORDER BY x
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456.0 ORDER BY oid
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4}
do_test boundary1-2.21.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456.5 ORDER BY oid
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435456.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4}
do_test boundary1-2.21.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 62 66}
do_test boundary1-2.21.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456 ORDER BY a DESC
  }
} {66 62 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.21.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456 ORDER BY oid
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62}
do_test boundary1-2.21.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456 ORDER BY x
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456.0 ORDER BY oid
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62}
do_test boundary1-2.21.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456.5 ORDER BY oid
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.21.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435456.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4}
do_test boundary1-2.21.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 63 64 65 67 68 69 70}
do_test boundary1-2.21.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.21.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44}
do_test boundary1-2.21.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456 ORDER BY oid DESC
  }
} {44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.21.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.21.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44}
do_test boundary1-2.21.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456.0 ORDER BY oid DESC
  }
} {44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.21.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62}
do_test boundary1-2.21.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435456.5 ORDER BY oid DESC
  }
} {62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.21.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 67 68 69 70}
do_test boundary1-2.21.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.21.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62}
do_test boundary1-2.21.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456 ORDER BY oid DESC
  }
} {62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.21.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.21.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62}
do_test boundary1-2.21.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456.0 ORDER BY oid DESC
  }
} {62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.21.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62}
do_test boundary1-2.21.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435456.5 ORDER BY oid DESC
  }
} {62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.22.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-8388609
  }
} {31 ffffffffffffffffffffffffff7fffff}
do_test boundary1-2.22.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffff7fffff'
  }
} {-8388609 31}
do_test boundary1-2.22.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=31
  }
} {-8388609 ffffffffffffffffffffffffff7fffff}
do_test boundary1-2.22.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.22.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.22.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.22.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.22.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 58 17 42 51 13 15 55 34}
do_test boundary1-2.22.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609.0 ORDER BY oid
  }
} {58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.22.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58}
do_test boundary1-2.22.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609.5 ORDER BY oid
  }
} {31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.22.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -8388609.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31}
do_test boundary1-2.22.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.22.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.22.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609 ORDER BY oid
  }
} {31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.22.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31}
do_test boundary1-2.22.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.22.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609.0 ORDER BY oid
  }
} {31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.22.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31}
do_test boundary1-2.22.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609.5 ORDER BY oid
  }
} {31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.22.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -8388609.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31}
do_test boundary1-2.22.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609 ORDER BY a
  }
} {1 12 35 36 40 41 59 61 67 70}
do_test boundary1-2.22.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609 ORDER BY a DESC
  }
} {70 67 61 59 41 40 36 35 12 1}
do_test boundary1-2.22.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.22.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609 ORDER BY oid DESC
  }
} {36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.22.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.22.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.22.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609.0 ORDER BY oid DESC
  }
} {36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.22.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.22.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -8388609.5 ORDER BY oid DESC
  }
} {36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.22.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609 ORDER BY a
  }
} {1 12 31 35 36 40 41 59 61 67 70}
do_test boundary1-2.22.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609 ORDER BY a DESC
  }
} {70 67 61 59 41 40 36 35 31 12 1}
do_test boundary1-2.22.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.22.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.22.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.22.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31}
do_test boundary1-2.22.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609.0 ORDER BY oid DESC
  }
} {31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.22.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.22.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -8388609.5 ORDER BY oid DESC
  }
} {36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.23.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=127
  }
} {64 000000000000007f}
do_test boundary1-2.23.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000000000007f'
  }
} {127 64}
do_test boundary1-2.23.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=64
  }
} {127 000000000000007f}
do_test boundary1-2.23.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 56 57 60 62 63 65 66 68 69}
do_test boundary1-2.23.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 56 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.23.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127 ORDER BY oid
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56}
do_test boundary1-2.23.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127 ORDER BY x
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127.0 ORDER BY oid
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56}
do_test boundary1-2.23.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127.5 ORDER BY oid
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 127.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56}
do_test boundary1-2.23.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.23.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.23.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127 ORDER BY oid
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64}
do_test boundary1-2.23.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127 ORDER BY x
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127.0 ORDER BY oid
  }
} {64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64}
do_test boundary1-2.23.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127.5 ORDER BY oid
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.23.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 127.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56}
do_test boundary1-2.23.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 54 55 58 59 61 67 70}
do_test boundary1-2.23.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127 ORDER BY a DESC
  }
} {70 67 61 59 58 55 54 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.23.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54}
do_test boundary1-2.23.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127 ORDER BY oid DESC
  }
} {54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.23.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127 ORDER BY x
  }
} {5 11 50 21 54 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.23.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54}
do_test boundary1-2.23.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127.0 ORDER BY oid DESC
  }
} {54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.23.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64}
do_test boundary1-2.23.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 127.5 ORDER BY oid DESC
  }
} {64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.23.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 54 55 58 59 61 64 67 70}
do_test boundary1-2.23.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127 ORDER BY a DESC
  }
} {70 67 64 61 59 58 55 54 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.23.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64}
do_test boundary1-2.23.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127 ORDER BY oid DESC
  }
} {64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.23.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127 ORDER BY x
  }
} {5 11 50 21 54 64 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.23.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64}
do_test boundary1-2.23.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127.0 ORDER BY oid DESC
  }
} {64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.23.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64}
do_test boundary1-2.23.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 127.5 ORDER BY oid DESC
  }
} {64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.24.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=1152921504606846976
  }
} {16 100000001000000000000000}
do_test boundary1-2.24.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='100000001000000000000000'
  }
} {1152921504606846976 16}
do_test boundary1-2.24.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=16
  }
} {1152921504606846976 100000001000000000000000}
do_test boundary1-2.24.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846976 ORDER BY a
  }
} {3 26}
do_test boundary1-2.24.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846976 ORDER BY a DESC
  }
} {26 3}
do_test boundary1-2.24.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846976 ORDER BY oid
  }
} {3 26}
do_test boundary1-2.24.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846976 ORDER BY oid DESC
  }
} {26 3}
do_test boundary1-2.24.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846976 ORDER BY x
  }
} {3 26}
do_test boundary1-2.24.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846976 ORDER BY a
  }
} {3 16 26}
do_test boundary1-2.24.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846976 ORDER BY a DESC
  }
} {26 16 3}
do_test boundary1-2.24.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846976 ORDER BY oid
  }
} {16 3 26}
do_test boundary1-2.24.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846976 ORDER BY oid DESC
  }
} {26 3 16}
do_test boundary1-2.24.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846976 ORDER BY x
  }
} {16 3 26}
do_test boundary1-2.24.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846976 ORDER BY a
  }
} {1 2 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 65 66 67 68 69 70}
do_test boundary1-2.24.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846976 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
do_test boundary1-2.24.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846976 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8}
do_test boundary1-2.24.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846976 ORDER BY oid DESC
  }
} {8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.24.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846976 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.24.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846976 ORDER BY a
  }
} {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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 65 66 67 68 69 70}
do_test boundary1-2.24.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846976 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
do_test boundary1-2.24.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846976 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16}
do_test boundary1-2.24.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846976 ORDER BY oid DESC
  }
} {16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.24.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846976 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.25.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-3
  }
} {15 fffffffffffffffffffffffffffffffd}
do_test boundary1-2.25.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='fffffffffffffffffffffffffffffffd'
  }
} {-3 15}
do_test boundary1-2.25.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=15
  }
} {-3 fffffffffffffffffffffffffffffffd}
do_test boundary1-2.25.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.25.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.25.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3 ORDER BY oid
  }
} {55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.25.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55}
do_test boundary1-2.25.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 55 34}
do_test boundary1-2.25.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3.0 ORDER BY oid
  }
} {55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.25.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55}
do_test boundary1-2.25.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3.5 ORDER BY oid
  }
} {15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.25.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -3.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15}
do_test boundary1-2.25.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.25.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.25.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3 ORDER BY oid
  }
} {15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.25.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15}
do_test boundary1-2.25.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 15 55 34}
do_test boundary1-2.25.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3.0 ORDER BY oid
  }
} {15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.25.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15}
do_test boundary1-2.25.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3.5 ORDER BY oid
  }
} {15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.25.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -3.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15}
do_test boundary1-2.25.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3 ORDER BY a
  }
} {1 12 13 17 31 35 36 40 41 42 51 58 59 61 67 70}
do_test boundary1-2.25.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3 ORDER BY a DESC
  }
} {70 67 61 59 58 51 42 41 40 36 35 31 17 13 12 1}
do_test boundary1-2.25.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.25.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3 ORDER BY oid DESC
  }
} {13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.25.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.25.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.25.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3.0 ORDER BY oid DESC
  }
} {13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.25.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.25.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -3.5 ORDER BY oid DESC
  }
} {13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.25.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3 ORDER BY a
  }
} {1 12 13 15 17 31 35 36 40 41 42 51 58 59 61 67 70}
do_test boundary1-2.25.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3 ORDER BY a DESC
  }
} {70 67 61 59 58 51 42 41 40 36 35 31 17 15 13 12 1}
do_test boundary1-2.25.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.25.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3 ORDER BY oid DESC
  }
} {15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.25.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.25.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15}
do_test boundary1-2.25.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3.0 ORDER BY oid DESC
  }
} {15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.25.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.25.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -3.5 ORDER BY oid DESC
  }
} {13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.26.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=2097152
  }
} {22 0000000000200000}
do_test boundary1-2.26.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000200000'
  }
} {2097152 22}
do_test boundary1-2.26.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=22
  }
} {2097152 0000000000200000}
do_test boundary1-2.26.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 25 26 27 28 29 30 32 33 38 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.26.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 38 33 32 30 29 28 27 26 25 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.26.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152 ORDER BY oid
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25}
do_test boundary1-2.26.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152 ORDER BY x
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152.0 ORDER BY oid
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25}
do_test boundary1-2.26.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152.5 ORDER BY oid
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2097152.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25}
do_test boundary1-2.26.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.26.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.26.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.26.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152 ORDER BY x
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152.0 ORDER BY oid
  }
} {22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22}
do_test boundary1-2.26.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152.5 ORDER BY oid
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.26.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2097152.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25}
do_test boundary1-2.26.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.26.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.26.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.26.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.26.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.26.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46}
do_test boundary1-2.26.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152.0 ORDER BY oid DESC
  }
} {46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.26.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22}
do_test boundary1-2.26.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2097152.5 ORDER BY oid DESC
  }
} {22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.26.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 31 34 35 36 37 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.26.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 37 36 35 34 31 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.26.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22}
do_test boundary1-2.26.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152 ORDER BY oid DESC
  }
} {22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.26.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.26.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22}
do_test boundary1-2.26.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152.0 ORDER BY oid DESC
  }
} {22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.26.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22}
do_test boundary1-2.26.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2097152.5 ORDER BY oid DESC
  }
} {22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.27.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=1
  }
} {11 0000000000000001}
do_test boundary1-2.27.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000001'
  }
} {1 11}
do_test boundary1-2.27.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=11
  }
} {1 0000000000000001}
do_test boundary1-2.27.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.27.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.27.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.27.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1 ORDER BY x
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1.0 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.27.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1.5 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.27.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.27.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 4 3 2}
do_test boundary1-2.27.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1 ORDER BY oid
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11}
do_test boundary1-2.27.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1 ORDER BY x
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1.0 ORDER BY oid
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11}
do_test boundary1-2.27.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1.5 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.27.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.27.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1 ORDER BY a
  }
} {1 5 12 13 15 17 31 34 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.27.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 34 31 17 15 13 12 5 1}
do_test boundary1-2.27.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5}
do_test boundary1-2.27.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1 ORDER BY oid DESC
  }
} {5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.27.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1 ORDER BY x
  }
} {5 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.27.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5}
do_test boundary1-2.27.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1.0 ORDER BY oid DESC
  }
} {5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.27.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.27.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1.5 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.27.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1 ORDER BY a
  }
} {1 5 11 12 13 15 17 31 34 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.27.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 34 31 17 15 13 12 11 5 1}
do_test boundary1-2.27.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.27.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.27.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1 ORDER BY x
  }
} {5 11 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.27.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.27.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1.0 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.27.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.27.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1.5 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.28.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-140737488355328
  }
} {12 ffffffffffff8000ffff800000000000}
do_test boundary1-2.28.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffff8000ffff800000000000'
  }
} {-140737488355328 12}
do_test boundary1-2.28.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=12
  }
} {-140737488355328 ffffffffffff8000ffff800000000000}
do_test boundary1-2.28.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355328 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 68 69}
do_test boundary1-2.28.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355328 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 61 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 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 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.28.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355328 ORDER BY oid
  }
} {61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.28.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355328 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61}
do_test boundary1-2.28.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355328 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.28.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355328 ORDER BY a
  }
} {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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 68 69}
do_test boundary1-2.28.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355328 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 61 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 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}
do_test boundary1-2.28.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355328 ORDER BY oid
  }
} {12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.28.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355328 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12}
do_test boundary1-2.28.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355328 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.28.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355328 ORDER BY a
  }
} {1 41 59 67 70}
do_test boundary1-2.28.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355328 ORDER BY a DESC
  }
} {70 67 59 41 1}
do_test boundary1-2.28.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355328 ORDER BY oid
  }
} {70 1 59 67 41}
do_test boundary1-2.28.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355328 ORDER BY oid DESC
  }
} {41 67 59 1 70}
do_test boundary1-2.28.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355328 ORDER BY x
  }
} {70 1 59 67 41}
do_test boundary1-2.28.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355328 ORDER BY a
  }
} {1 12 41 59 67 70}
do_test boundary1-2.28.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355328 ORDER BY a DESC
  }
} {70 67 59 41 12 1}
do_test boundary1-2.28.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355328 ORDER BY oid
  }
} {70 1 59 67 41 12}
do_test boundary1-2.28.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355328 ORDER BY oid DESC
  }
} {12 41 67 59 1 70}
do_test boundary1-2.28.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355328 ORDER BY x
  }
} {70 1 59 67 41 12}
do_test boundary1-2.29.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=36028797018963968
  }
} {7 0080000080000000000000}
do_test boundary1-2.29.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0080000080000000000000'
  }
} {36028797018963968 7}
do_test boundary1-2.29.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=7
  }
} {36028797018963968 0080000080000000000000}
do_test boundary1-2.29.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963968 ORDER BY a
  }
} {2 3 8 16 24 26 49 57}
do_test boundary1-2.29.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963968 ORDER BY a DESC
  }
} {57 49 26 24 16 8 3 2}
do_test boundary1-2.29.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963968 ORDER BY oid
  }
} {49 24 2 57 8 16 3 26}
do_test boundary1-2.29.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963968 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49}
do_test boundary1-2.29.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963968 ORDER BY x
  }
} {49 24 2 57 8 16 3 26}
do_test boundary1-2.29.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963968 ORDER BY a
  }
} {2 3 7 8 16 24 26 49 57}
do_test boundary1-2.29.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963968 ORDER BY a DESC
  }
} {57 49 26 24 16 8 7 3 2}
do_test boundary1-2.29.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963968 ORDER BY oid
  }
} {7 49 24 2 57 8 16 3 26}
do_test boundary1-2.29.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963968 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7}
do_test boundary1-2.29.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963968 ORDER BY x
  }
} {7 49 24 2 57 8 16 3 26}
do_test boundary1-2.29.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963968 ORDER BY a
  }
} {1 4 5 6 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.29.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963968 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 9 6 5 4 1}
do_test boundary1-2.29.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963968 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9}
do_test boundary1-2.29.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963968 ORDER BY oid DESC
  }
} {9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.29.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963968 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.29.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963968 ORDER BY a
  }
} {1 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.29.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963968 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 1}
do_test boundary1-2.29.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963968 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7}
do_test boundary1-2.29.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963968 ORDER BY oid DESC
  }
} {7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.29.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963968 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.30.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-129
  }
} {51 ffffffffffffffffffffffffffffff7f}
do_test boundary1-2.30.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffffffff7f'
  }
} {-129 51}
do_test boundary1-2.30.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=51
  }
} {-129 ffffffffffffffffffffffffffffff7f}
do_test boundary1-2.30.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.30.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.30.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129 ORDER BY oid
  }
} {13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.30.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13}
do_test boundary1-2.30.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 13 15 55 34}
do_test boundary1-2.30.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129.0 ORDER BY oid
  }
} {13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.30.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13}
do_test boundary1-2.30.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129.5 ORDER BY oid
  }
} {51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.30.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -129.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51}
do_test boundary1-2.30.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.30.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.30.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129 ORDER BY oid
  }
} {51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.30.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51}
do_test boundary1-2.30.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 51 13 15 55 34}
do_test boundary1-2.30.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129.0 ORDER BY oid
  }
} {51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.30.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51}
do_test boundary1-2.30.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129.5 ORDER BY oid
  }
} {51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.30.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -129.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51}
do_test boundary1-2.30.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129 ORDER BY a
  }
} {1 12 17 31 35 36 40 41 42 58 59 61 67 70}
do_test boundary1-2.30.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129 ORDER BY a DESC
  }
} {70 67 61 59 58 42 41 40 36 35 31 17 12 1}
do_test boundary1-2.30.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.30.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129 ORDER BY oid DESC
  }
} {42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.30.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.30.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.30.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129.0 ORDER BY oid DESC
  }
} {42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.30.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.30.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -129.5 ORDER BY oid DESC
  }
} {42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.30.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129 ORDER BY a
  }
} {1 12 17 31 35 36 40 41 42 51 58 59 61 67 70}
do_test boundary1-2.30.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129 ORDER BY a DESC
  }
} {70 67 61 59 58 51 42 41 40 36 35 31 17 12 1}
do_test boundary1-2.30.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.30.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129 ORDER BY oid DESC
  }
} {51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.30.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.30.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.30.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129.0 ORDER BY oid DESC
  }
} {51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.30.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.30.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -129.5 ORDER BY oid DESC
  }
} {42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.31.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-549755813888
  }
} {35 ffffffffffffff80ffffff8000000000}
do_test boundary1-2.31.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffff80ffffff8000000000'
  }
} {-549755813888 35}
do_test boundary1-2.31.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=35
  }
} {-549755813888 ffffffffffffff80ffffff8000000000}
do_test boundary1-2.31.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 40 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.31.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 40 39 38 37 36 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.31.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888 ORDER BY oid
  }
} {40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.31.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40}
do_test boundary1-2.31.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.31.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888.0 ORDER BY oid
  }
} {40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.31.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40}
do_test boundary1-2.31.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888.5 ORDER BY oid
  }
} {35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.31.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813888.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35}
do_test boundary1-2.31.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.31.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 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 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.31.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888 ORDER BY oid
  }
} {35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.31.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35}
do_test boundary1-2.31.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.31.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888.0 ORDER BY oid
  }
} {35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.31.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35}
do_test boundary1-2.31.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888.5 ORDER BY oid
  }
} {35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.31.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813888.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35}
do_test boundary1-2.31.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888 ORDER BY a
  }
} {1 12 41 59 61 67 70}
do_test boundary1-2.31.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888 ORDER BY a DESC
  }
} {70 67 61 59 41 12 1}
do_test boundary1-2.31.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888 ORDER BY oid
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.31.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888 ORDER BY oid DESC
  }
} {61 12 41 67 59 1 70}
do_test boundary1-2.31.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888 ORDER BY x
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.31.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.31.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888.0 ORDER BY oid DESC
  }
} {61 12 41 67 59 1 70}
do_test boundary1-2.31.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.31.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813888.5 ORDER BY oid DESC
  }
} {61 12 41 67 59 1 70}
do_test boundary1-2.31.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888 ORDER BY a
  }
} {1 12 35 41 59 61 67 70}
do_test boundary1-2.31.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888 ORDER BY a DESC
  }
} {70 67 61 59 41 35 12 1}
do_test boundary1-2.31.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.31.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888 ORDER BY oid DESC
  }
} {35 61 12 41 67 59 1 70}
do_test boundary1-2.31.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888 ORDER BY x
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.31.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35}
do_test boundary1-2.31.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888.0 ORDER BY oid DESC
  }
} {35 61 12 41 67 59 1 70}
do_test boundary1-2.31.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.31.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813888.5 ORDER BY oid DESC
  }
} {61 12 41 67 59 1 70}
do_test boundary1-2.32.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=140737488355328
  }
} {47 00008000800000000000}
do_test boundary1-2.32.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00008000800000000000'
  }
} {140737488355328 47}
do_test boundary1-2.32.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=47
  }
} {140737488355328 00008000800000000000}
do_test boundary1-2.32.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355328 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 29 30 32 33 49 57}
do_test boundary1-2.32.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355328 ORDER BY a DESC
  }
} {57 49 33 32 30 29 26 24 16 9 8 7 3 2}
do_test boundary1-2.32.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355328 ORDER BY oid
  }
} {32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.32.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355328 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32}
do_test boundary1-2.32.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 140737488355328 ORDER BY x
  }
} {32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.32.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355328 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 29 30 32 33 47 49 57}
do_test boundary1-2.32.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355328 ORDER BY a DESC
  }
} {57 49 47 33 32 30 29 26 24 16 9 8 7 3 2}
do_test boundary1-2.32.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355328 ORDER BY oid
  }
} {47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.32.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355328 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47}
do_test boundary1-2.32.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 140737488355328 ORDER BY x
  }
} {47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.32.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355328 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 31 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.32.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355328 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 39 38 37 36 35 34 31 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.32.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355328 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28}
do_test boundary1-2.32.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355328 ORDER BY oid DESC
  }
} {28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.32.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 140737488355328 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.32.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355328 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.32.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355328 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 31 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.32.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355328 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47}
do_test boundary1-2.32.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355328 ORDER BY oid DESC
  }
} {47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.32.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 140737488355328 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.33.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=4398046511104
  }
} {39 0000040040000000000}
do_test boundary1-2.33.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000040040000000000'
  }
} {4398046511104 39}
do_test boundary1-2.33.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=39
  }
} {4398046511104 0000040040000000000}
do_test boundary1-2.33.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 28 29 30 32 33 47 49 57}
do_test boundary1-2.33.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104 ORDER BY a DESC
  }
} {57 49 47 33 32 30 29 28 26 24 16 9 8 7 3 2}
do_test boundary1-2.33.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104 ORDER BY oid
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28}
do_test boundary1-2.33.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104 ORDER BY x
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104.0 ORDER BY oid
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28}
do_test boundary1-2.33.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104.5 ORDER BY oid
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511104.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28}
do_test boundary1-2.33.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.33.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 16 9 8 7 3 2}
do_test boundary1-2.33.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104 ORDER BY oid
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39}
do_test boundary1-2.33.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104 ORDER BY x
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104.0 ORDER BY oid
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39}
do_test boundary1-2.33.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104.5 ORDER BY oid
  }
} {28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.33.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511104.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28}
do_test boundary1-2.33.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.33.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.33.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6}
do_test boundary1-2.33.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104 ORDER BY oid DESC
  }
} {6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.33.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.33.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6}
do_test boundary1-2.33.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104.0 ORDER BY oid DESC
  }
} {6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.33.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39}
do_test boundary1-2.33.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511104.5 ORDER BY oid DESC
  }
} {39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.33.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 31 34 35 36 37 38 39 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.33.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 39 38 37 36 35 34 31 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.33.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39}
do_test boundary1-2.33.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104 ORDER BY oid DESC
  }
} {39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.33.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.33.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39}
do_test boundary1-2.33.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104.0 ORDER BY oid DESC
  }
} {39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.33.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39}
do_test boundary1-2.33.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511104.5 ORDER BY oid DESC
  }
} {39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.34.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-2147483648
  }
} {36 ffffffffffffffffffffffff80000000}
do_test boundary1-2.34.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffff80000000'
  }
} {-2147483648 36}
do_test boundary1-2.34.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=36
  }
} {-2147483648 ffffffffffffffffffffffff80000000}
do_test boundary1-2.34.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.34.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.34.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648 ORDER BY oid
  }
} {31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.34.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31}
do_test boundary1-2.34.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.34.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648.0 ORDER BY oid
  }
} {31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.34.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31}
do_test boundary1-2.34.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648.5 ORDER BY oid
  }
} {36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.34.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -2147483648.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36}
do_test boundary1-2.34.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 36 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.34.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 36 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.34.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648 ORDER BY oid
  }
} {36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.34.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36}
do_test boundary1-2.34.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.34.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648.0 ORDER BY oid
  }
} {36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.34.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36}
do_test boundary1-2.34.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648.5 ORDER BY oid
  }
} {36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.34.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -2147483648.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36}
do_test boundary1-2.34.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648 ORDER BY a
  }
} {1 12 35 40 41 59 61 67 70}
do_test boundary1-2.34.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648 ORDER BY a DESC
  }
} {70 67 61 59 41 40 35 12 1}
do_test boundary1-2.34.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.34.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648 ORDER BY oid DESC
  }
} {40 35 61 12 41 67 59 1 70}
do_test boundary1-2.34.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.34.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.34.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648.0 ORDER BY oid DESC
  }
} {40 35 61 12 41 67 59 1 70}
do_test boundary1-2.34.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.34.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -2147483648.5 ORDER BY oid DESC
  }
} {40 35 61 12 41 67 59 1 70}
do_test boundary1-2.34.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648 ORDER BY a
  }
} {1 12 35 36 40 41 59 61 67 70}
do_test boundary1-2.34.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648 ORDER BY a DESC
  }
} {70 67 61 59 41 40 36 35 12 1}
do_test boundary1-2.34.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.34.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648 ORDER BY oid DESC
  }
} {36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.34.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.34.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36}
do_test boundary1-2.34.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648.0 ORDER BY oid DESC
  }
} {36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.34.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40}
do_test boundary1-2.34.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -2147483648.5 ORDER BY oid DESC
  }
} {40 35 61 12 41 67 59 1 70}
do_test boundary1-2.35.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=549755813888
  }
} {52 000000808000000000}
do_test boundary1-2.35.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000808000000000'
  }
} {549755813888 52}
do_test boundary1-2.35.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=52
  }
} {549755813888 000000808000000000}
do_test boundary1-2.35.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.35.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.35.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888 ORDER BY oid
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20}
do_test boundary1-2.35.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888 ORDER BY x
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888.0 ORDER BY oid
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20}
do_test boundary1-2.35.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888.5 ORDER BY oid
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813888.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20}
do_test boundary1-2.35.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 47 49 52 57}
do_test boundary1-2.35.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888 ORDER BY a DESC
  }
} {57 52 49 47 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.35.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888 ORDER BY oid
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52}
do_test boundary1-2.35.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888 ORDER BY x
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888.0 ORDER BY oid
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52}
do_test boundary1-2.35.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888.5 ORDER BY oid
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.35.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813888.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20}
do_test boundary1-2.35.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.35.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.35.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53}
do_test boundary1-2.35.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888 ORDER BY oid DESC
  }
} {53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.35.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.35.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53}
do_test boundary1-2.35.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888.0 ORDER BY oid DESC
  }
} {53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.35.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52}
do_test boundary1-2.35.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813888.5 ORDER BY oid DESC
  }
} {52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.35.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.35.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.35.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52}
do_test boundary1-2.35.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888 ORDER BY oid DESC
  }
} {52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.35.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.35.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52}
do_test boundary1-2.35.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888.0 ORDER BY oid DESC
  }
} {52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.35.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52}
do_test boundary1-2.35.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813888.5 ORDER BY oid DESC
  }
} {52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.36.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=8388608
  }
} {38 0000000000800000}
do_test boundary1-2.36.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000800000'
  }
} {8388608 38}
do_test boundary1-2.36.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=38
  }
} {8388608 0000000000800000}
do_test boundary1-2.36.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.36.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.36.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608 ORDER BY oid
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69}
do_test boundary1-2.36.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608 ORDER BY x
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608.0 ORDER BY oid
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69}
do_test boundary1-2.36.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608.5 ORDER BY oid
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388608.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69}
do_test boundary1-2.36.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 38 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.36.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 38 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.36.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608 ORDER BY oid
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38}
do_test boundary1-2.36.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608 ORDER BY x
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608.0 ORDER BY oid
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38}
do_test boundary1-2.36.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608.5 ORDER BY oid
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.36.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388608.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69}
do_test boundary1-2.36.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.36.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.36.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25}
do_test boundary1-2.36.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608 ORDER BY oid DESC
  }
} {25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.36.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.36.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25}
do_test boundary1-2.36.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608.0 ORDER BY oid DESC
  }
} {25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.36.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38}
do_test boundary1-2.36.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388608.5 ORDER BY oid DESC
  }
} {38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.36.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.36.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.36.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38}
do_test boundary1-2.36.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608 ORDER BY oid DESC
  }
} {38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.36.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.36.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38}
do_test boundary1-2.36.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608.0 ORDER BY oid DESC
  }
} {38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.36.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38}
do_test boundary1-2.36.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388608.5 ORDER BY oid DESC
  }
} {38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.37.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=2147483647
  }
} {4 000000007fffffff}
do_test boundary1-2.37.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000007fffffff'
  }
} {2147483647 4}
do_test boundary1-2.37.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=4
  }
} {2147483647 000000007fffffff}
do_test boundary1-2.37.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 66}
do_test boundary1-2.37.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647 ORDER BY a DESC
  }
} {66 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.37.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647 ORDER BY oid
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23}
do_test boundary1-2.37.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647 ORDER BY x
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647.0 ORDER BY oid
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23}
do_test boundary1-2.37.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647.5 ORDER BY oid
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2147483647.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23}
do_test boundary1-2.37.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 66}
do_test boundary1-2.37.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647 ORDER BY a DESC
  }
} {66 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.37.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647 ORDER BY oid
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4}
do_test boundary1-2.37.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647 ORDER BY x
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647.0 ORDER BY oid
  }
} {4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4}
do_test boundary1-2.37.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647.5 ORDER BY oid
  }
} {23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.37.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2147483647.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23}
do_test boundary1-2.37.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 67 68 69 70}
do_test boundary1-2.37.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.37.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62}
do_test boundary1-2.37.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647 ORDER BY oid DESC
  }
} {62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.37.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.37.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62}
do_test boundary1-2.37.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647.0 ORDER BY oid DESC
  }
} {62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.37.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4}
do_test boundary1-2.37.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2147483647.5 ORDER BY oid DESC
  }
} {4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.37.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 67 68 69 70}
do_test boundary1-2.37.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.37.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4}
do_test boundary1-2.37.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647 ORDER BY oid DESC
  }
} {4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.37.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.37.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4}
do_test boundary1-2.37.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647.0 ORDER BY oid DESC
  }
} {4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.37.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4}
do_test boundary1-2.37.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2147483647.5 ORDER BY oid DESC
  }
} {4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.38.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=4294967295
  }
} {66 00000000ffffffff}
do_test boundary1-2.38.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00000000ffffffff'
  }
} {4294967295 66}
do_test boundary1-2.38.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=66
  }
} {4294967295 00000000ffffffff}
do_test boundary1-2.38.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60}
do_test boundary1-2.38.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295 ORDER BY a DESC
  }
} {60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.38.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295 ORDER BY oid
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27}
do_test boundary1-2.38.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295 ORDER BY x
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295.0 ORDER BY oid
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27}
do_test boundary1-2.38.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295.5 ORDER BY oid
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967295.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27}
do_test boundary1-2.38.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 66}
do_test boundary1-2.38.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295 ORDER BY a DESC
  }
} {66 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.38.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295 ORDER BY oid
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66}
do_test boundary1-2.38.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295 ORDER BY x
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295.0 ORDER BY oid
  }
} {66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66}
do_test boundary1-2.38.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295.5 ORDER BY oid
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.38.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967295.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27}
do_test boundary1-2.38.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 67 68 69 70}
do_test boundary1-2.38.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.38.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23}
do_test boundary1-2.38.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295 ORDER BY oid DESC
  }
} {23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.38.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.38.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23}
do_test boundary1-2.38.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295.0 ORDER BY oid DESC
  }
} {23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.38.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66}
do_test boundary1-2.38.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967295.5 ORDER BY oid DESC
  }
} {66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.38.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.38.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.38.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66}
do_test boundary1-2.38.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295 ORDER BY oid DESC
  }
} {66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.38.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.38.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66}
do_test boundary1-2.38.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295.0 ORDER BY oid DESC
  }
} {66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.38.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66}
do_test boundary1-2.38.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967295.5 ORDER BY oid DESC
  }
} {66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.39.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=2
  }
} {50 0000000000000002}
do_test boundary1-2.39.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000002'
  }
} {2 50}
do_test boundary1-2.39.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=50
  }
} {2 0000000000000002}
do_test boundary1-2.39.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.39.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.39.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.39.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2 ORDER BY x
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.0 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.39.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.5 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.39.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.39.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.39.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.39.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2 ORDER BY x
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.0 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.39.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.5 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.39.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.39.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2 ORDER BY a
  }
} {1 5 11 12 13 15 17 31 34 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.39.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 34 31 17 15 13 12 11 5 1}
do_test boundary1-2.39.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.39.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.39.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2 ORDER BY x
  }
} {5 11 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.39.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.39.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.0 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.39.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.39.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.5 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.39.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2 ORDER BY a
  }
} {1 5 11 12 13 15 17 31 34 35 36 40 41 42 50 51 55 58 59 61 67 70}
do_test boundary1-2.39.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 50 42 41 40 36 35 34 31 17 15 13 12 11 5 1}
do_test boundary1-2.39.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.39.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.39.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2 ORDER BY x
  }
} {5 11 50 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.39.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.39.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.0 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.39.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.39.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.5 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.40.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963967 ORDER BY a
  }
} {2 3 7 8 16 24 26 49 57}
do_test boundary1-2.40.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963967 ORDER BY a DESC
  }
} {57 49 26 24 16 8 7 3 2}
do_test boundary1-2.40.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963967 ORDER BY oid
  }
} {7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963967 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7}
do_test boundary1-2.40.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 36028797018963967 ORDER BY x
  }
} {7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.0 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.40.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.5 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 2.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.40.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963967 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 49 57}
do_test boundary1-2.40.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963967 ORDER BY a DESC
  }
} {57 49 26 24 16 9 8 7 3 2}
do_test boundary1-2.40.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963967 ORDER BY oid
  }
} {9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963967 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9}
do_test boundary1-2.40.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 36028797018963967 ORDER BY x
  }
} {9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.0 ORDER BY oid
  }
} {50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50}
do_test boundary1-2.40.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.5 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.40.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 2.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.40.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963967 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.40.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963967 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.40.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963967 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30}
do_test boundary1-2.40.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963967 ORDER BY oid DESC
  }
} {30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.40.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 36028797018963967 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.40.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11}
do_test boundary1-2.40.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.0 ORDER BY oid DESC
  }
} {11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.40.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.40.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 2.5 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.40.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963967 ORDER BY a
  }
} {1 4 5 6 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.40.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963967 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 9 6 5 4 1}
do_test boundary1-2.40.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963967 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9}
do_test boundary1-2.40.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963967 ORDER BY oid DESC
  }
} {9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.40.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 36028797018963967 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.40.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.40.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.0 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.40.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.40.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 2.5 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.41.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-128
  }
} {13 ffffffffffffffffffffffffffffff80}
do_test boundary1-2.41.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffffffff80'
  }
} {-128 13}
do_test boundary1-2.41.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=13
  }
} {-128 ffffffffffffffffffffffffffffff80}
do_test boundary1-2.41.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.41.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.41.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128 ORDER BY oid
  }
} {15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.41.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15}
do_test boundary1-2.41.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 15 55 34}
do_test boundary1-2.41.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128.0 ORDER BY oid
  }
} {15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.41.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15}
do_test boundary1-2.41.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128.5 ORDER BY oid
  }
} {13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.41.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -128.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13}
do_test boundary1-2.41.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.41.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.41.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128 ORDER BY oid
  }
} {13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.41.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13}
do_test boundary1-2.41.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 13 15 55 34}
do_test boundary1-2.41.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128.0 ORDER BY oid
  }
} {13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.41.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13}
do_test boundary1-2.41.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128.5 ORDER BY oid
  }
} {13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.41.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -128.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13}
do_test boundary1-2.41.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128 ORDER BY a
  }
} {1 12 17 31 35 36 40 41 42 51 58 59 61 67 70}
do_test boundary1-2.41.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128 ORDER BY a DESC
  }
} {70 67 61 59 58 51 42 41 40 36 35 31 17 12 1}
do_test boundary1-2.41.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.41.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128 ORDER BY oid DESC
  }
} {51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.41.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.41.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.41.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128.0 ORDER BY oid DESC
  }
} {51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.41.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.41.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -128.5 ORDER BY oid DESC
  }
} {51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.41.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128 ORDER BY a
  }
} {1 12 13 17 31 35 36 40 41 42 51 58 59 61 67 70}
do_test boundary1-2.41.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128 ORDER BY a DESC
  }
} {70 67 61 59 58 51 42 41 40 36 35 31 17 13 12 1}
do_test boundary1-2.41.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.41.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128 ORDER BY oid DESC
  }
} {13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.41.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.41.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13}
do_test boundary1-2.41.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128.0 ORDER BY oid DESC
  }
} {13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.41.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51}
do_test boundary1-2.41.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -128.5 ORDER BY oid DESC
  }
} {51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.42.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=0
  }
} {5 0000000000000000}
do_test boundary1-2.42.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000000'
  }
} {0 5}
do_test boundary1-2.42.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=5
  }
} {0 0000000000000000}
do_test boundary1-2.42.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.42.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 4 3 2}
do_test boundary1-2.42.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0 ORDER BY oid
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11}
do_test boundary1-2.42.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0 ORDER BY x
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0.0 ORDER BY oid
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11}
do_test boundary1-2.42.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0.5 ORDER BY oid
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 0.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11}
do_test boundary1-2.42.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 50 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.42.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 50 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.42.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0 ORDER BY oid
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5}
do_test boundary1-2.42.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0.0 ORDER BY oid
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5}
do_test boundary1-2.42.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0.5 ORDER BY oid
  }
} {11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.42.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 0.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11}
do_test boundary1-2.42.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0 ORDER BY a
  }
} {1 12 13 15 17 31 34 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.42.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 34 31 17 15 13 12 1}
do_test boundary1-2.42.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.42.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0 ORDER BY oid DESC
  }
} {34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.42.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.42.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.42.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0.0 ORDER BY oid DESC
  }
} {34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.42.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5}
do_test boundary1-2.42.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 0.5 ORDER BY oid DESC
  }
} {5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.42.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0 ORDER BY a
  }
} {1 5 12 13 15 17 31 34 35 36 40 41 42 51 55 58 59 61 67 70}
do_test boundary1-2.42.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 42 41 40 36 35 34 31 17 15 13 12 5 1}
do_test boundary1-2.42.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5}
do_test boundary1-2.42.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0 ORDER BY oid DESC
  }
} {5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.42.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0 ORDER BY x
  }
} {5 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.42.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5}
do_test boundary1-2.42.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0.0 ORDER BY oid DESC
  }
} {5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.42.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5}
do_test boundary1-2.42.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 0.5 ORDER BY oid DESC
  }
} {5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.43.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=8388607
  }
} {25 00000000007fffff}
do_test boundary1-2.43.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00000000007fffff'
  }
} {8388607 25}
do_test boundary1-2.43.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=25
  }
} {8388607 00000000007fffff}
do_test boundary1-2.43.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 38 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.43.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 38 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.43.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607 ORDER BY oid
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38}
do_test boundary1-2.43.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607 ORDER BY x
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607.0 ORDER BY oid
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38}
do_test boundary1-2.43.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607.5 ORDER BY oid
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 8388607.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38}
do_test boundary1-2.43.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 25 26 27 28 29 30 32 33 38 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.43.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 38 33 32 30 29 28 27 26 25 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.43.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607 ORDER BY oid
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25}
do_test boundary1-2.43.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607 ORDER BY x
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607.0 ORDER BY oid
  }
} {25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25}
do_test boundary1-2.43.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607.5 ORDER BY oid
  }
} {38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.43.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 8388607.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38}
do_test boundary1-2.43.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 31 34 35 36 37 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.43.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 37 36 35 34 31 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.43.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22}
do_test boundary1-2.43.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607 ORDER BY oid DESC
  }
} {22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.43.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.43.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22}
do_test boundary1-2.43.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607.0 ORDER BY oid DESC
  }
} {22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.43.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25}
do_test boundary1-2.43.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 8388607.5 ORDER BY oid DESC
  }
} {25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.43.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.43.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.43.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25}
do_test boundary1-2.43.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607 ORDER BY oid DESC
  }
} {25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.43.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.43.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25}
do_test boundary1-2.43.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607.0 ORDER BY oid DESC
  }
} {25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.43.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25}
do_test boundary1-2.43.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 8388607.5 ORDER BY oid DESC
  }
} {25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.44.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=1099511627776
  }
} {18 0000010010000000000}
do_test boundary1-2.44.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000010010000000000'
  }
} {1099511627776 18}
do_test boundary1-2.44.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=18
  }
} {1099511627776 0000010010000000000}
do_test boundary1-2.44.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776 ORDER BY a
  }
} {2 3 6 7 8 9 16 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.44.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 16 9 8 7 6 3 2}
do_test boundary1-2.44.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776 ORDER BY oid
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6}
do_test boundary1-2.44.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776 ORDER BY x
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776.0 ORDER BY oid
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6}
do_test boundary1-2.44.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776.5 ORDER BY oid
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627776.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6}
do_test boundary1-2.44.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.44.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 18 16 9 8 7 6 3 2}
do_test boundary1-2.44.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776 ORDER BY oid
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18}
do_test boundary1-2.44.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776 ORDER BY x
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776.0 ORDER BY oid
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18}
do_test boundary1-2.44.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776.5 ORDER BY oid
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.44.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627776.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6}
do_test boundary1-2.44.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 20 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.44.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 20 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.44.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20}
do_test boundary1-2.44.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776 ORDER BY oid DESC
  }
} {20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.44.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.44.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20}
do_test boundary1-2.44.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776.0 ORDER BY oid DESC
  }
} {20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.44.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18}
do_test boundary1-2.44.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627776.5 ORDER BY oid DESC
  }
} {18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.44.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.44.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.44.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18}
do_test boundary1-2.44.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776 ORDER BY oid DESC
  }
} {18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.44.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.44.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18}
do_test boundary1-2.44.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776.0 ORDER BY oid DESC
  }
} {18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.44.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18}
do_test boundary1-2.44.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627776.5 ORDER BY oid DESC
  }
} {18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.45.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=4294967296
  }
} {27 00000001100000000}
do_test boundary1-2.45.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='00000001100000000'
  }
} {4294967296 27}
do_test boundary1-2.45.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=27
  }
} {4294967296 00000001100000000}
do_test boundary1-2.45.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 43 47 49 52 53 57 60}
do_test boundary1-2.45.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296 ORDER BY a DESC
  }
} {60 57 53 52 49 47 43 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.45.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296 ORDER BY oid
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60}
do_test boundary1-2.45.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296 ORDER BY x
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296.0 ORDER BY oid
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60}
do_test boundary1-2.45.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296.5 ORDER BY oid
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4294967296.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60}
do_test boundary1-2.45.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60}
do_test boundary1-2.45.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296 ORDER BY a DESC
  }
} {60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.45.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296 ORDER BY oid
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27}
do_test boundary1-2.45.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296 ORDER BY x
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296.0 ORDER BY oid
  }
} {27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27}
do_test boundary1-2.45.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296.5 ORDER BY oid
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.45.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4294967296.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60}
do_test boundary1-2.45.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.45.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.45.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66}
do_test boundary1-2.45.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296 ORDER BY oid DESC
  }
} {66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.45.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.45.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66}
do_test boundary1-2.45.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296.0 ORDER BY oid DESC
  }
} {66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.45.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27}
do_test boundary1-2.45.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4294967296.5 ORDER BY oid DESC
  }
} {27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.45.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.45.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.45.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27}
do_test boundary1-2.45.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296 ORDER BY oid DESC
  }
} {27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.45.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.45.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27}
do_test boundary1-2.45.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296.0 ORDER BY oid DESC
  }
} {27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.45.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27}
do_test boundary1-2.45.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4294967296.5 ORDER BY oid DESC
  }
} {27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.46.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=281474976710655
  }
} {32 0000ffffffffffffffff}
do_test boundary1-2.46.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000ffffffffffffffff'
  }
} {281474976710655 32}
do_test boundary1-2.46.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=32
  }
} {281474976710655 0000ffffffffffffffff}
do_test boundary1-2.46.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710655 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 29 30 33 49 57}
do_test boundary1-2.46.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710655 ORDER BY a DESC
  }
} {57 49 33 30 29 26 24 16 9 8 7 3 2}
do_test boundary1-2.46.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710655 ORDER BY oid
  }
} {29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.46.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710655 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29}
do_test boundary1-2.46.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710655 ORDER BY x
  }
} {29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.46.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710655 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 29 30 32 33 49 57}
do_test boundary1-2.46.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710655 ORDER BY a DESC
  }
} {57 49 33 32 30 29 26 24 16 9 8 7 3 2}
do_test boundary1-2.46.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710655 ORDER BY oid
  }
} {32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.46.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710655 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32}
do_test boundary1-2.46.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710655 ORDER BY x
  }
} {32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.46.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710655 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.46.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710655 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 31 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.46.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710655 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47}
do_test boundary1-2.46.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710655 ORDER BY oid DESC
  }
} {47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.46.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710655 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.46.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710655 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.46.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710655 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 32 31 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.46.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710655 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32}
do_test boundary1-2.46.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710655 ORDER BY oid DESC
  }
} {32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.46.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710655 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.47.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-32769
  }
} {17 ffffffffffffffffffffffffffff7fff}
do_test boundary1-2.47.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffffff7fff'
  }
} {-32769 17}
do_test boundary1-2.47.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=17
  }
} {-32769 ffffffffffffffffffffffffffff7fff}
do_test boundary1-2.47.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.47.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.47.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769 ORDER BY oid
  }
} {42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.47.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42}
do_test boundary1-2.47.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 42 51 13 15 55 34}
do_test boundary1-2.47.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769.0 ORDER BY oid
  }
} {42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.47.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42}
do_test boundary1-2.47.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769.5 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.47.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32769.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.47.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.47.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.47.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.47.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.47.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 17 42 51 13 15 55 34}
do_test boundary1-2.47.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769.0 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.47.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.47.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769.5 ORDER BY oid
  }
} {17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.47.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32769.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17}
do_test boundary1-2.47.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769 ORDER BY a
  }
} {1 12 31 35 36 40 41 58 59 61 67 70}
do_test boundary1-2.47.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769 ORDER BY a DESC
  }
} {70 67 61 59 58 41 40 36 35 31 12 1}
do_test boundary1-2.47.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.47.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.47.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.47.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.47.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769.0 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.47.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.47.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32769.5 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.47.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769 ORDER BY a
  }
} {1 12 17 31 35 36 40 41 58 59 61 67 70}
do_test boundary1-2.47.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769 ORDER BY a DESC
  }
} {70 67 61 59 58 41 40 36 35 31 17 12 1}
do_test boundary1-2.47.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.47.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769 ORDER BY oid DESC
  }
} {17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.47.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.47.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.47.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769.0 ORDER BY oid DESC
  }
} {17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.47.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58}
do_test boundary1-2.47.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32769.5 ORDER BY oid DESC
  }
} {58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.48.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=16383
  }
} {68 0000000000003fff}
do_test boundary1-2.48.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000003fff'
  }
} {16383 68}
do_test boundary1-2.48.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=68
  }
} {16383 0000000000003fff}
do_test boundary1-2.48.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.48.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.48.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383 ORDER BY oid
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37}
do_test boundary1-2.48.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383 ORDER BY x
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383.0 ORDER BY oid
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37}
do_test boundary1-2.48.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383.5 ORDER BY oid
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16383.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37}
do_test boundary1-2.48.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 68 69}
do_test boundary1-2.48.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.48.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.48.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383 ORDER BY x
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383.0 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.48.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383.5 ORDER BY oid
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.48.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16383.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37}
do_test boundary1-2.48.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 21 31 34 35 36 40 41 42 45 50 51 54 55 56 58 59 61 64 67 70}
do_test boundary1-2.48.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383 ORDER BY a DESC
  }
} {70 67 64 61 59 58 56 55 54 51 50 45 42 41 40 36 35 34 31 21 17 15 14 13 12 11 5 1}
do_test boundary1-2.48.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.48.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.48.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.48.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.48.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383.0 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.48.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68}
do_test boundary1-2.48.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16383.5 ORDER BY oid DESC
  }
} {68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.48.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 21 31 34 35 36 40 41 42 45 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.48.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 45 42 41 40 36 35 34 31 21 17 15 14 13 12 11 5 1}
do_test boundary1-2.48.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68}
do_test boundary1-2.48.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383 ORDER BY oid DESC
  }
} {68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.48.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.48.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68}
do_test boundary1-2.48.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383.0 ORDER BY oid DESC
  }
} {68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.48.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68}
do_test boundary1-2.48.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16383.5 ORDER BY oid DESC
  }
} {68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.49.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=32768
  }
} {48 0000000000008000}
do_test boundary1-2.49.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000008000'
  }
} {32768 48}
do_test boundary1-2.49.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=48
  }
} {32768 0000000000008000}
do_test boundary1-2.49.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.49.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.49.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.49.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768 ORDER BY x
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.0 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.49.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.5 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.49.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.49.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.49.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.49.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768 ORDER BY x
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.0 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.49.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.5 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.49.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.49.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.49.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 5 1}
do_test boundary1-2.49.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.49.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.49.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.49.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.49.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.0 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.49.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.49.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.5 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.49.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 48 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.49.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 48 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 5 1}
do_test boundary1-2.49.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.49.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.49.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.49.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.49.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.0 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.49.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.49.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.5 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.50.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775808 ORDER BY a
  }
} {}
do_test boundary1-2.50.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775808 ORDER BY a DESC
  }
} {}
do_test boundary1-2.50.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775808 ORDER BY oid
  }
} {}
do_test boundary1-2.50.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775808 ORDER BY oid DESC
  }
} {}
do_test boundary1-2.50.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775808 ORDER BY x
  }
} {}
do_test boundary1-2.50.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.0 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.50.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.50.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.5 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.50.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 32768.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.50.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775808 ORDER BY a
  }
} {26}
do_test boundary1-2.50.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775808 ORDER BY a DESC
  }
} {26}
do_test boundary1-2.50.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775808 ORDER BY oid
  }
} {26}
do_test boundary1-2.50.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775808 ORDER BY oid DESC
  }
} {26}
do_test boundary1-2.50.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775808 ORDER BY x
  }
} {26}
do_test boundary1-2.50.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.0 ORDER BY oid
  }
} {48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.50.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48}
do_test boundary1-2.50.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.5 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.50.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 32768.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.50.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775808 ORDER BY a
  }
} {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 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 65 66 67 68 69 70}
do_test boundary1-2.50.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775808 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 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}
do_test boundary1-2.50.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775808 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3}
do_test boundary1-2.50.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775808 ORDER BY oid DESC
  }
} {3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.50.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775808 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.50.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19}
do_test boundary1-2.50.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.0 ORDER BY oid DESC
  }
} {19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.50.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.50.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 32768.5 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.50.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775808 ORDER BY a
  }
} {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 65 66 67 68 69 70}
do_test boundary1-2.50.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775808 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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}
do_test boundary1-2.50.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775808 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.50.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775808 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.50.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775808 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.50.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.50.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.0 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.50.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.50.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 32768.5 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.51.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-549755813889
  }
} {61 ffffffffffffff7fffffff7fffffffff}
do_test boundary1-2.51.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffff7fffffff7fffffffff'
  }
} {-549755813889 61}
do_test boundary1-2.51.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=61
  }
} {-549755813889 ffffffffffffff7fffffff7fffffffff}
do_test boundary1-2.51.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 62 63 64 65 66 68 69}
do_test boundary1-2.51.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 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 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.51.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889 ORDER BY oid
  }
} {35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.51.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35}
do_test boundary1-2.51.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.51.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889.0 ORDER BY oid
  }
} {35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.51.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35}
do_test boundary1-2.51.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889.5 ORDER BY oid
  }
} {61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.51.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -549755813889.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61}
do_test boundary1-2.51.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 68 69}
do_test boundary1-2.51.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 61 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 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 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.51.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889 ORDER BY oid
  }
} {61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.51.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61}
do_test boundary1-2.51.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.51.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889.0 ORDER BY oid
  }
} {61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.51.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61}
do_test boundary1-2.51.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889.5 ORDER BY oid
  }
} {61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.51.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -549755813889.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61}
do_test boundary1-2.51.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889 ORDER BY a
  }
} {1 12 41 59 67 70}
do_test boundary1-2.51.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889 ORDER BY a DESC
  }
} {70 67 59 41 12 1}
do_test boundary1-2.51.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889 ORDER BY oid
  }
} {70 1 59 67 41 12}
do_test boundary1-2.51.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889 ORDER BY oid DESC
  }
} {12 41 67 59 1 70}
do_test boundary1-2.51.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889 ORDER BY x
  }
} {70 1 59 67 41 12}
do_test boundary1-2.51.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889.0 ORDER BY oid
  }
} {70 1 59 67 41 12}
do_test boundary1-2.51.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889.0 ORDER BY oid DESC
  }
} {12 41 67 59 1 70}
do_test boundary1-2.51.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889.5 ORDER BY oid
  }
} {70 1 59 67 41 12}
do_test boundary1-2.51.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -549755813889.5 ORDER BY oid DESC
  }
} {12 41 67 59 1 70}
do_test boundary1-2.51.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889 ORDER BY a
  }
} {1 12 41 59 61 67 70}
do_test boundary1-2.51.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889 ORDER BY a DESC
  }
} {70 67 61 59 41 12 1}
do_test boundary1-2.51.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889 ORDER BY oid
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.51.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889 ORDER BY oid DESC
  }
} {61 12 41 67 59 1 70}
do_test boundary1-2.51.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889 ORDER BY x
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.51.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61}
do_test boundary1-2.51.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889.0 ORDER BY oid DESC
  }
} {61 12 41 67 59 1 70}
do_test boundary1-2.51.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889.5 ORDER BY oid
  }
} {70 1 59 67 41 12}
do_test boundary1-2.51.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -549755813889.5 ORDER BY oid DESC
  }
} {12 41 67 59 1 70}
do_test boundary1-2.52.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=576460752303423488
  }
} {57 08000000800000000000000}
do_test boundary1-2.52.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='08000000800000000000000'
  }
} {576460752303423488 57}
do_test boundary1-2.52.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=57
  }
} {576460752303423488 08000000800000000000000}
do_test boundary1-2.52.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423488 ORDER BY a
  }
} {3 8 16 26}
do_test boundary1-2.52.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423488 ORDER BY a DESC
  }
} {26 16 8 3}
do_test boundary1-2.52.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423488 ORDER BY oid
  }
} {8 16 3 26}
do_test boundary1-2.52.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423488 ORDER BY oid DESC
  }
} {26 3 16 8}
do_test boundary1-2.52.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 576460752303423488 ORDER BY x
  }
} {8 16 3 26}
do_test boundary1-2.52.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423488 ORDER BY a
  }
} {3 8 16 26 57}
do_test boundary1-2.52.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423488 ORDER BY a DESC
  }
} {57 26 16 8 3}
do_test boundary1-2.52.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423488 ORDER BY oid
  }
} {57 8 16 3 26}
do_test boundary1-2.52.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423488 ORDER BY oid DESC
  }
} {26 3 16 8 57}
do_test boundary1-2.52.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 576460752303423488 ORDER BY x
  }
} {57 8 16 3 26}
do_test boundary1-2.52.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423488 ORDER BY a
  }
} {1 2 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.52.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423488 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 2 1}
do_test boundary1-2.52.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423488 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2}
do_test boundary1-2.52.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423488 ORDER BY oid DESC
  }
} {2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.52.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 576460752303423488 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.52.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423488 ORDER BY a
  }
} {1 2 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 65 66 67 68 69 70}
do_test boundary1-2.52.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423488 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 2 1}
do_test boundary1-2.52.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423488 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57}
do_test boundary1-2.52.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423488 ORDER BY oid DESC
  }
} {57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.52.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 576460752303423488 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.53.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846975 ORDER BY a
  }
} {3 16 26}
do_test boundary1-2.53.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846975 ORDER BY a DESC
  }
} {26 16 3}
do_test boundary1-2.53.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846975 ORDER BY oid
  }
} {16 3 26}
do_test boundary1-2.53.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846975 ORDER BY oid DESC
  }
} {26 3 16}
do_test boundary1-2.53.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1152921504606846975 ORDER BY x
  }
} {16 3 26}
do_test boundary1-2.53.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846975 ORDER BY a
  }
} {3 8 16 26}
do_test boundary1-2.53.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846975 ORDER BY a DESC
  }
} {26 16 8 3}
do_test boundary1-2.53.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846975 ORDER BY oid
  }
} {8 16 3 26}
do_test boundary1-2.53.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846975 ORDER BY oid DESC
  }
} {26 3 16 8}
do_test boundary1-2.53.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1152921504606846975 ORDER BY x
  }
} {8 16 3 26}
do_test boundary1-2.53.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846975 ORDER BY a
  }
} {1 2 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 65 66 67 68 69 70}
do_test boundary1-2.53.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846975 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 2 1}
do_test boundary1-2.53.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846975 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57}
do_test boundary1-2.53.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846975 ORDER BY oid DESC
  }
} {57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.53.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1152921504606846975 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.53.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846975 ORDER BY a
  }
} {1 2 4 5 6 7 8 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 65 66 67 68 69 70}
do_test boundary1-2.53.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846975 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
do_test boundary1-2.53.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846975 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8}
do_test boundary1-2.53.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846975 ORDER BY oid DESC
  }
} {8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.53.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1152921504606846975 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.54.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-140737488355329
  }
} {41 ffffffffffff7fffffff7fffffffffff}
do_test boundary1-2.54.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffff7fffffff7fffffffffff'
  }
} {-140737488355329 41}
do_test boundary1-2.54.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=41
  }
} {-140737488355329 ffffffffffff7fffffff7fffffffffff}
do_test boundary1-2.54.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355329 ORDER BY a
  }
} {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 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 68 69}
do_test boundary1-2.54.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355329 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 61 60 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 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}
do_test boundary1-2.54.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355329 ORDER BY oid
  }
} {12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.54.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355329 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12}
do_test boundary1-2.54.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -140737488355329 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.54.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355329 ORDER BY a
  }
} {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 60 61 62 63 64 65 66 68 69}
do_test boundary1-2.54.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355329 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 61 60 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}
do_test boundary1-2.54.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355329 ORDER BY oid
  }
} {41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.54.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355329 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41}
do_test boundary1-2.54.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -140737488355329 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.54.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355329 ORDER BY a
  }
} {1 59 67 70}
do_test boundary1-2.54.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355329 ORDER BY a DESC
  }
} {70 67 59 1}
do_test boundary1-2.54.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355329 ORDER BY oid
  }
} {70 1 59 67}
do_test boundary1-2.54.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355329 ORDER BY oid DESC
  }
} {67 59 1 70}
do_test boundary1-2.54.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -140737488355329 ORDER BY x
  }
} {70 1 59 67}
do_test boundary1-2.54.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355329 ORDER BY a
  }
} {1 41 59 67 70}
do_test boundary1-2.54.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355329 ORDER BY a DESC
  }
} {70 67 59 41 1}
do_test boundary1-2.54.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355329 ORDER BY oid
  }
} {70 1 59 67 41}
do_test boundary1-2.54.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355329 ORDER BY oid DESC
  }
} {41 67 59 1 70}
do_test boundary1-2.54.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -140737488355329 ORDER BY x
  }
} {70 1 59 67 41}
do_test boundary1-2.55.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=72057594037927936
  }
} {24 01000000100000000000000}
do_test boundary1-2.55.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='01000000100000000000000'
  }
} {72057594037927936 24}
do_test boundary1-2.55.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=24
  }
} {72057594037927936 01000000100000000000000}
do_test boundary1-2.55.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927936 ORDER BY a
  }
} {2 3 8 16 26 57}
do_test boundary1-2.55.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927936 ORDER BY a DESC
  }
} {57 26 16 8 3 2}
do_test boundary1-2.55.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927936 ORDER BY oid
  }
} {2 57 8 16 3 26}
do_test boundary1-2.55.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927936 ORDER BY oid DESC
  }
} {26 3 16 8 57 2}
do_test boundary1-2.55.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 72057594037927936 ORDER BY x
  }
} {2 57 8 16 3 26}
do_test boundary1-2.55.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927936 ORDER BY a
  }
} {2 3 8 16 24 26 57}
do_test boundary1-2.55.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927936 ORDER BY a DESC
  }
} {57 26 24 16 8 3 2}
do_test boundary1-2.55.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927936 ORDER BY oid
  }
} {24 2 57 8 16 3 26}
do_test boundary1-2.55.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927936 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24}
do_test boundary1-2.55.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 72057594037927936 ORDER BY x
  }
} {24 2 57 8 16 3 26}
do_test boundary1-2.55.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927936 ORDER BY a
  }
} {1 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 25 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 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.55.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927936 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 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 25 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 1}
do_test boundary1-2.55.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927936 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49}
do_test boundary1-2.55.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927936 ORDER BY oid DESC
  }
} {49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.55.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 72057594037927936 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.55.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927936 ORDER BY a
  }
} {1 4 5 6 7 9 10 11 12 13 14 15 17 18 19 20 21 22 23 24 25 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 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.55.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927936 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 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 25 24 23 22 21 20 19 18 17 15 14 13 12 11 10 9 7 6 5 4 1}
do_test boundary1-2.55.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927936 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24}
do_test boundary1-2.55.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927936 ORDER BY oid DESC
  }
} {24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.55.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 72057594037927936 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.56.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=268435455
  }
} {44 000000000fffffff}
do_test boundary1-2.56.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000000fffffff'
  }
} {268435455 44}
do_test boundary1-2.56.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=44
  }
} {268435455 000000000fffffff}
do_test boundary1-2.56.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 47 49 52 53 57 60 62 66}
do_test boundary1-2.56.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455 ORDER BY a DESC
  }
} {66 62 60 57 53 52 49 47 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.56.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455 ORDER BY oid
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62}
do_test boundary1-2.56.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455 ORDER BY x
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455.0 ORDER BY oid
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62}
do_test boundary1-2.56.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455.5 ORDER BY oid
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 268435455.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62}
do_test boundary1-2.56.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 44 47 49 52 53 57 60 62 66}
do_test boundary1-2.56.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455 ORDER BY a DESC
  }
} {66 62 60 57 53 52 49 47 44 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.56.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455 ORDER BY oid
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44}
do_test boundary1-2.56.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455 ORDER BY x
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455.0 ORDER BY oid
  }
} {44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44}
do_test boundary1-2.56.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455.5 ORDER BY oid
  }
} {62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.56.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 268435455.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62}
do_test boundary1-2.56.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 45 46 48 50 51 54 55 56 58 59 61 63 64 65 67 68 69 70}
do_test boundary1-2.56.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 61 59 58 56 55 54 51 50 48 46 45 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.56.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63}
do_test boundary1-2.56.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455 ORDER BY oid DESC
  }
} {63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.56.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.56.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63}
do_test boundary1-2.56.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455.0 ORDER BY oid DESC
  }
} {63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.56.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44}
do_test boundary1-2.56.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 268435455.5 ORDER BY oid DESC
  }
} {44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.56.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 63 64 65 67 68 69 70}
do_test boundary1-2.56.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455 ORDER BY a DESC
  }
} {70 69 68 67 65 64 63 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.56.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44}
do_test boundary1-2.56.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455 ORDER BY oid DESC
  }
} {44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.56.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.56.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44}
do_test boundary1-2.56.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455.0 ORDER BY oid DESC
  }
} {44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.56.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44}
do_test boundary1-2.56.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 268435455.5 ORDER BY oid DESC
  }
} {44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.57.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=549755813887
  }
} {53 0000007f7fffffffff}
do_test boundary1-2.57.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000007f7fffffffff'
  }
} {549755813887 53}
do_test boundary1-2.57.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=53
  }
} {549755813887 0000007f7fffffffff}
do_test boundary1-2.57.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 47 49 52 57}
do_test boundary1-2.57.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887 ORDER BY a DESC
  }
} {57 52 49 47 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.57.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887 ORDER BY oid
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52}
do_test boundary1-2.57.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887 ORDER BY x
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887.0 ORDER BY oid
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52}
do_test boundary1-2.57.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887.5 ORDER BY oid
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 549755813887.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52}
do_test boundary1-2.57.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 47 49 52 53 57}
do_test boundary1-2.57.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887 ORDER BY a DESC
  }
} {57 53 52 49 47 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.57.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887 ORDER BY oid
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53}
do_test boundary1-2.57.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887 ORDER BY x
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887.0 ORDER BY oid
  }
} {53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53}
do_test boundary1-2.57.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887.5 ORDER BY oid
  }
} {52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.57.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 549755813887.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52}
do_test boundary1-2.57.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.57.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.57.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43}
do_test boundary1-2.57.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887 ORDER BY oid DESC
  }
} {43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.57.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.57.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43}
do_test boundary1-2.57.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887.0 ORDER BY oid DESC
  }
} {43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.57.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53}
do_test boundary1-2.57.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 549755813887.5 ORDER BY oid DESC
  }
} {53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.57.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.57.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.57.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53}
do_test boundary1-2.57.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887 ORDER BY oid DESC
  }
} {53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.57.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.57.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53}
do_test boundary1-2.57.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887.0 ORDER BY oid DESC
  }
} {53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.57.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53}
do_test boundary1-2.57.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 549755813887.5 ORDER BY oid DESC
  }
} {53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.58.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=128
  }
} {56 0000000000000080}
do_test boundary1-2.58.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000080'
  }
} {128 56}
do_test boundary1-2.58.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=56
  }
} {128 0000000000000080}
do_test boundary1-2.58.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 57 60 62 63 65 66 68 69}
do_test boundary1-2.58.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.58.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128 ORDER BY oid
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45}
do_test boundary1-2.58.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128 ORDER BY x
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128.0 ORDER BY oid
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45}
do_test boundary1-2.58.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128.5 ORDER BY oid
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 128.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45}
do_test boundary1-2.58.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 56 57 60 62 63 65 66 68 69}
do_test boundary1-2.58.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 56 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.58.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128 ORDER BY oid
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56}
do_test boundary1-2.58.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128 ORDER BY x
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128.0 ORDER BY oid
  }
} {56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56}
do_test boundary1-2.58.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128.5 ORDER BY oid
  }
} {45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.58.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 128.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45}
do_test boundary1-2.58.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 54 55 58 59 61 64 67 70}
do_test boundary1-2.58.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128 ORDER BY a DESC
  }
} {70 67 64 61 59 58 55 54 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.58.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64}
do_test boundary1-2.58.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128 ORDER BY oid DESC
  }
} {64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.58.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128 ORDER BY x
  }
} {5 11 50 21 54 64 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.58.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64}
do_test boundary1-2.58.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128.0 ORDER BY oid DESC
  }
} {64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.58.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56}
do_test boundary1-2.58.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 128.5 ORDER BY oid DESC
  }
} {56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.58.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 54 55 56 58 59 61 64 67 70}
do_test boundary1-2.58.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128 ORDER BY a DESC
  }
} {70 67 64 61 59 58 56 55 54 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.58.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56}
do_test boundary1-2.58.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128 ORDER BY oid DESC
  }
} {56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.58.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128 ORDER BY x
  }
} {5 11 50 21 54 64 56 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.58.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56}
do_test boundary1-2.58.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128.0 ORDER BY oid DESC
  }
} {56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.58.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56}
do_test boundary1-2.58.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 128.5 ORDER BY oid DESC
  }
} {56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.59.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-576460752303423488
  }
} {1 fffffffff8000000f800000000000000}
do_test boundary1-2.59.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='fffffffff8000000f800000000000000'
  }
} {-576460752303423488 1}
do_test boundary1-2.59.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=1
  }
} {-576460752303423488 fffffffff8000000f800000000000000}
do_test boundary1-2.59.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423488 ORDER BY a
  }
} {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 65 66 67 68 69}
do_test boundary1-2.59.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423488 ORDER BY a DESC
  }
} {69 68 67 66 65 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}
do_test boundary1-2.59.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423488 ORDER BY oid
  }
} {59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.59.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423488 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59}
do_test boundary1-2.59.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -576460752303423488 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.59.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423488 ORDER BY a
  }
} {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 65 66 67 68 69}
do_test boundary1-2.59.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423488 ORDER BY a DESC
  }
} {69 68 67 66 65 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}
do_test boundary1-2.59.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423488 ORDER BY oid
  }
} {1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.59.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423488 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1}
do_test boundary1-2.59.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -576460752303423488 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.59.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423488 ORDER BY a
  }
} {70}
do_test boundary1-2.59.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423488 ORDER BY a DESC
  }
} {70}
do_test boundary1-2.59.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423488 ORDER BY oid
  }
} {70}
do_test boundary1-2.59.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423488 ORDER BY oid DESC
  }
} {70}
do_test boundary1-2.59.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -576460752303423488 ORDER BY x
  }
} {70}
do_test boundary1-2.59.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423488 ORDER BY a
  }
} {1 70}
do_test boundary1-2.59.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423488 ORDER BY a DESC
  }
} {70 1}
do_test boundary1-2.59.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423488 ORDER BY oid
  }
} {70 1}
do_test boundary1-2.59.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423488 ORDER BY oid DESC
  }
} {1 70}
do_test boundary1-2.59.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -576460752303423488 ORDER BY x
  }
} {70 1}
do_test boundary1-2.60.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=4398046511103
  }
} {6 000003ff3ffffffffff}
do_test boundary1-2.60.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000003ff3ffffffffff'
  }
} {4398046511103 6}
do_test boundary1-2.60.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=6
  }
} {4398046511103 000003ff3ffffffffff}
do_test boundary1-2.60.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.60.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 16 9 8 7 3 2}
do_test boundary1-2.60.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103 ORDER BY oid
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39}
do_test boundary1-2.60.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103 ORDER BY x
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103.0 ORDER BY oid
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39}
do_test boundary1-2.60.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103.5 ORDER BY oid
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 4398046511103.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39}
do_test boundary1-2.60.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103 ORDER BY a
  }
} {2 3 6 7 8 9 16 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.60.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 16 9 8 7 6 3 2}
do_test boundary1-2.60.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103 ORDER BY oid
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6}
do_test boundary1-2.60.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103 ORDER BY x
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103.0 ORDER BY oid
  }
} {6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6}
do_test boundary1-2.60.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103.5 ORDER BY oid
  }
} {39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.60.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 4398046511103.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39}
do_test boundary1-2.60.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.60.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.60.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18}
do_test boundary1-2.60.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103 ORDER BY oid DESC
  }
} {18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.60.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.60.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18}
do_test boundary1-2.60.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103.0 ORDER BY oid DESC
  }
} {18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.60.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6}
do_test boundary1-2.60.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 4398046511103.5 ORDER BY oid DESC
  }
} {6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.60.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.60.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.60.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6}
do_test boundary1-2.60.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103 ORDER BY oid DESC
  }
} {6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.60.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.60.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6}
do_test boundary1-2.60.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103.0 ORDER BY oid DESC
  }
} {6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.60.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6}
do_test boundary1-2.60.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 4398046511103.5 ORDER BY oid DESC
  }
} {6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.61.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=16384
  }
} {37 0000000000004000}
do_test boundary1-2.61.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000004000'
  }
} {16384 37}
do_test boundary1-2.61.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=37
  }
} {16384 0000000000004000}
do_test boundary1-2.61.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.61.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.61.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.61.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384 ORDER BY x
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384.0 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.61.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384.5 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16384.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.61.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.61.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.61.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384 ORDER BY oid
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37}
do_test boundary1-2.61.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384 ORDER BY x
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384.0 ORDER BY oid
  }
} {37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37}
do_test boundary1-2.61.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384.5 ORDER BY oid
  }
} {19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.61.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16384.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19}
do_test boundary1-2.61.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 21 31 34 35 36 40 41 42 45 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.61.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 45 42 41 40 36 35 34 31 21 17 15 14 13 12 11 5 1}
do_test boundary1-2.61.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68}
do_test boundary1-2.61.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384 ORDER BY oid DESC
  }
} {68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.61.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.61.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68}
do_test boundary1-2.61.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384.0 ORDER BY oid DESC
  }
} {68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.61.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.61.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16384.5 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.61.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 21 31 34 35 36 37 40 41 42 45 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.61.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 45 42 41 40 37 36 35 34 31 21 17 15 14 13 12 11 5 1}
do_test boundary1-2.61.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.61.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.61.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.61.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.61.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384.0 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.61.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37}
do_test boundary1-2.61.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16384.5 ORDER BY oid DESC
  }
} {37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.62.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=34359738367
  }
} {60 000000077ffffffff}
do_test boundary1-2.62.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000077ffffffff'
  }
} {34359738367 60}
do_test boundary1-2.62.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=60
  }
} {34359738367 000000077ffffffff}
do_test boundary1-2.62.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 43 47 49 52 53 57}
do_test boundary1-2.62.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367 ORDER BY a DESC
  }
} {57 53 52 49 47 43 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.62.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367 ORDER BY oid
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43}
do_test boundary1-2.62.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367 ORDER BY x
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367.0 ORDER BY oid
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43}
do_test boundary1-2.62.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367.5 ORDER BY oid
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 34359738367.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43}
do_test boundary1-2.62.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 43 47 49 52 53 57 60}
do_test boundary1-2.62.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367 ORDER BY a DESC
  }
} {60 57 53 52 49 47 43 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.62.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367 ORDER BY oid
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60}
do_test boundary1-2.62.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367 ORDER BY x
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367.0 ORDER BY oid
  }
} {60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60}
do_test boundary1-2.62.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367.5 ORDER BY oid
  }
} {43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.62.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 34359738367.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43}
do_test boundary1-2.62.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.62.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.62.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27}
do_test boundary1-2.62.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367 ORDER BY oid DESC
  }
} {27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.62.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.62.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27}
do_test boundary1-2.62.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367.0 ORDER BY oid DESC
  }
} {27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.62.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60}
do_test boundary1-2.62.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 34359738367.5 ORDER BY oid DESC
  }
} {60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.62.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 44 45 46 48 50 51 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.62.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 51 50 48 46 45 44 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.62.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60}
do_test boundary1-2.62.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367 ORDER BY oid DESC
  }
} {60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.62.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.62.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60}
do_test boundary1-2.62.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367.0 ORDER BY oid DESC
  }
} {60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.62.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60}
do_test boundary1-2.62.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 34359738367.5 ORDER BY oid DESC
  }
} {60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.63.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=281474976710656
  }
} {29 000100001000000000000}
do_test boundary1-2.63.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000100001000000000000'
  }
} {281474976710656 29}
do_test boundary1-2.63.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=29
  }
} {281474976710656 000100001000000000000}
do_test boundary1-2.63.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710656 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 30 33 49 57}
do_test boundary1-2.63.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710656 ORDER BY a DESC
  }
} {57 49 33 30 26 24 16 9 8 7 3 2}
do_test boundary1-2.63.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710656 ORDER BY oid
  }
} {33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.63.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710656 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33}
do_test boundary1-2.63.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 281474976710656 ORDER BY x
  }
} {33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.63.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710656 ORDER BY a
  }
} {2 3 7 8 9 16 24 26 29 30 33 49 57}
do_test boundary1-2.63.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710656 ORDER BY a DESC
  }
} {57 49 33 30 29 26 24 16 9 8 7 3 2}
do_test boundary1-2.63.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710656 ORDER BY oid
  }
} {29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.63.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710656 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29}
do_test boundary1-2.63.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 281474976710656 ORDER BY x
  }
} {29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.63.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710656 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.63.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710656 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 32 31 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.63.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710656 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32}
do_test boundary1-2.63.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710656 ORDER BY oid DESC
  }
} {32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.63.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 281474976710656 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.63.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710656 ORDER BY a
  }
} {1 4 5 6 10 11 12 13 14 15 17 18 19 20 21 22 23 25 27 28 29 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.63.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710656 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 32 31 29 28 27 25 23 22 21 20 19 18 17 15 14 13 12 11 10 6 5 4 1}
do_test boundary1-2.63.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710656 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29}
do_test boundary1-2.63.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710656 ORDER BY oid DESC
  }
} {29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.63.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 281474976710656 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.64.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=3
  }
} {21 0000000000000003}
do_test boundary1-2.64.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000003'
  }
} {3 21}
do_test boundary1-2.64.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=21
  }
} {3 0000000000000003}
do_test boundary1-2.64.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.64.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.64.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3 ORDER BY oid
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54}
do_test boundary1-2.64.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3 ORDER BY x
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3.0 ORDER BY oid
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54}
do_test boundary1-2.64.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3.5 ORDER BY oid
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 3.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54}
do_test boundary1-2.64.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 45 46 47 48 49 52 53 54 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.64.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 54 53 52 49 48 47 46 45 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.64.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.64.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3 ORDER BY x
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3.0 ORDER BY oid
  }
} {21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21}
do_test boundary1-2.64.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3.5 ORDER BY oid
  }
} {54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.64.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 3.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54}
do_test boundary1-2.64.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3 ORDER BY a
  }
} {1 5 11 12 13 15 17 31 34 35 36 40 41 42 50 51 55 58 59 61 67 70}
do_test boundary1-2.64.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 50 42 41 40 36 35 34 31 17 15 13 12 11 5 1}
do_test boundary1-2.64.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.64.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.64.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3 ORDER BY x
  }
} {5 11 50 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.64.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50}
do_test boundary1-2.64.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3.0 ORDER BY oid DESC
  }
} {50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.64.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21}
do_test boundary1-2.64.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 3.5 ORDER BY oid DESC
  }
} {21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.64.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 50 51 55 58 59 61 67 70}
do_test boundary1-2.64.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3 ORDER BY a DESC
  }
} {70 67 61 59 58 55 51 50 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.64.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21}
do_test boundary1-2.64.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3 ORDER BY oid DESC
  }
} {21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.64.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3 ORDER BY x
  }
} {5 11 50 21 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.64.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21}
do_test boundary1-2.64.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3.0 ORDER BY oid DESC
  }
} {21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.64.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21}
do_test boundary1-2.64.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 3.5 ORDER BY oid DESC
  }
} {21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.65.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=16777215
  }
} {69 0000000000ffffff}
do_test boundary1-2.65.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000ffffff'
  }
} {16777215 69}
do_test boundary1-2.65.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=69
  }
} {16777215 0000000000ffffff}
do_test boundary1-2.65.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 44 47 49 52 53 57 60 62 63 66}
do_test boundary1-2.65.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215 ORDER BY a DESC
  }
} {66 63 62 60 57 53 52 49 47 44 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.65.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215 ORDER BY oid
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63}
do_test boundary1-2.65.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215 ORDER BY x
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215.0 ORDER BY oid
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63}
do_test boundary1-2.65.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215.5 ORDER BY oid
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 16777215.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63}
do_test boundary1-2.65.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215 ORDER BY a
  }
} {2 3 4 6 7 8 9 16 18 20 23 24 26 27 28 29 30 32 33 39 43 44 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.65.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 44 43 39 33 32 30 29 28 27 26 24 23 20 18 16 9 8 7 6 4 3 2}
do_test boundary1-2.65.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215 ORDER BY oid
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69}
do_test boundary1-2.65.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215 ORDER BY x
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215.0 ORDER BY oid
  }
} {69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69}
do_test boundary1-2.65.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215.5 ORDER BY oid
  }
} {63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.65.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 16777215.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63}
do_test boundary1-2.65.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.65.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.65.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38}
do_test boundary1-2.65.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215 ORDER BY oid DESC
  }
} {38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.65.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.65.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38}
do_test boundary1-2.65.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215.0 ORDER BY oid DESC
  }
} {38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.65.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69}
do_test boundary1-2.65.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 16777215.5 ORDER BY oid DESC
  }
} {69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.65.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215 ORDER BY a
  }
} {1 5 10 11 12 13 14 15 17 19 21 22 25 31 34 35 36 37 38 40 41 42 45 46 48 50 51 54 55 56 58 59 61 64 65 67 68 69 70}
do_test boundary1-2.65.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215 ORDER BY a DESC
  }
} {70 69 68 67 65 64 61 59 58 56 55 54 51 50 48 46 45 42 41 40 38 37 36 35 34 31 25 22 21 19 17 15 14 13 12 11 10 5 1}
do_test boundary1-2.65.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69}
do_test boundary1-2.65.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215 ORDER BY oid DESC
  }
} {69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.65.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.65.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69}
do_test boundary1-2.65.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215.0 ORDER BY oid DESC
  }
} {69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.65.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69}
do_test boundary1-2.65.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 16777215.5 ORDER BY oid DESC
  }
} {69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.66.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=256
  }
} {14 0000000000000100}
do_test boundary1-2.66.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='0000000000000100'
  }
} {256 14}
do_test boundary1-2.66.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=14
  }
} {256 0000000000000100}
do_test boundary1-2.66.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 68 69}
do_test boundary1-2.66.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.66.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.66.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256 ORDER BY x
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.0 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.66.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.5 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.66.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 14 16 18 19 20 22 23 24 25 26 27 28 29 30 32 33 37 38 39 43 44 46 47 48 49 52 53 57 60 62 63 65 66 68 69}
do_test boundary1-2.66.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256 ORDER BY a DESC
  }
} {69 68 66 65 63 62 60 57 53 52 49 48 47 46 44 43 39 38 37 33 32 30 29 28 27 26 25 24 23 22 20 19 18 16 14 10 9 8 7 6 4 3 2}
do_test boundary1-2.66.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.66.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256 ORDER BY x
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.0 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.66.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.5 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.66.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.66.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256 ORDER BY a
  }
} {1 5 11 12 13 15 17 21 31 34 35 36 40 41 42 45 50 51 54 55 56 58 59 61 64 67 70}
do_test boundary1-2.66.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256 ORDER BY a DESC
  }
} {70 67 64 61 59 58 56 55 54 51 50 45 42 41 40 36 35 34 31 21 17 15 13 12 11 5 1}
do_test boundary1-2.66.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.66.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.66.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.66.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.66.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.0 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.66.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.66.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.5 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.66.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 21 31 34 35 36 40 41 42 45 50 51 54 55 56 58 59 61 64 67 70}
do_test boundary1-2.66.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256 ORDER BY a DESC
  }
} {70 67 64 61 59 58 56 55 54 51 50 45 42 41 40 36 35 34 31 21 17 15 14 13 12 11 5 1}
do_test boundary1-2.66.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.66.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.66.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.66.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.66.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.0 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.66.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.66.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.5 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.67.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775807 ORDER BY a
  }
} {26}
do_test boundary1-2.67.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775807 ORDER BY a DESC
  }
} {26}
do_test boundary1-2.67.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775807 ORDER BY oid
  }
} {26}
do_test boundary1-2.67.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775807 ORDER BY oid DESC
  }
} {26}
do_test boundary1-2.67.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9223372036854775807 ORDER BY x
  }
} {26}
do_test boundary1-2.67.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.0 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.67.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.67.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.5 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.67.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 256.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.67.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775807 ORDER BY a
  }
} {3 26}
do_test boundary1-2.67.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775807 ORDER BY a DESC
  }
} {26 3}
do_test boundary1-2.67.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775807 ORDER BY oid
  }
} {3 26}
do_test boundary1-2.67.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775807 ORDER BY oid DESC
  }
} {26 3}
do_test boundary1-2.67.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9223372036854775807 ORDER BY x
  }
} {3 26}
do_test boundary1-2.67.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.0 ORDER BY oid
  }
} {14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.67.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14}
do_test boundary1-2.67.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.5 ORDER BY oid
  }
} {68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.67.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 256.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68}
do_test boundary1-2.67.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775807 ORDER BY a
  }
} {1 2 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 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 65 66 67 68 69 70}
do_test boundary1-2.67.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775807 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 2 1}
do_test boundary1-2.67.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775807 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16}
do_test boundary1-2.67.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775807 ORDER BY oid DESC
  }
} {16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.67.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9223372036854775807 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.67.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45}
do_test boundary1-2.67.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.0 ORDER BY oid DESC
  }
} {45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.67.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.67.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 256.5 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.67.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775807 ORDER BY a
  }
} {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 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 65 66 67 68 69 70}
do_test boundary1-2.67.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775807 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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 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}
do_test boundary1-2.67.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775807 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3}
do_test boundary1-2.67.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775807 ORDER BY oid DESC
  }
} {3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.67.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9223372036854775807 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.67.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.67.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.0 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.67.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14}
do_test boundary1-2.67.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 256.5 ORDER BY oid DESC
  }
} {14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.68.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=-32768
  }
} {42 ffffffffffffffffffffffffffff8000}
do_test boundary1-2.68.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='ffffffffffffffffffffffffffff8000'
  }
} {-32768 42}
do_test boundary1-2.68.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=42
  }
} {-32768 ffffffffffffffffffffffffffff8000}
do_test boundary1-2.68.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.68.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.68.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768 ORDER BY oid
  }
} {51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.68.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51}
do_test boundary1-2.68.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 51 13 15 55 34}
do_test boundary1-2.68.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768.0 ORDER BY oid
  }
} {51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.68.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51}
do_test boundary1-2.68.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768.5 ORDER BY oid
  }
} {42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.68.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > -32768.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42}
do_test boundary1-2.68.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768 ORDER BY a
  }
} {2 3 4 5 6 7 8 9 10 11 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 34 37 38 39 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 60 62 63 64 65 66 68 69}
do_test boundary1-2.68.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768 ORDER BY a DESC
  }
} {69 68 66 65 64 63 62 60 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 39 38 37 34 33 32 30 29 28 27 26 25 24 23 22 21 20 19 18 16 15 14 13 11 10 9 8 7 6 5 4 3 2}
do_test boundary1-2.68.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768 ORDER BY oid
  }
} {42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.68.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42}
do_test boundary1-2.68.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 42 51 13 15 55 34}
do_test boundary1-2.68.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768.0 ORDER BY oid
  }
} {42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.68.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42}
do_test boundary1-2.68.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768.5 ORDER BY oid
  }
} {42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.68.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -32768.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42}
do_test boundary1-2.68.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768 ORDER BY a
  }
} {1 12 17 31 35 36 40 41 58 59 61 67 70}
do_test boundary1-2.68.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768 ORDER BY a DESC
  }
} {70 67 61 59 58 41 40 36 35 31 17 12 1}
do_test boundary1-2.68.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.68.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768 ORDER BY oid DESC
  }
} {17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.68.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.68.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.68.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768.0 ORDER BY oid DESC
  }
} {17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.68.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.68.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < -32768.5 ORDER BY oid DESC
  }
} {17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.68.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768 ORDER BY a
  }
} {1 12 17 31 35 36 40 41 42 58 59 61 67 70}
do_test boundary1-2.68.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768 ORDER BY a DESC
  }
} {70 67 61 59 58 42 41 40 36 35 31 17 12 1}
do_test boundary1-2.68.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.68.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768 ORDER BY oid DESC
  }
} {42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.68.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768 ORDER BY x
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.68.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42}
do_test boundary1-2.68.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768.0 ORDER BY oid DESC
  }
} {42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.68.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17}
do_test boundary1-2.68.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -32768.5 ORDER BY oid DESC
  }
} {17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.69.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=1099511627775
  }
} {20 000000ffffffffffff}
do_test boundary1-2.69.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000ffffffffffff'
  }
} {1099511627775 20}
do_test boundary1-2.69.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=20
  }
} {1099511627775 000000ffffffffffff}
do_test boundary1-2.69.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.69.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 18 16 9 8 7 6 3 2}
do_test boundary1-2.69.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775 ORDER BY oid
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18}
do_test boundary1-2.69.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775 ORDER BY x
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775.0 ORDER BY oid
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18}
do_test boundary1-2.69.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775.5 ORDER BY oid
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 1099511627775.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18}
do_test boundary1-2.69.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775 ORDER BY a
  }
} {2 3 6 7 8 9 16 18 20 24 26 28 29 30 32 33 39 47 49 57}
do_test boundary1-2.69.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775 ORDER BY a DESC
  }
} {57 49 47 39 33 32 30 29 28 26 24 20 18 16 9 8 7 6 3 2}
do_test boundary1-2.69.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775 ORDER BY oid
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20}
do_test boundary1-2.69.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775 ORDER BY x
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775.0 ORDER BY oid
  }
} {20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20}
do_test boundary1-2.69.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775.5 ORDER BY oid
  }
} {18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.69.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 1099511627775.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18}
do_test boundary1-2.69.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.69.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.69.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52}
do_test boundary1-2.69.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775 ORDER BY oid DESC
  }
} {52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.69.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.69.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52}
do_test boundary1-2.69.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775.0 ORDER BY oid DESC
  }
} {52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.69.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20}
do_test boundary1-2.69.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 1099511627775.5 ORDER BY oid DESC
  }
} {20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.69.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775 ORDER BY a
  }
} {1 4 5 10 11 12 13 14 15 17 19 20 21 22 23 25 27 31 34 35 36 37 38 40 41 42 43 44 45 46 48 50 51 52 53 54 55 56 58 59 60 61 62 63 64 65 66 67 68 69 70}
do_test boundary1-2.69.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775 ORDER BY a DESC
  }
} {70 69 68 67 66 65 64 63 62 61 60 59 58 56 55 54 53 52 51 50 48 46 45 44 43 42 41 40 38 37 36 35 34 31 27 25 23 22 21 20 19 17 15 14 13 12 11 10 5 4 1}
do_test boundary1-2.69.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20}
do_test boundary1-2.69.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775 ORDER BY oid DESC
  }
} {20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.69.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.69.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20}
do_test boundary1-2.69.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775.0 ORDER BY oid DESC
  }
} {20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.69.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20}
do_test boundary1-2.69.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 1099511627775.5 ORDER BY oid DESC
  }
} {20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.70.1 {
  db eval {
    SELECT a, x FROM t1 WHERE oid=65535
  }
} {65 000000000000ffff}
do_test boundary1-2.70.2 {
  db eval {
    SELECT oid, a FROM t1 WHERE x='000000000000ffff'
  }
} {65535 65}
do_test boundary1-2.70.3 {
  db eval {
    SELECT oid, x FROM t1 WHERE a=65
  }
} {65535 000000000000ffff}
do_test boundary1-2.70.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 49 52 53 57 60 62 63 66 69}
do_test boundary1-2.70.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535 ORDER BY a DESC
  }
} {69 66 63 62 60 57 53 52 49 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.70.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535 ORDER BY oid
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10}
do_test boundary1-2.70.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535 ORDER BY x
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.gt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535.0 ORDER BY oid
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.gt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10}
do_test boundary1-2.70.gt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535.5 ORDER BY oid
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.gt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid > 65535.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10}
do_test boundary1-2.70.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535 ORDER BY a
  }
} {2 3 4 6 7 8 9 10 16 18 20 22 23 24 25 26 27 28 29 30 32 33 38 39 43 44 46 47 49 52 53 57 60 62 63 65 66 69}
do_test boundary1-2.70.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535 ORDER BY a DESC
  }
} {69 66 65 63 62 60 57 53 52 49 47 46 44 43 39 38 33 32 30 29 28 27 26 25 24 23 22 20 18 16 10 9 8 7 6 4 3 2}
do_test boundary1-2.70.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.70.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535 ORDER BY x
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.ge.10 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535.0 ORDER BY oid
  }
} {65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.ge.11 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535.0 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65}
do_test boundary1-2.70.ge.12 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535.5 ORDER BY oid
  }
} {10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.70.ge.13 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 65535.5 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10}
do_test boundary1-2.70.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 48 50 51 54 55 56 58 59 61 64 67 68 70}
do_test boundary1-2.70.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535 ORDER BY a DESC
  }
} {70 68 67 64 61 59 58 56 55 54 51 50 48 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 5 1}
do_test boundary1-2.70.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.70.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.70.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.70.lt.10 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48}
do_test boundary1-2.70.lt.11 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535.0 ORDER BY oid DESC
  }
} {48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.70.lt.12 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65}
do_test boundary1-2.70.lt.13 {
  db eval {
    SELECT a FROM t1 WHERE oid < 65535.5 ORDER BY oid DESC
  }
} {65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.70.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535 ORDER BY a
  }
} {1 5 11 12 13 14 15 17 19 21 31 34 35 36 37 40 41 42 45 48 50 51 54 55 56 58 59 61 64 65 67 68 70}
do_test boundary1-2.70.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535 ORDER BY a DESC
  }
} {70 68 67 65 64 61 59 58 56 55 54 51 50 48 45 42 41 40 37 36 35 34 31 21 19 17 15 14 13 12 11 5 1}
do_test boundary1-2.70.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65}
do_test boundary1-2.70.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535 ORDER BY oid DESC
  }
} {65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.70.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.70.le.10 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535.0 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65}
do_test boundary1-2.70.le.11 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535.0 ORDER BY oid DESC
  }
} {65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.70.le.12 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535.5 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65}
do_test boundary1-2.70.le.13 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 65535.5 ORDER BY oid DESC
  }
} {65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.71.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9.22337303685477580800e+18 ORDER BY a
  }
} {}
do_test boundary1-2.71.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9.22337303685477580800e+18 ORDER BY a DESC
  }
} {}
do_test boundary1-2.71.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9.22337303685477580800e+18 ORDER BY oid
  }
} {}
do_test boundary1-2.71.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {}
do_test boundary1-2.71.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > 9.22337303685477580800e+18 ORDER BY x
  }
} {}
do_test boundary1-2.71.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9.22337303685477580800e+18 ORDER BY a
  }
} {}
do_test boundary1-2.71.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9.22337303685477580800e+18 ORDER BY a DESC
  }
} {}
do_test boundary1-2.71.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9.22337303685477580800e+18 ORDER BY oid
  }
} {}
do_test boundary1-2.71.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {}
do_test boundary1-2.71.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= 9.22337303685477580800e+18 ORDER BY x
  }
} {}
do_test boundary1-2.71.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9.22337303685477580800e+18 ORDER BY a
  }
} {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 65 66 67 68 69 70}
do_test boundary1-2.71.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9.22337303685477580800e+18 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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}
do_test boundary1-2.71.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9.22337303685477580800e+18 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.71.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.71.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < 9.22337303685477580800e+18 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.71.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9.22337303685477580800e+18 ORDER BY a
  }
} {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 65 66 67 68 69 70}
do_test boundary1-2.71.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9.22337303685477580800e+18 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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}
do_test boundary1-2.71.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9.22337303685477580800e+18 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.71.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.71.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= 9.22337303685477580800e+18 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.72.gt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid > -9.22337303685477580800e+18 ORDER BY a
  }
} {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 65 66 67 68 69 70}
do_test boundary1-2.72.gt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid > -9.22337303685477580800e+18 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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}
do_test boundary1-2.72.gt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid > -9.22337303685477580800e+18 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.72.gt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid > -9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.72.gt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid > -9.22337303685477580800e+18 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.72.ge.1 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -9.22337303685477580800e+18 ORDER BY a
  }
} {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 65 66 67 68 69 70}
do_test boundary1-2.72.ge.2 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -9.22337303685477580800e+18 ORDER BY a DESC
  }
} {70 69 68 67 66 65 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}
do_test boundary1-2.72.ge.3 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -9.22337303685477580800e+18 ORDER BY oid
  }
} {70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34 5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26}
do_test boundary1-2.72.ge.4 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {26 3 16 8 57 2 24 49 7 9 30 33 29 32 47 28 39 6 18 20 52 53 43 60 27 66 23 4 62 44 63 69 38 25 22 46 10 65 48 19 37 68 14 45 56 64 54 21 50 11 5 34 55 15 13 51 42 17 58 31 36 40 35 61 12 41 67 59 1 70}
do_test boundary1-2.72.ge.5 {
  db eval {
    SELECT a FROM t1 WHERE oid >= -9.22337303685477580800e+18 ORDER BY x
  }
} {5 11 50 21 54 64 56 45 14 68 37 19 48 65 10 46 22 25 38 69 63 44 62 4 23 66 27 60 43 53 52 20 18 6 39 28 47 32 29 33 30 9 7 49 24 2 57 8 16 3 26 70 1 59 67 41 12 61 35 40 36 31 58 17 42 51 13 15 55 34}
do_test boundary1-2.72.lt.1 {
  db eval {
    SELECT a FROM t1 WHERE oid < -9.22337303685477580800e+18 ORDER BY a
  }
} {}
do_test boundary1-2.72.lt.2 {
  db eval {
    SELECT a FROM t1 WHERE oid < -9.22337303685477580800e+18 ORDER BY a DESC
  }
} {}
do_test boundary1-2.72.lt.3 {
  db eval {
    SELECT a FROM t1 WHERE oid < -9.22337303685477580800e+18 ORDER BY oid
  }
} {}
do_test boundary1-2.72.lt.4 {
  db eval {
    SELECT a FROM t1 WHERE oid < -9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {}
do_test boundary1-2.72.lt.5 {
  db eval {
    SELECT a FROM t1 WHERE oid < -9.22337303685477580800e+18 ORDER BY x
  }
} {}
do_test boundary1-2.72.le.1 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -9.22337303685477580800e+18 ORDER BY a
  }
} {}
do_test boundary1-2.72.le.2 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -9.22337303685477580800e+18 ORDER BY a DESC
  }
} {}
do_test boundary1-2.72.le.3 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -9.22337303685477580800e+18 ORDER BY oid
  }
} {}
do_test boundary1-2.72.le.4 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -9.22337303685477580800e+18 ORDER BY oid DESC
  }
} {}
do_test boundary1-2.72.le.5 {
  db eval {
    SELECT a FROM t1 WHERE oid <= -9.22337303685477580800e+18 ORDER BY x
  }
} {}
finish_test