Add further pseudo-randomly generated test cases to where8.test. (CVS 6083)

FossilOrigin-Name: e01f6ef9d981d50a70c05edc4ef8135dbc473ba1
This commit is contained in:
danielk1977 2008-12-30 16:13:04 +00:00
parent c1071e53e7
commit 13da67e5aa
3 changed files with 187 additions and 8 deletions

View File

@ -1,5 +1,5 @@
C Fix\sa\sbug\sin\swhere8.test\scausing\sa\stcl\sexception.\s(CVS\s6082)
D 2008-12-30T15:51:41
C Add\sfurther\spseudo-randomly\sgenerated\stest\scases\sto\swhere8.test.\s(CVS\s6083)
D 2008-12-30T16:13:05
F Makefile.arm-wince-mingw32ce-gcc fcd5e9cd67fe88836360bb4f9ef4cb7f8e2fb5a0
F Makefile.in 77635d0909c2067cee03889a1e04ce910d8fb809
F Makefile.linux-gcc d53183f4aa6a9192d249731c90dbdffbd2c68654
@ -656,7 +656,7 @@ F test/where4.test e9b9e2f2f98f00379e6031db6a6fca29bae782a2
F test/where5.test fdf66f96d29a064b63eb543e28da4dfdccd81ad2
F test/where6.test 42c4373595f4409d9c6a9987b4a60000ad664faf
F test/where7.test c56c34e84f2bf8d4c787cf8ee6ce8b705468b8cb
F test/where8.test 680fc5278a77709afd80526bbae0a326628d3184
F test/where8.test 1b9152a086408ee789166d0a954abc597372f868
F test/where8m.test c1010d61826412ff66abd29bfb32e5d6b37d965c
F test/wherelimit.test 5e9fd41e79bb2b2d588ed999d641d9c965619b31
F test/zeroblob.test 792124852ec61458a2eb527b5091791215e0be95
@ -688,7 +688,7 @@ F tool/speedtest16.c c8a9c793df96db7e4933f0852abb7a03d48f2e81
F tool/speedtest2.tcl ee2149167303ba8e95af97873c575c3e0fab58ff
F tool/speedtest8.c 2902c46588c40b55661e471d7a86e4dd71a18224
F tool/speedtest8inst1.c 293327bc76823f473684d589a8160bde1f52c14e
P ac28aa8b618d59628c5b8fc6fe649ec14f554b11
R ff8796835ba883e74d2419a85be100d0
P 495b569a3921042c36667a415c1353201760fa17
R 5dfef49174bd82899cc28305edc9866a
U danielk1977
Z f6786d2448cb48676272fa103a43dbba
Z 5e1f1c5c99ca283548315c44a5900cdb

View File

@ -1 +1 @@
495b569a3921042c36667a415c1353201760fa17
e01f6ef9d981d50a70c05edc4ef8135dbc473ba1

View File

@ -12,7 +12,7 @@
# is testing of where.c. More specifically, the focus is the optimization
# of WHERE clauses that feature the OR operator.
#
# $Id: where8.test,v 1.4 2008/12/30 15:51:41 danielk1977 Exp $
# $Id: where8.test,v 1.5 2008/12/30 16:13:05 danielk1977 Exp $
set testdir [file dirname $argv0]
source $testdir/tester.tcl
@ -461,6 +461,185 @@ foreach idxsql {
19 { SELECT * FROM t3 WHERE c IN ('other', 'all', 'snapshots') AND a>1 }
20 { SELECT * FROM t3 WHERE c IS NULL AND a>'one' }
21 { SELECT * FROM t3 WHERE c IS NULL OR a>'one' }
22 { SELECT * FROM t3 WHERE b = b AND a > 'are' }
23 { SELECT * FROM t3 WHERE c <= b OR b < 'snapshots' }
24 { SELECT * FROM t3 WHERE 'onlookers' >= c AND a <= b OR b = 'angle' }
25 { SELECT * FROM t3 WHERE b = 'from' }
26 { SELECT * FROM t3 WHERE b = 4543.266482 }
27 { SELECT * FROM t3 WHERE c < 3282306647 }
28 { SELECT * FROM t3 WHERE c IS NULL AND b >= c }
29 { SELECT * FROM t3 WHERE b > 0.4811174502 AND c = 'other' AND 'viewed' > a }
30 { SELECT * FROM t3 WHERE c = 'peak' }
31 { SELECT * FROM t3 WHERE c < 53594.08128 OR c <= b }
32 { SELECT * FROM t3 WHERE 'writings' <= b }
33 { SELECT * FROM t3 WHERE 2643383279 = b OR c < b AND b <= 3282306647 }
34 { SELECT * FROM t3 WHERE a IS NULL }
35 { SELECT * FROM t3 WHERE 'writings' = a OR b = 378678316.5 }
36 { SELECT * FROM t3 WHERE 'and' >= c }
37 { SELECT * FROM t3 WHERE c < 'from' }
38 { SELECT * FROM t3 WHERE 'his' < c OR b < b }
39 { SELECT * FROM t3 WHERE 53594.08128 = b AND c >= b }
40 { SELECT * FROM t3 WHERE 'unalike' < c AND 'are' >= c AND a <= b }
41 { SELECT * FROM t3 WHERE b >= 4543.266482 OR 'Alpine' > a OR 271.2019091 <= a }
42 { SELECT * FROM t3 WHERE b = c }
43 { SELECT * FROM t3 WHERE c > a AND b < 'all' }
44 { SELECT * FROM t3 WHERE c BETWEEN 'hills' AND 'snapshots' AND c <= 'the' OR c = a }
45 { SELECT * FROM t3 WHERE b > c AND c >= 'hills' }
46 { SELECT * FROM t3 WHERE b > 'or' OR a <= 'hills' OR c IS NULL }
47 { SELECT * FROM t3 WHERE c > b OR b BETWEEN 1339.360726 AND 'onlookers' OR 1415926535 >= b }
48 { SELECT * FROM t3 WHERE a IS NULL }
49 { SELECT * FROM t3 WHERE a > 'other' }
50 { SELECT * FROM t3 WHERE 'the' <= c AND a <= c }
51 { SELECT * FROM t3 WHERE 346.0348610 = a AND c = b }
52 { SELECT * FROM t3 WHERE c BETWEEN 50.58223172 AND 'same' AND a < b }
53 { SELECT * FROM t3 WHERE 'Alpine' <= b AND c >= 'angle' OR b <= 271.2019091 }
54 { SELECT * FROM t3 WHERE a < a AND 1415926535 > b }
55 { SELECT * FROM t3 WHERE c > a AND 'have' >= c }
56 { SELECT * FROM t3 WHERE b <= b AND c > b }
57 { SELECT * FROM t3 WHERE a IS NULL AND c <= c }
58 { SELECT * FROM t3 WHERE b < c OR b = c }
59 { SELECT * FROM t3 WHERE c < b AND b >= 'it' }
60 { SELECT * FROM t3 WHERE a = b AND a <= b OR b >= a }
61 { SELECT * FROM t3 WHERE b = c }
62 { SELECT * FROM t3 WHERE c BETWEEN 'the' AND 271.2019091 OR c <= 3282306647 AND c >= b }
63 { SELECT * FROM t3 WHERE c >= c AND c < 'writings' }
64 { SELECT * FROM t3 WHERE c <= 3282306647 AND b > a OR 'unalike' <= a }
65 { SELECT * FROM t3 WHERE a > c }
66 { SELECT * FROM t3 WHERE c = 'it' OR b >= b }
67 { SELECT * FROM t3 WHERE c = a OR b < c }
68 { SELECT * FROM t3 WHERE b > a }
69 { SELECT * FROM t3 WHERE a < b OR a > 4543.266482 OR 'same' = b }
70 { SELECT * FROM t3 WHERE c < c OR b <= c OR a <= b }
71 { SELECT * FROM t3 WHERE c > a }
72 { SELECT * FROM t3 WHERE c > b }
73 { SELECT * FROM t3 WHERE b <= a }
74 { SELECT * FROM t3 WHERE 3282306647 < b AND a >= 'or' OR a >= 378678316.5 }
75 { SELECT * FROM t3 WHERE 50.58223172 <= c OR c = c AND b < b }
76 { SELECT * FROM t3 WHERE 'and' < b OR b < c OR c > 1339.360726 }
77 { SELECT * FROM t3 WHERE b <= c }
78 { SELECT * FROM t3 WHERE 'in' <= c }
79 { SELECT * FROM t3 WHERE c <= b AND a > a AND c < b }
80 { SELECT * FROM t3 WHERE 'over' < b }
81 { SELECT * FROM t3 WHERE b >= b OR b < c OR a < b }
82 { SELECT * FROM t3 WHERE 'towering' <= b OR 'towering' = a AND c > b }
83 { SELECT * FROM t3 WHERE 'peak' = a OR b BETWEEN 2643383279 AND 'the' }
84 { SELECT * FROM t3 WHERE 'an' < c AND c > 'the' AND c IS NULL }
85 { SELECT * FROM t3 WHERE a <= 'sometimes' AND a BETWEEN 'unalike' AND 1339.360726 }
86 { SELECT * FROM t3 WHERE 1339.360726 < c AND c IS NULL }
87 { SELECT * FROM t3 WHERE b > 'the' }
88 { SELECT * FROM t3 WHERE 'and' = a }
89 { SELECT * FROM t3 WHERE b >= b }
90 { SELECT * FROM t3 WHERE b >= 8979323846 }
91 { SELECT * FROM t3 WHERE c <= a }
92 { SELECT * FROM t3 WHERE a BETWEEN 'have' AND 'light' OR a > b OR a >= 378678316.5 }
93 { SELECT * FROM t3 WHERE c > 3282306647 }
94 { SELECT * FROM t3 WHERE b > c }
95 { SELECT * FROM t3 WHERE b >= a AND 'villages' > a AND b >= c }
96 { SELECT * FROM t3 WHERE 'angle' > a }
97 { SELECT * FROM t3 WHERE 'paintings' >= a }
98 { SELECT * FROM t3 WHERE 'or' >= c }
99 { SELECT * FROM t3 WHERE c < b }
101 { SELECT * FROM t3, t4 WHERE f < 'sometimes' OR 'over' <= g AND h < 1415926535 }
102 { SELECT * FROM t3, t4 WHERE h >= 'from' AND h < 6939937510 OR g > h }
103 { SELECT * FROM t3, t4 WHERE c <= h AND g = h AND c >= 'all' }
104 { SELECT * FROM t3, t4 WHERE c = a }
105 { SELECT * FROM t3, t4 WHERE 'of' >= h }
106 { SELECT * FROM t3, t4 WHERE f >= b AND a < g AND h < 'and' }
107 { SELECT * FROM t3, t4 WHERE f <= 8628034825 AND 0938446095 >= b }
108 { SELECT * FROM t3, t4 WHERE a < 'the' }
109 { SELECT * FROM t3, t4 WHERE f = 'sometimes' OR b < 'of' }
110 { SELECT * FROM t3, t4 WHERE c IS NULL }
111 { SELECT * FROM t3, t4 WHERE 'have' = b OR g <= 346.0348610 }
112 { SELECT * FROM t3, t4 WHERE f > b AND b <= h }
113 { SELECT * FROM t3, t4 WHERE f > c OR 'the' = a OR 50.58223172 = a }
114 { SELECT * FROM t3, t4 WHERE 2643383279 <= a AND c = a }
115 { SELECT * FROM t3, t4 WHERE h >= b AND 'it' <= b }
116 { SELECT * FROM t3, t4 WHERE g BETWEEN 'from' AND 'peak' }
117 { SELECT * FROM t3, t4 WHERE 'their' > a AND g > b AND f <= c }
118 { SELECT * FROM t3, t4 WHERE h = 5028841971 AND 'unalike' <= f }
119 { SELECT * FROM t3, t4 WHERE c IS NULL AND a = 3282306647 OR a <= 'Alpine' }
120 { SELECT * FROM t3, t4 WHERE 'sometimes' <= f OR 8214808651 >= a AND b <= 53594.08128 }
121 { SELECT * FROM t3, t4 WHERE 6939937510 <= f OR c < f OR 'sometimes' = c }
122 { SELECT * FROM t3, t4 WHERE b < 'onlookers' AND 'paintings' = g AND c <= h }
123 { SELECT * FROM t3, t4 WHERE a BETWEEN 'all' AND 'from' OR c > 346.0348610 }
124 { SELECT * FROM t3, t4 WHERE 'from' <= b OR a BETWEEN 53594.08128 AND 'their' AND c > a }
125 { SELECT * FROM t3, t4 WHERE h = 2643383279 }
126 { SELECT * FROM t3, t4 WHERE a <= 'the' }
127 { SELECT * FROM t3, t4 WHERE h <= c }
128 { SELECT * FROM t3, t4 WHERE g <= 346.0348610 AND 66.59334461 >= f AND f <= f }
129 { SELECT * FROM t3, t4 WHERE g >= c OR 'in' < b OR b > g }
130 { SELECT * FROM t3, t4 WHERE 'over' > g AND b BETWEEN 'unalike' AND 'remarkably' }
131 { SELECT * FROM t3, t4 WHERE h <= 2847564.823 }
132 { SELECT * FROM t3, t4 WHERE h <= 'remarkably' AND 4543.266482 > h }
133 { SELECT * FROM t3, t4 WHERE a >= c AND 'it' > g AND c < c }
134 { SELECT * FROM t3, t4 WHERE h <= 66.59334461 AND b > 3421170679 }
135 { SELECT * FROM t3, t4 WHERE h < 'are' OR f BETWEEN 0938446095 AND 'are' OR b = b }
136 { SELECT * FROM t3, t4 WHERE h = a OR 66.59334461 <= f }
137 { SELECT * FROM t3, t4 WHERE f > 'of' OR h <= h OR a = f }
138 { SELECT * FROM t3, t4 WHERE 'other' >= g }
139 { SELECT * FROM t3, t4 WHERE b <= 3421170679 }
140 { SELECT * FROM t3, t4 WHERE 'all' = f AND 4543.266482 = b OR f BETWEEN 'and' AND 'angle' }
141 { SELECT * FROM t3, t4 WHERE 'light' = f OR h BETWEEN 'remarkably' AND 1415926535 }
142 { SELECT * FROM t3, t4 WHERE 'hills' = f OR 'the' >= f }
143 { SELECT * FROM t3, t4 WHERE a > 346.0348610 }
144 { SELECT * FROM t3, t4 WHERE 5028841971 = h }
145 { SELECT * FROM t3, t4 WHERE b >= c AND 'the' >= g OR 45.64856692 <= g }
146 { SELECT * FROM t3, t4 WHERE c < 5028841971 }
147 { SELECT * FROM t3, t4 WHERE a > a }
148 { SELECT * FROM t3, t4 WHERE c = 'snapshots' }
149 { SELECT * FROM t3, t4 WHERE h > 1339.360726 AND 'and' > c }
150 { SELECT * FROM t3, t4 WHERE 'and' > g OR 'sometimes' = c }
151 { SELECT * FROM t3, t4 WHERE g >= 'the' AND b >= 'onlookers' }
152 { SELECT * FROM t3, t4 WHERE h BETWEEN 'other' AND 2643383279 }
153 { SELECT * FROM t3, t4 WHERE 'it' = b }
154 { SELECT * FROM t3, t4 WHERE f = c OR c BETWEEN 'and' AND 0.4811174502 }
155 { SELECT * FROM t3, t4 WHERE b <= 'sometimes' OR c <= 0938446095 }
156 { SELECT * FROM t3, t4 WHERE 'and' <= b }
157 { SELECT * FROM t3, t4 WHERE g > a AND f = 'the' AND b < a }
158 { SELECT * FROM t3, t4 WHERE a < 'an' }
159 { SELECT * FROM t3, t4 WHERE a BETWEEN 'his' AND 'same' OR 8628034825 > f }
160 { SELECT * FROM t3, t4 WHERE b = 'peak' }
161 { SELECT * FROM t3, t4 WHERE f IS NULL AND a >= h }
162 { SELECT * FROM t3, t4 WHERE a IS NULL OR 2643383279 = c }
163 { SELECT * FROM t3, t4 WHERE b >= 5028841971 AND f < c AND a IS NULL }
164 { SELECT * FROM t3, t4 WHERE a >= g }
165 { SELECT * FROM t3, t4 WHERE c IS NULL }
166 { SELECT * FROM t3, t4 WHERE h >= h }
167 { SELECT * FROM t3, t4 WHERE 'over' <= h }
168 { SELECT * FROM t3, t4 WHERE b < 4543.266482 OR b = 2643383279 OR 8628034825 < b }
169 { SELECT * FROM t3, t4 WHERE g >= 6939937510 }
170 { SELECT * FROM t3, t4 WHERE 'or' < a OR b < g }
171 { SELECT * FROM t3, t4 WHERE h < 'hills' OR 'and' > g }
172 { SELECT * FROM t3, t4 WHERE 'from' > f OR f <= f }
173 { SELECT * FROM t3, t4 WHERE 'viewed' > b AND f < c }
174 { SELECT * FROM t3, t4 WHERE 'of' <= a }
175 { SELECT * FROM t3, t4 WHERE f > 0938446095 }
176 { SELECT * FROM t3, t4 WHERE a = g }
177 { SELECT * FROM t3, t4 WHERE g >= b AND f BETWEEN 'peak' AND 'and' }
178 { SELECT * FROM t3, t4 WHERE g = a AND 'it' > f }
179 { SELECT * FROM t3, t4 WHERE a <= b OR 'from' > f }
180 { SELECT * FROM t3, t4 WHERE f < 'and' }
181 { SELECT * FROM t3, t4 WHERE 6939937510 < b OR 'sometimes' < h }
182 { SELECT * FROM t3, t4 WHERE f > g AND f < 'peak' }
183 { SELECT * FROM t3, t4 WHERE a <= 53594.08128 AND c <= f AND f >= c }
184 { SELECT * FROM t3, t4 WHERE f = c OR 'it' > b OR g BETWEEN 'the' AND 'all' }
185 { SELECT * FROM t3, t4 WHERE c <= g OR a = h }
186 { SELECT * FROM t3, t4 WHERE 'same' = b OR c >= 2643383279 }
187 { SELECT * FROM t3, t4 WHERE h <= g OR c > 66.59334461 OR a <= f }
188 { SELECT * FROM t3, t4 WHERE b < c AND f = 'writings' }
189 { SELECT * FROM t3, t4 WHERE b < a }
190 { SELECT * FROM t3, t4 WHERE c >= f OR c = 'and' }
191 { SELECT * FROM t3, t4 WHERE f >= 'peak' AND g > f AND h > g }
192 { SELECT * FROM t3, t4 WHERE a >= 8979323846 AND 'same' > b OR c = 'and' }
193 { SELECT * FROM t3, t4 WHERE c >= g OR 'writings' >= c AND b = 'all' }
194 { SELECT * FROM t3, t4 WHERE 'remarkably' < g }
195 { SELECT * FROM t3, t4 WHERE a BETWEEN 'or' AND 'paintings' AND g <= f }
196 { SELECT * FROM t3, t4 WHERE 0938446095 > b OR g <= a OR h > b }
197 { SELECT * FROM t3, t4 WHERE g = 2643383279 AND f = g }
198 { SELECT * FROM t3, t4 WHERE g < 8979323846 }
199 { SELECT * FROM t3, t4 WHERE 'are' <= b }
} {
do_test where8-4.$A.$B.1 {