sl@0
|
1 |
# 2001 September 15
|
sl@0
|
2 |
#
|
sl@0
|
3 |
# The author disclaims copyright to this source code. In place of
|
sl@0
|
4 |
# a legal notice, here is a blessing:
|
sl@0
|
5 |
#
|
sl@0
|
6 |
# May you do good and not evil.
|
sl@0
|
7 |
# May you find forgiveness for yourself and forgive others.
|
sl@0
|
8 |
# May you share freely, never taking more than you give.
|
sl@0
|
9 |
#
|
sl@0
|
10 |
#***********************************************************************
|
sl@0
|
11 |
# This file implements regression tests for SQLite library. The
|
sl@0
|
12 |
# focus of this file is testing the INSERT statement.
|
sl@0
|
13 |
#
|
sl@0
|
14 |
# $Id: insert.test,v 1.31 2007/04/05 11:25:59 drh Exp $
|
sl@0
|
15 |
|
sl@0
|
16 |
set testdir [file dirname $argv0]
|
sl@0
|
17 |
source $testdir/tester.tcl
|
sl@0
|
18 |
|
sl@0
|
19 |
# Try to insert into a non-existant table.
|
sl@0
|
20 |
#
|
sl@0
|
21 |
do_test insert-1.1 {
|
sl@0
|
22 |
set v [catch {execsql {INSERT INTO test1 VALUES(1,2,3)}} msg]
|
sl@0
|
23 |
lappend v $msg
|
sl@0
|
24 |
} {1 {no such table: test1}}
|
sl@0
|
25 |
|
sl@0
|
26 |
# Try to insert into sqlite_master
|
sl@0
|
27 |
#
|
sl@0
|
28 |
do_test insert-1.2 {
|
sl@0
|
29 |
set v [catch {execsql {INSERT INTO sqlite_master VALUES(1,2,3,4)}} msg]
|
sl@0
|
30 |
lappend v $msg
|
sl@0
|
31 |
} {1 {table sqlite_master may not be modified}}
|
sl@0
|
32 |
|
sl@0
|
33 |
# Try to insert the wrong number of entries.
|
sl@0
|
34 |
#
|
sl@0
|
35 |
do_test insert-1.3 {
|
sl@0
|
36 |
execsql {CREATE TABLE test1(one int, two int, three int)}
|
sl@0
|
37 |
set v [catch {execsql {INSERT INTO test1 VALUES(1,2)}} msg]
|
sl@0
|
38 |
lappend v $msg
|
sl@0
|
39 |
} {1 {table test1 has 3 columns but 2 values were supplied}}
|
sl@0
|
40 |
do_test insert-1.3b {
|
sl@0
|
41 |
set v [catch {execsql {INSERT INTO test1 VALUES(1,2,3,4)}} msg]
|
sl@0
|
42 |
lappend v $msg
|
sl@0
|
43 |
} {1 {table test1 has 3 columns but 4 values were supplied}}
|
sl@0
|
44 |
do_test insert-1.3c {
|
sl@0
|
45 |
set v [catch {execsql {INSERT INTO test1(one,two) VALUES(1,2,3,4)}} msg]
|
sl@0
|
46 |
lappend v $msg
|
sl@0
|
47 |
} {1 {4 values for 2 columns}}
|
sl@0
|
48 |
do_test insert-1.3d {
|
sl@0
|
49 |
set v [catch {execsql {INSERT INTO test1(one,two) VALUES(1)}} msg]
|
sl@0
|
50 |
lappend v $msg
|
sl@0
|
51 |
} {1 {1 values for 2 columns}}
|
sl@0
|
52 |
|
sl@0
|
53 |
# Try to insert into a non-existant column of a table.
|
sl@0
|
54 |
#
|
sl@0
|
55 |
do_test insert-1.4 {
|
sl@0
|
56 |
set v [catch {execsql {INSERT INTO test1(one,four) VALUES(1,2)}} msg]
|
sl@0
|
57 |
lappend v $msg
|
sl@0
|
58 |
} {1 {table test1 has no column named four}}
|
sl@0
|
59 |
|
sl@0
|
60 |
# Make sure the inserts actually happen
|
sl@0
|
61 |
#
|
sl@0
|
62 |
do_test insert-1.5 {
|
sl@0
|
63 |
execsql {INSERT INTO test1 VALUES(1,2,3)}
|
sl@0
|
64 |
execsql {SELECT * FROM test1}
|
sl@0
|
65 |
} {1 2 3}
|
sl@0
|
66 |
do_test insert-1.5b {
|
sl@0
|
67 |
execsql {INSERT INTO test1 VALUES(4,5,6)}
|
sl@0
|
68 |
execsql {SELECT * FROM test1 ORDER BY one}
|
sl@0
|
69 |
} {1 2 3 4 5 6}
|
sl@0
|
70 |
do_test insert-1.5c {
|
sl@0
|
71 |
execsql {INSERT INTO test1 VALUES(7,8,9)}
|
sl@0
|
72 |
execsql {SELECT * FROM test1 ORDER BY one}
|
sl@0
|
73 |
} {1 2 3 4 5 6 7 8 9}
|
sl@0
|
74 |
|
sl@0
|
75 |
do_test insert-1.6 {
|
sl@0
|
76 |
execsql {DELETE FROM test1}
|
sl@0
|
77 |
execsql {INSERT INTO test1(one,two) VALUES(1,2)}
|
sl@0
|
78 |
execsql {SELECT * FROM test1 ORDER BY one}
|
sl@0
|
79 |
} {1 2 {}}
|
sl@0
|
80 |
do_test insert-1.6b {
|
sl@0
|
81 |
execsql {INSERT INTO test1(two,three) VALUES(5,6)}
|
sl@0
|
82 |
execsql {SELECT * FROM test1 ORDER BY one}
|
sl@0
|
83 |
} {{} 5 6 1 2 {}}
|
sl@0
|
84 |
do_test insert-1.6c {
|
sl@0
|
85 |
execsql {INSERT INTO test1(three,one) VALUES(7,8)}
|
sl@0
|
86 |
execsql {SELECT * FROM test1 ORDER BY one}
|
sl@0
|
87 |
} {{} 5 6 1 2 {} 8 {} 7}
|
sl@0
|
88 |
|
sl@0
|
89 |
# A table to use for testing default values
|
sl@0
|
90 |
#
|
sl@0
|
91 |
do_test insert-2.1 {
|
sl@0
|
92 |
execsql {
|
sl@0
|
93 |
CREATE TABLE test2(
|
sl@0
|
94 |
f1 int default -111,
|
sl@0
|
95 |
f2 real default +4.32,
|
sl@0
|
96 |
f3 int default +222,
|
sl@0
|
97 |
f4 int default 7.89
|
sl@0
|
98 |
)
|
sl@0
|
99 |
}
|
sl@0
|
100 |
execsql {SELECT * from test2}
|
sl@0
|
101 |
} {}
|
sl@0
|
102 |
do_test insert-2.2 {
|
sl@0
|
103 |
execsql {INSERT INTO test2(f1,f3) VALUES(+10,-10)}
|
sl@0
|
104 |
execsql {SELECT * FROM test2}
|
sl@0
|
105 |
} {10 4.32 -10 7.89}
|
sl@0
|
106 |
do_test insert-2.3 {
|
sl@0
|
107 |
execsql {INSERT INTO test2(f2,f4) VALUES(1.23,-3.45)}
|
sl@0
|
108 |
execsql {SELECT * FROM test2 WHERE f1==-111}
|
sl@0
|
109 |
} {-111 1.23 222 -3.45}
|
sl@0
|
110 |
do_test insert-2.4 {
|
sl@0
|
111 |
execsql {INSERT INTO test2(f1,f2,f4) VALUES(77,+1.23,3.45)}
|
sl@0
|
112 |
execsql {SELECT * FROM test2 WHERE f1==77}
|
sl@0
|
113 |
} {77 1.23 222 3.45}
|
sl@0
|
114 |
do_test insert-2.10 {
|
sl@0
|
115 |
execsql {
|
sl@0
|
116 |
DROP TABLE test2;
|
sl@0
|
117 |
CREATE TABLE test2(
|
sl@0
|
118 |
f1 int default 111,
|
sl@0
|
119 |
f2 real default -4.32,
|
sl@0
|
120 |
f3 text default hi,
|
sl@0
|
121 |
f4 text default 'abc-123',
|
sl@0
|
122 |
f5 varchar(10)
|
sl@0
|
123 |
)
|
sl@0
|
124 |
}
|
sl@0
|
125 |
execsql {SELECT * from test2}
|
sl@0
|
126 |
} {}
|
sl@0
|
127 |
do_test insert-2.11 {
|
sl@0
|
128 |
execsql {INSERT INTO test2(f2,f4) VALUES(-2.22,'hi!')}
|
sl@0
|
129 |
execsql {SELECT * FROM test2}
|
sl@0
|
130 |
} {111 -2.22 hi hi! {}}
|
sl@0
|
131 |
do_test insert-2.12 {
|
sl@0
|
132 |
execsql {INSERT INTO test2(f1,f5) VALUES(1,'xyzzy')}
|
sl@0
|
133 |
execsql {SELECT * FROM test2 ORDER BY f1}
|
sl@0
|
134 |
} {1 -4.32 hi abc-123 xyzzy 111 -2.22 hi hi! {}}
|
sl@0
|
135 |
|
sl@0
|
136 |
# Do additional inserts with default values, but this time
|
sl@0
|
137 |
# on a table that has indices. In particular we want to verify
|
sl@0
|
138 |
# that the correct default values are inserted into the indices.
|
sl@0
|
139 |
#
|
sl@0
|
140 |
do_test insert-3.1 {
|
sl@0
|
141 |
execsql {
|
sl@0
|
142 |
DELETE FROM test2;
|
sl@0
|
143 |
CREATE INDEX index9 ON test2(f1,f2);
|
sl@0
|
144 |
CREATE INDEX indext ON test2(f4,f5);
|
sl@0
|
145 |
SELECT * from test2;
|
sl@0
|
146 |
}
|
sl@0
|
147 |
} {}
|
sl@0
|
148 |
|
sl@0
|
149 |
# Update for sqlite3 v3:
|
sl@0
|
150 |
# Change the 111 to '111' in the following two test cases, because
|
sl@0
|
151 |
# the default value is being inserted as a string. TODO: It shouldn't be.
|
sl@0
|
152 |
do_test insert-3.2 {
|
sl@0
|
153 |
execsql {INSERT INTO test2(f2,f4) VALUES(-3.33,'hum')}
|
sl@0
|
154 |
execsql {SELECT * FROM test2 WHERE f1='111' AND f2=-3.33}
|
sl@0
|
155 |
} {111 -3.33 hi hum {}}
|
sl@0
|
156 |
do_test insert-3.3 {
|
sl@0
|
157 |
execsql {INSERT INTO test2(f1,f2,f5) VALUES(22,-4.44,'wham')}
|
sl@0
|
158 |
execsql {SELECT * FROM test2 WHERE f1='111' AND f2=-3.33}
|
sl@0
|
159 |
} {111 -3.33 hi hum {}}
|
sl@0
|
160 |
do_test insert-3.4 {
|
sl@0
|
161 |
execsql {SELECT * FROM test2 WHERE f1=22 AND f2=-4.44}
|
sl@0
|
162 |
} {22 -4.44 hi abc-123 wham}
|
sl@0
|
163 |
ifcapable {reindex} {
|
sl@0
|
164 |
do_test insert-3.5 {
|
sl@0
|
165 |
execsql REINDEX
|
sl@0
|
166 |
} {}
|
sl@0
|
167 |
}
|
sl@0
|
168 |
integrity_check insert-3.5
|
sl@0
|
169 |
|
sl@0
|
170 |
# Test of expressions in the VALUES clause
|
sl@0
|
171 |
#
|
sl@0
|
172 |
do_test insert-4.1 {
|
sl@0
|
173 |
execsql {
|
sl@0
|
174 |
CREATE TABLE t3(a,b,c);
|
sl@0
|
175 |
INSERT INTO t3 VALUES(1+2+3,4,5);
|
sl@0
|
176 |
SELECT * FROM t3;
|
sl@0
|
177 |
}
|
sl@0
|
178 |
} {6 4 5}
|
sl@0
|
179 |
do_test insert-4.2 {
|
sl@0
|
180 |
ifcapable subquery {
|
sl@0
|
181 |
execsql {INSERT INTO t3 VALUES((SELECT max(a) FROM t3)+1,5,6);}
|
sl@0
|
182 |
} else {
|
sl@0
|
183 |
set maxa [execsql {SELECT max(a) FROM t3}]
|
sl@0
|
184 |
execsql "INSERT INTO t3 VALUES($maxa+1,5,6);"
|
sl@0
|
185 |
}
|
sl@0
|
186 |
execsql {
|
sl@0
|
187 |
SELECT * FROM t3 ORDER BY a;
|
sl@0
|
188 |
}
|
sl@0
|
189 |
} {6 4 5 7 5 6}
|
sl@0
|
190 |
ifcapable subquery {
|
sl@0
|
191 |
do_test insert-4.3 {
|
sl@0
|
192 |
catchsql {
|
sl@0
|
193 |
INSERT INTO t3 VALUES((SELECT max(a) FROM t3)+1,t3.a,6);
|
sl@0
|
194 |
SELECT * FROM t3 ORDER BY a;
|
sl@0
|
195 |
}
|
sl@0
|
196 |
} {1 {no such column: t3.a}}
|
sl@0
|
197 |
}
|
sl@0
|
198 |
do_test insert-4.4 {
|
sl@0
|
199 |
ifcapable subquery {
|
sl@0
|
200 |
execsql {INSERT INTO t3 VALUES((SELECT b FROM t3 WHERE a=0),6,7);}
|
sl@0
|
201 |
} else {
|
sl@0
|
202 |
set b [execsql {SELECT b FROM t3 WHERE a = 0}]
|
sl@0
|
203 |
if {$b==""} {set b NULL}
|
sl@0
|
204 |
execsql "INSERT INTO t3 VALUES($b,6,7);"
|
sl@0
|
205 |
}
|
sl@0
|
206 |
execsql {
|
sl@0
|
207 |
SELECT * FROM t3 ORDER BY a;
|
sl@0
|
208 |
}
|
sl@0
|
209 |
} {{} 6 7 6 4 5 7 5 6}
|
sl@0
|
210 |
do_test insert-4.5 {
|
sl@0
|
211 |
execsql {
|
sl@0
|
212 |
SELECT b,c FROM t3 WHERE a IS NULL;
|
sl@0
|
213 |
}
|
sl@0
|
214 |
} {6 7}
|
sl@0
|
215 |
do_test insert-4.6 {
|
sl@0
|
216 |
catchsql {
|
sl@0
|
217 |
INSERT INTO t3 VALUES(notafunc(2,3),2,3);
|
sl@0
|
218 |
}
|
sl@0
|
219 |
} {1 {no such function: notafunc}}
|
sl@0
|
220 |
do_test insert-4.7 {
|
sl@0
|
221 |
execsql {
|
sl@0
|
222 |
INSERT INTO t3 VALUES(min(1,2,3),max(1,2,3),99);
|
sl@0
|
223 |
SELECT * FROM t3 WHERE c=99;
|
sl@0
|
224 |
}
|
sl@0
|
225 |
} {1 3 99}
|
sl@0
|
226 |
|
sl@0
|
227 |
# Test the ability to insert from a temporary table into itself.
|
sl@0
|
228 |
# Ticket #275.
|
sl@0
|
229 |
#
|
sl@0
|
230 |
ifcapable tempdb {
|
sl@0
|
231 |
do_test insert-5.1 {
|
sl@0
|
232 |
execsql {
|
sl@0
|
233 |
CREATE TEMP TABLE t4(x);
|
sl@0
|
234 |
INSERT INTO t4 VALUES(1);
|
sl@0
|
235 |
SELECT * FROM t4;
|
sl@0
|
236 |
}
|
sl@0
|
237 |
} {1}
|
sl@0
|
238 |
do_test insert-5.2 {
|
sl@0
|
239 |
execsql {
|
sl@0
|
240 |
INSERT INTO t4 SELECT x+1 FROM t4;
|
sl@0
|
241 |
SELECT * FROM t4;
|
sl@0
|
242 |
}
|
sl@0
|
243 |
} {1 2}
|
sl@0
|
244 |
ifcapable {explain} {
|
sl@0
|
245 |
do_test insert-5.3 {
|
sl@0
|
246 |
# verify that a temporary table is used to copy t4 to t4
|
sl@0
|
247 |
set x [execsql {
|
sl@0
|
248 |
EXPLAIN INSERT INTO t4 SELECT x+2 FROM t4;
|
sl@0
|
249 |
}]
|
sl@0
|
250 |
expr {[lsearch $x OpenEphemeral]>0}
|
sl@0
|
251 |
} {1}
|
sl@0
|
252 |
}
|
sl@0
|
253 |
|
sl@0
|
254 |
do_test insert-5.4 {
|
sl@0
|
255 |
# Verify that table "test1" begins on page 3. This should be the same
|
sl@0
|
256 |
# page number used by "t4" above.
|
sl@0
|
257 |
#
|
sl@0
|
258 |
# Update for v3 - the first table now begins on page 2 of each file, not 3.
|
sl@0
|
259 |
execsql {
|
sl@0
|
260 |
SELECT rootpage FROM sqlite_master WHERE name='test1';
|
sl@0
|
261 |
}
|
sl@0
|
262 |
} [expr $AUTOVACUUM?3:2]
|
sl@0
|
263 |
do_test insert-5.5 {
|
sl@0
|
264 |
# Verify that "t4" begins on page 3.
|
sl@0
|
265 |
#
|
sl@0
|
266 |
# Update for v3 - the first table now begins on page 2 of each file, not 3.
|
sl@0
|
267 |
execsql {
|
sl@0
|
268 |
SELECT rootpage FROM sqlite_temp_master WHERE name='t4';
|
sl@0
|
269 |
}
|
sl@0
|
270 |
} {2}
|
sl@0
|
271 |
do_test insert-5.6 {
|
sl@0
|
272 |
# This should not use an intermediate temporary table.
|
sl@0
|
273 |
execsql {
|
sl@0
|
274 |
INSERT INTO t4 SELECT one FROM test1 WHERE three=7;
|
sl@0
|
275 |
SELECT * FROM t4
|
sl@0
|
276 |
}
|
sl@0
|
277 |
} {1 2 8}
|
sl@0
|
278 |
ifcapable {explain} {
|
sl@0
|
279 |
do_test insert-5.7 {
|
sl@0
|
280 |
# verify that no temporary table is used to copy test1 to t4
|
sl@0
|
281 |
set x [execsql {
|
sl@0
|
282 |
EXPLAIN INSERT INTO t4 SELECT one FROM test1;
|
sl@0
|
283 |
}]
|
sl@0
|
284 |
expr {[lsearch $x OpenTemp]>0}
|
sl@0
|
285 |
} {0}
|
sl@0
|
286 |
}
|
sl@0
|
287 |
}
|
sl@0
|
288 |
|
sl@0
|
289 |
# Ticket #334: REPLACE statement corrupting indices.
|
sl@0
|
290 |
#
|
sl@0
|
291 |
ifcapable conflict {
|
sl@0
|
292 |
# The REPLACE command is not available if SQLITE_OMIT_CONFLICT is
|
sl@0
|
293 |
# defined at compilation time.
|
sl@0
|
294 |
do_test insert-6.1 {
|
sl@0
|
295 |
execsql {
|
sl@0
|
296 |
CREATE TABLE t1(a INTEGER PRIMARY KEY, b UNIQUE);
|
sl@0
|
297 |
INSERT INTO t1 VALUES(1,2);
|
sl@0
|
298 |
INSERT INTO t1 VALUES(2,3);
|
sl@0
|
299 |
SELECT b FROM t1 WHERE b=2;
|
sl@0
|
300 |
}
|
sl@0
|
301 |
} {2}
|
sl@0
|
302 |
do_test insert-6.2 {
|
sl@0
|
303 |
execsql {
|
sl@0
|
304 |
REPLACE INTO t1 VALUES(1,4);
|
sl@0
|
305 |
SELECT b FROM t1 WHERE b=2;
|
sl@0
|
306 |
}
|
sl@0
|
307 |
} {}
|
sl@0
|
308 |
do_test insert-6.3 {
|
sl@0
|
309 |
execsql {
|
sl@0
|
310 |
UPDATE OR REPLACE t1 SET a=2 WHERE b=4;
|
sl@0
|
311 |
SELECT * FROM t1 WHERE b=4;
|
sl@0
|
312 |
}
|
sl@0
|
313 |
} {2 4}
|
sl@0
|
314 |
do_test insert-6.4 {
|
sl@0
|
315 |
execsql {
|
sl@0
|
316 |
SELECT * FROM t1 WHERE b=3;
|
sl@0
|
317 |
}
|
sl@0
|
318 |
} {}
|
sl@0
|
319 |
ifcapable {reindex} {
|
sl@0
|
320 |
do_test insert-6.5 {
|
sl@0
|
321 |
execsql REINDEX
|
sl@0
|
322 |
} {}
|
sl@0
|
323 |
}
|
sl@0
|
324 |
do_test insert-6.6 {
|
sl@0
|
325 |
execsql {
|
sl@0
|
326 |
DROP TABLE t1;
|
sl@0
|
327 |
}
|
sl@0
|
328 |
} {}
|
sl@0
|
329 |
}
|
sl@0
|
330 |
|
sl@0
|
331 |
# Test that the special optimization for queries of the form
|
sl@0
|
332 |
# "SELECT max(x) FROM tbl" where there is an index on tbl(x) works with
|
sl@0
|
333 |
# INSERT statments.
|
sl@0
|
334 |
do_test insert-7.1 {
|
sl@0
|
335 |
execsql {
|
sl@0
|
336 |
CREATE TABLE t1(a);
|
sl@0
|
337 |
INSERT INTO t1 VALUES(1);
|
sl@0
|
338 |
INSERT INTO t1 VALUES(2);
|
sl@0
|
339 |
CREATE INDEX i1 ON t1(a);
|
sl@0
|
340 |
}
|
sl@0
|
341 |
} {}
|
sl@0
|
342 |
do_test insert-7.2 {
|
sl@0
|
343 |
execsql {
|
sl@0
|
344 |
INSERT INTO t1 SELECT max(a) FROM t1;
|
sl@0
|
345 |
}
|
sl@0
|
346 |
} {}
|
sl@0
|
347 |
do_test insert-7.3 {
|
sl@0
|
348 |
execsql {
|
sl@0
|
349 |
SELECT a FROM t1;
|
sl@0
|
350 |
}
|
sl@0
|
351 |
} {1 2 2}
|
sl@0
|
352 |
|
sl@0
|
353 |
# Ticket #1140: Check for an infinite loop in the algorithm that tests
|
sl@0
|
354 |
# to see if the right-hand side of an INSERT...SELECT references the left-hand
|
sl@0
|
355 |
# side.
|
sl@0
|
356 |
#
|
sl@0
|
357 |
ifcapable subquery&&compound {
|
sl@0
|
358 |
do_test insert-8.1 {
|
sl@0
|
359 |
execsql {
|
sl@0
|
360 |
INSERT INTO t3 SELECT * FROM (SELECT * FROM t3 UNION ALL SELECT 1,2,3)
|
sl@0
|
361 |
}
|
sl@0
|
362 |
} {}
|
sl@0
|
363 |
}
|
sl@0
|
364 |
|
sl@0
|
365 |
# Make sure the rowid cache in the VDBE is reset correctly when
|
sl@0
|
366 |
# an explicit rowid is given.
|
sl@0
|
367 |
#
|
sl@0
|
368 |
do_test insert-9.1 {
|
sl@0
|
369 |
execsql {
|
sl@0
|
370 |
CREATE TABLE t5(x);
|
sl@0
|
371 |
INSERT INTO t5 VALUES(1);
|
sl@0
|
372 |
INSERT INTO t5 VALUES(2);
|
sl@0
|
373 |
INSERT INTO t5 VALUES(3);
|
sl@0
|
374 |
INSERT INTO t5(rowid, x) SELECT nullif(x*2+10,14), x+100 FROM t5;
|
sl@0
|
375 |
SELECT rowid, x FROM t5;
|
sl@0
|
376 |
}
|
sl@0
|
377 |
} {1 1 2 2 3 3 12 101 13 102 16 103}
|
sl@0
|
378 |
do_test insert-9.2 {
|
sl@0
|
379 |
execsql {
|
sl@0
|
380 |
CREATE TABLE t6(x INTEGER PRIMARY KEY, y);
|
sl@0
|
381 |
INSERT INTO t6 VALUES(1,1);
|
sl@0
|
382 |
INSERT INTO t6 VALUES(2,2);
|
sl@0
|
383 |
INSERT INTO t6 VALUES(3,3);
|
sl@0
|
384 |
INSERT INTO t6 SELECT nullif(y*2+10,14), y+100 FROM t6;
|
sl@0
|
385 |
SELECT x, y FROM t6;
|
sl@0
|
386 |
}
|
sl@0
|
387 |
} {1 1 2 2 3 3 12 101 13 102 16 103}
|
sl@0
|
388 |
|
sl@0
|
389 |
integrity_check insert-99.0
|
sl@0
|
390 |
|
sl@0
|
391 |
finish_test
|