# xsql

sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1<1, CURRENT_DATE) x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1<1, CURRENT_DATE) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1<1, CURRENT_DATE) x FROM i LIMIT 200


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min(DISTINCT @1)  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  84


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min(DISTINCT @1)  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  24


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min(DISTINCT @1)  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  03


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  04


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b|~c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A-4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b|~c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,7)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b|~c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,B)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b|~c, b| random()|c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT 'a''b'c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,6)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT 'a''b'c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,8)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT 'a''b'c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,B)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(10000000.000000000, '01');
INSERT INTO t0(docid, x) VALUES(2001-01-010, '2001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*2001-01-01' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(10000000.000000000, '01');
INSERT INTO t0(docid, x) VALUES(2001-01-010, '2001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '2001-01-01*2001-01-01' ORDER BY docid DESC;


sqltext:
CREATE TABLE t3(a �NTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, c, b, a, b, b


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDADD0NOTNULL;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99) OR (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDA2001-01-01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x=99) OR (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDADD0NOTNULL;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ON (1)IN t0b ON UM


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER DEFAULT KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER UPDATE ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMAEY UNIQUE,UTOMNCREEMENT,RY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEY KEY UNIQUE,UTOIEFOREER t��0001 BRY KEY UNIQUE,UTOIE INSERT 


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0&Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', 'X J P K R', '0 O T H V');
INSERT INTO x1(docid,a,b,c) VALUES(8, 'Y 0 0 0', '0 U E S J', 'N W L M R');
INSERT INTO x1(docid,a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0�', 'V 0 E Q A');
INSERT INTO x1(docid,a,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 C', 'A H T Q n');
INSERT INTO x1(docid,a,b,c)VALUES(11, '0 E Q 0', '0 I 0 C B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', 'V J P E C');
INSERT INTO x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q', 'L 0 0 Y 0', 'G 0 M R N');
INSERT INTO x1(docid,a,b,c) VALUES(19, 'T 0 0 P 0', '0 V Y B X', 'L Z 0 N 0');


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', 'X J P K R', '0 O T H V');
INSERT INTO x1(docid,a,b,c) VALUES(8, 'Y 0 0 0', '0 U E S J', 'N W L M R');
INSERT INTO x1(docid,a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0�', 'V 0 E Q A');
INSERT INTO x1(docid,a,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 C', 'A H T Q n');
INSERT INTO x1(docid,a,b,c)VALUES(-1, '0 E Q 0', '0 I 0 C B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', id,a,b,c) ES(1


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', 'X J P K R', '0 O T H V');
INSERT INTO x1(docid,a,b,c) VALUES(8, 'Y 0 0 0', '0 U E S J', 'N W L M R');
INSERT INTO x1(docid,a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0�', 'V 0 E Q A');
INSERT INTO x1(docid,a,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 C', 'A H T Q n');
INSERT INTO x1(docid,a,b,c)VALUES(11, '0 E Q 0', '0 I 0 C B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', id,a,b,c) ES(1


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT sqlite_compileoption_get(-777777777777777777777) FROM�i GROUP BY@1)
SELECT x FROM i LIMIT 10;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'sepseparator leparator IMMEDIarator leparator IMMEDIATE');
SELECT row WHERE cot MATCH 'runp';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning�and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run """"""""""""""""""";
INSERT INTO t1""�"1"""""""""""""""""""""""""""""""1"ru"""""""""""""""""n """"""""""""""""""""""run """"�""""""""""""""""""""""""""�""b""""""jump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning�and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run """"""""""""""""""";
INSERT INTO t1""""1"""""""""""""""""""""""""""""""1"ru"""""""""""���""""""""jump"""""""n """"""""""""""""""""""run """""""""""""""""""""""""""���""""""""jump';


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 AS 
LEF102 
JOIN t102 AStT JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR t1.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102 AS 
LEF102 
JOIN t102 AStT JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON+t1.i0=+t0.i0 OR t1.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 LEFT
JOIN t102 AS t2 ON(t1.i0= t1.i0 OR t1.i0= t1.i0 OR t2.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0< t2.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0=t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0< t1.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0=t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0< t0.i0 OR 50 AND t0.i0=t1.i0 AND t1.i0=t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(0 AND t0.iI=t1.i0 AND t0.i0=t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0
LEFT JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0=t2.i0) AND t0.i0>t1.oid);


sqltext:
CREATE VIRTUAL TABLE x USING fts4(yALUES��00S��000,/,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb NEAR/6 0DDDDIRTUAL TABTE VIRTUAL TABLE x USING ftsLE x USIN:�:::::������ftb4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S��000,/,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb NEAR/6 0DDDDIRTUAL TABTE VIRTUAL TABLE x USING ftsLE x USIN:�:�:::������ftb4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S��000,/,bbT,RE000,/,,/,bbT,GEXP'bbb');
SELABTE VIRTUAL TABLEUSIN:�:::::������ftb4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y ALUES��00S��000,/,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb NEAR/6 0DDDDIRTUAL TA�TE ���UAL TABLE x USING ftsLE x USIcuum::::������ftb4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y;ALUES��00S��000,/,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb NEAR/6 0DDDDIRTUAL TABTE VIRTUAL TABLE x USING ftsLE x USIN:�:::::������ x USIN:�:::ftb4(y,';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  strftime(1,1,1,1) q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE 1=1+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, yy1,1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE 1=1+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y1;


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0���bb c00', 'bbb 000');
SELECT * FROM x where y MATCH /* */""OR""MATCH""""�� 


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0���bb c00', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb ""OR""OR""�� O""OR""OR""�� R - sxrft�� OR 0';


sqltext:
CREATE TABLE t0(a, b);
SeLECT DISTINCT "a""ba","b",count(*)WHERE(SELECT "a","b", *,"ba","b",count(*)FROM (SELECT "ba","b""""a","ba","y","b",oid,"b""a","ba","b",count(*) a,ba FROM t0) )NOTNULL;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  03


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT 'a''b'c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(C,5)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT 'a''b'c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a| random()|b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,5)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(131)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1 1*1';f


sqltext:
CREATE TABLE t0000(a blobGER DEFAULT KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a blobGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;REPLACE INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a blobGER PRIMARY KEY UNIQUE,UFOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT(SELECT'000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');REPLACE INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000') "a","b";REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');REPLACE INTO t0000(a) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t�ϐ�����������������������ϐ������������������������������������ϐ���������S('ab0');


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t�ϐ�����������������������ϐ����������������������ϐ���������������������S('ab0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(10000000.000000000, '02001-01-00');
INSERT INTO t0(docid, x) VALUES(0, '02 �001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(1000-000.000000000, '02001-01-00');
INSERT INTO t0(docid, x) VALUES(0, '02 ;001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102
LEF102 
JOIN t102 AStT JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t
LEFT JOIN t102 
JOI2 ON(t1.i0=+t0.i0 OR t1.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102 AS 
LEF102 
JOIN t102 AStT JOIN T102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t22 
JOIN t102 AS t2  ON+t1.i0=+t0.i0 OR t1.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR tT.i0= t1.i0 OR t1.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 wEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 IN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR tT.i0= t1.i0 OR t2.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0< t1.i0 OR 50 AND t0.i0<t1.i0 AND t0.i0=t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0<t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0< t0.i0 OR 50 AND t0.i0>t1.i0 AND t0.i0<t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 GLOB 'a0'
JOIN t102 AS t2 ON(t1.i0< t0.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0<t2.i0) AND t2.i0<t1.i0));


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=tO");
INSERT INTO t0 VALUES('one0OϿ�0ύ00');
INSERT INTO t0 VALUES('one0OϿ�0eatwoe0OϿ�0ύ00');
I�tύ00');
RTBLE t0


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '�*2001-01-01';
END;


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*201-01-01';
END;


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01�01';
END;


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH 'NOTNULL01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '�*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0* -01-01-01';
END;


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00',  'b`b* b,b/B a,b''b"b 0a0');
SELECT * FROM x where y MATCH 'b`b*NEAR/6 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(yALUES��00S��000,/,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb NEAR/6 0DDDDIRTUAL TABTE VIRTUAL TABLE x USING ftsLE x USIN:�:�:::������ftb4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S�000,/,bbT,RE000,/,,/,�000,/,bbT,RE000,/,,/,bbT,GEXP'bbb');
SELABTE VIRTUAL TABLEUSIN:�:::::������ftb4(y,';


sqltext:
CREATE TABLE x( a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q);
CREAT y1.q=y2.qS


sqltext:
CREATE TABLE x( a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (    a,ba,a,ba,ba,ba,q);
CREAT y1.q=y


sqltext:
CREATE TABLE x( a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a, a,a,ba,ba,ba,q);y2.qS


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,+x2.b AS q FROM x AS x1, x AS x2 WHERE+time(1,q,q)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,+x2.b AS q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1,  y  AS1, y y1,y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q<1+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,/);
INSERT INTO x VALUES('0���bb c00', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb ""OR""OR""�� OR -ftbbb ""OR""OR""�� ORO x sdrft�� OR 0';


sqltext:
CREATE TABLE t0(a, b);
SeLECT DISTINCT "a""ba","b",count(*)WHERE(SELECT "a","b", *,"ba","b",count(*)FROM (SELECT "ba","b""""a","ba","y","b",oid,"b""a","ba","b",count(*),a,ba FROM t0) )NOTNULL;


sqltext:
CREATE TABLE t5(a, b);
SeLECT DISTINCT "a""ba","b",count(*)WHERE(SELECT "a","b", *,"ba","b",count(*)FROM (SELECT "ba","b""""a","ba")WHERE(SELECT"b""a","ba","b",count(*) a,ba FROM t0) )NOTNULL;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  83


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  23


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  13


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  07


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDA2001FOR-01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99) OR (x=99) ORDER BY x;VACUUM


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(131)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH '1@1*@1 1*1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(131)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' 1=1d_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(131)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1 1*1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(131)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' 1=1@1 1*1';f


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102 AS 
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR t1.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0> t0.i0 OR 50 AND t1.i0=t1.i0 AND t0.i0<t2.i0) AND t2.i0<t1.i0));


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b2001-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '�*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b2001-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01�01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b2001-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH-'0*201-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b20012001-01-01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END;


sqltext:
CREATE VIRTUAL TABLE x USING fts4(yALUES��00S�x USIN:�:�:::GEXi'bbb');
SELECT * FROM x where y MATCH 'b6 0DDDDIRAL TA���ftb4(y,'


sqltext:
CREATE TABLE x( a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,ba IS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q);
CREAT y1.q=y2.qS


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba)ba,ba,q);
CREAT y1.q=y


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba)q);
CREAT y1.q=y


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  ( a,b,a,ba,ba,ba,q);
CREAT y1.q=y


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,ba,ba,ba,q);y


sqltext:
CREATE TABLE x( a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  ( a,ba,ba,a,ba,ba,ba,q);
T y1.q=y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,+x2.b AS q FROM x AS x1, x AS x2 WHERE+time(1,q,q)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, yy1,1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT sqlite_source_id() q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, yy1,1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, yA, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,-x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total_changes() AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.a AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR-x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR-x1.a=x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A+ y 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,Q)OR-x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  � soundex(1) y 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,q)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,  y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE NOT+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,  y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q >=time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,  y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'NATURAL
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0=+t0.i0 OR t1.i0=t0.oid);


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01�b2001-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-�1-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01�b2001-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01�01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END;


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00',  'b`b* b,b/B a,b''b"b 0a0');
SELECT * FROM x where y MATCH 'b`b "b","b"000';


sqltext:
CREATE TABLE x( a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (  a,ba,ba,ba,a,ba,ba,ba,q);
CREAT y1.q=y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  typeof(1)+ hex(1) q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, yy1,1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,+ hex( -11) q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, yy1,1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS S1, y y1, y A, y  y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x2.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=P+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  A, y  AS1, y y1, y A, y  ASS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A+ y 1;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102 AS 
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t2.i0= t0.i0 OR t2.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 intT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102 AS 
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR t2.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 �EXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102 LEFT JOIN t102  t1 ON t1.i0 LIKE 'a0'NATURAL
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0=+t0.i0 OR t1.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UtreUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102 LEFT JOIN t102  t1 ON 'a0'NATURAL
LEFT JOIN t102 
JDIN t102 AS t2 ON(t1.i0=+t0.i0 OR t1.i0=t0.oid):�


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01��01-01-01');
INSERT INTO t0 VALUES('201-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-1-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END:�


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01~b cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';0e01;


sqltext:
CREATE TABLE x( a,b a,ba� a,b1, x,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba)q);y


sqltext:
CREATE TABLE x( ab a,ba,q);
CREATE VIEW y As
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q,ba,ba,ba,q,a,ba,ba,ba,q,ba,ba,ba,q););
C


sqltext:
CREATE TABLE x( ab a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,   a,a,ba,ba,bbb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,   a,a,ba,ba,ba,q,ba,ba,ba,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, B,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,a,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)a,q,ba,ba, q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, sqlite_version()+ hex(1) q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y, y;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,+ hex(12001-01-01) q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y, y;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS p, x x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, xdAS y1,:y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM x AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y A


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.a AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x2.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AA, y y1,y y1, y A, y S1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.a AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A+ y 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, total(1)q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A+ y 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x2.a=x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A+ y 1;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01��01-01-01');
INSERT INTO t0 VALUES('201-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-��1';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2*01-��1';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 20012 typeof(1)001-01-01-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 20012001-01-01-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb2001-01-01 cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END;


sqltext:
CREATE TABLE x( a,b a,ba� a,b1, x,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   q,a,ba,ba,ba)q);y


sqltext:
CREATE TABLE x( a,b a,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a, "a","")q);1.q=y


sqltext:
CREATE TABLE x( a,b  a,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,ba�1, x,q););y


sqltext:
CREATE TABLE x( a,b, y,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,bv)q);y


sqltext:
CREATE TABLE x( a,b  a,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)p, *, *,bb AS q FROM x �1, x AS x2 USING  (   a,a,ba,ba,ba)q);y


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,a,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x2.a=x2.a;
SELECT  total(1)p FROM x AS y1, y  AS1, y y1, y A, x y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, total(1)q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.a AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  CT  total(1)p FROM y AS1, y y11, x AS x  W 1;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 2001-01-01��01-01-01');
INSERT INTO t0 VALUES('20��1-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*20 strftime(1,1,1,1)01-��1';
END;


sqltext:
CREATE TABLE x(�a,b, y,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,bv)q);y


sqltext:
CREATE TABLE x( a,b, y,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   q,a,ba,ba,bv)q);y


sqltext:
CREATE TABLE x( a,b, y,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,�a,bv)q);y


sqltext:
CREATE TABLE x( a,b, y,ba,ba� a,b1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,bv)q);y


sqltext:
CREATE TABLE x( a,b, y,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba�1, x,q);
ba,bv)q);y


sqltext:
CREATE TABLE x( a,b, y,ba,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,b, y,ba,ba�1, x,q);
CREAy


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, x  AS y1, y AS A, x  AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1y1, y  AS1, y y1, y A, x, y y1, y A, x  AS y1, y AS A, x  AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, x  AS y1, y AS A, x   AS A, x  AS yy AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1a;
SELECT  total(1)p FROM y A, y A, x  AS y1, y AS A, x  AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS a FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1,11,1,1)OR
x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(� a,ba,ba� a,b  a,bs,ba�1, x,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   a,a,ba,ba,�a)q);y


sqltext:
CREATE TABLE x(  a,ba,ba� a,b  a,bs,ba�1, x,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   q,a,ba,ba,�a)q);y


sqltext:
CREATE TABLE x(  a,ba,ba� a,b  a,bs,ba�1, x,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   a,a,ba,�a,�a)q);y


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(a)p, "a","b" q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, "a","b" q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,a,ba,ba,ba,  a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, "a","b" q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a)a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, "a","b" q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q)ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, "a","b"LIKE q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, "a","b" q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,b,ba,q,ba,q,ba,ba,b,ba,q,ba,ba,ba,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,qa,ba,q);SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,sa,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  (  a,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,ba,ba,q);
C


sqltext:
CREATE TABLE x(� a,ba,ba� a,b  a,bs,ba�1,  a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   a,a)ba,ba,�a)q);y


sqltext:
CREATE TABLE x(� a,ba,ba� a,b  a,bs,ba�1,  a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   a,a,ba,ba, a,b);y


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);SELECT total(ba,ba,q,ba,a,ba,  a,q)p, *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,�1, x a,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  ( ba, a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x(� a,ba,ba� a,b  a,bs,ba�1,  a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   q,a,ba,ba,  a,bx,q);
�a)q);y


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  (  "b","b",q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x a,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x(�,�,ba,ba� a,b  a,bs,ba�1,V a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   q,a,ba,ba,�a)q);y


sqltext:
CREATE TABLE x(�,a,ba,ba� a,b  a,bs,ba�1,V a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (   q,q,ba,ba,�a)q);y


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','�0',1);
INSERT INTO t1 VALUES(2,'00','�0',5);
INSERT INTO t1 VALUES(3,'000','����0',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(1,B)


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IS (SELECT * FROM t1 WHERE a<10);
DR


sqltext:
SELECT last_insert_rowid()UULL UNION
SELECT.1 UNION SELECT 2 AS 'x'
ORDER BY LL UNION
SELECT.1 UNION SELECT 2 AS 'x'
ORDER BY x;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0000t'),('0o00');
SELECT DISTINCT x
FROm (SELECT zeroblob(1) x FROM t0 GROUP BY x)
WHERE x=('0o00');
SELECT DISTINCT x
FROM (SELECT zeroblob(1) x FROM t0 GROUP BY x)
WHERE x='0'
ORD'0'
ORDER BY x;


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(tokenize=unicode61 "remove_diacritics=0");
INSERT INTO t4 SELECT avg(1) t0;


sqltext:
PRAGMA foreign_keys= ON;
CREATE TABLE p(i PRIMARY KEY);
CREATE TABLE c(VI Wj REFERENCES p ON UPDATE CASCADE);
INSERT INTO p VALUES('0e00o');
INSERT INTO c VALUES('0e00o');
UPDATE p SET i= '000';
SELECT * FROM c;


sqltext:
PRAGMA foreign_keys= ON;
CREATE TABLE p(i PRIMARY KEY);
CREATE TABLE c(V���������������������������������������������������������������������IEWj REFERENCES p ON UPDATE CASCADE);
INSERT INTO p VALUES('0e00o');
INSERT INTO c VALUES('0e00o');
UPDATE p SET i= '000';
SELECT * FROM c;


sqltext:
PRAGMA foreign_keys= ON;
CREATE TABLE p(i PRIMARY KEY);
CREATE TABLE c(VIEWj REFERENCES p ON UPDATE CASCADE);
INSERT INTO p VALUES('0e00o');
INSERT INTO c VALUES('0e00o');
INSERT INTO c VALUES('0e00o');
UPDATE p SET i= '000';
SELECT * 00o');
UPDATE p SET i= '000';
SELECT * FROM c;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT printf(?,1) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT printf(ALL) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL VALUES(1) UNION ALL SELECT total(1) i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
PRAGMA aut�_um = inc;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(:eroblob(5000), :eroblob(5000));
DELETE F��m;


sqltext:
PRAGMA aut�_um = inc;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(1000), :eroblob(5000));
DELETE F��m;


sqltext:
PRAGMA aut�_um = inc;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(3000), :eroblob(5000));
DELETE F��m;


sqltext:
SELECT '' UNION SELECT '000h' ORDER BY 1 ASC UNION SELECT '000h' ORDER BY'' UNION SELECT '000h' ORDER BY 1 ASC UNION SELECT '000h' ORDER BY 1 , 1 ASC; 1 , 1 ASC;


sqltext:
CREATE TABLE x1(a);
CREATE TABLE x2(b);
INSERT INTO x1 VALUES(1), (1), (2);
INSERT INTO x2 VALUES(1), (2);
SELECT count(*) FROM x2 WHERE b IN (SELECT b);
INSERT INTO x1 VALUES(1), (1), (2);
INSERT INTO x2 VALUES(1), (2);
SELECT cDISTINCT char(1) a FROM x1 LIMIT 2);


sqltext:
DROP INDEX IF EXISTS t0;
DROP INDEX IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
;
DROP INDEX IF EXISTS t0;
CREATE TABLE t1(i


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,3,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN [a]AND 1=1


sqltext:
CREATE TABLE t1(a,b);
SELECT a FROM t1 WHERE max������Ȓ�������������������������������������������������������������(b)< avg(1) a;
ST a IROM t1 WHERE max�����������������������������


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES( -1);
SELECT a< CAST(a AS clob000)< CAST(a AS clob000) FROM t0;
 FROM 


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,b,a,d,e,b),UNIQUE(a,b,c,d,e,f	);
I(5,10000);
INSERT INTO t5 VALUES(2,3,4,5,6,20000);REINDEP


sqltext:
PRAGMA page_siAL;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA wal_autocheckpoint =�100;
PRAGMA jo == WAL;
PRAGMA wal_autocheckpoint =�100;
PRAGMA urnal_size_limit = 10000;


sqltext:
PRAGMA psiAL;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA wal_autocheckpoint =�100;
PRAGMA page_siAL;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA wal_autocheckpoint =�100;
PRAGMA journal_size_limit = 10000;AGMArnal000;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t1;
UPDATE t0 SET y=y+x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
C
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT 'a'>a FROM t0t0006;


sqltext:
PRAGMA auto_vacuum=2;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
;
CREATE INDEX x ON t1(b);
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t0;grit


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000, d00000000 INT0000, date_recei0ed INT0000, date_created INT0000, date_last_0ie0ed INT0000, mailbo0 INT0000, remote_mailbo0 INT0000, o000000000000000 INT0000, f0000 INT0000, read, fla00ed, s000 INT0000, c0000, e0000000, t0pe INT0000, p00, con0ersation_id INT0000 DEFAULT -0, s000000 TEXT DEFAULT NULL, fu000_ancestor INT0000 DEFAULT-NULL, automated_con0ersation INT0000 DEFAULT 0, root_status INT0000 DEFAULT -0, con0ersation_position INT0000 DEFAULT -1);
CREATE INDEX t00i0000 ON messa0es(date_recei0ed);
CREATE INDEX date_l0000e0_inde0 ON messa0es(date_last_0ie0ed);
CREATE INDEX d0t000000000000000 ON messa0es(date_created);
CREATE INDEX m000a0e000000000i0000i0000_0n000 ON messa0es(messa0e_id,mailbo0);
CREATE INDEX sqlite0ocument_0d_inde0 ON messa0es(document_id);
CREATE INDEX m000a0e0r0000000e0 ON messa0es(read);
CREATE INDEX m000000000000000i0000 ON messa0es(fla00ed);
CREATE INDEX m0000000000000000n000 ON messa0es(mailbo0, date_recei0ed);
CREATE INDEX me00a0e0r0000e00000000000000 ON messa0es(remote_mailbo0, remote_id);
CREATE INDEX m0s0a00000000i0000 ON messa0es(t0pe);
CREATE INDEX m00000e00o00000a00000000000000s0t0o00p0000000_0n000 ON messa0es(con0ersation_id, con0ersation_position);
CREATE INDEX m00000000000 ON messa0es(fu000_ancestor);
CREATE INDEX m0s0000_0000000000s000000000 ON messa0es(sub0ect,fu000_ancestor);
CREATE INDEX m000a0e0000000000000ct00u000000d00000e00000000000e0 ON messa0es(sender, sub0ect, automated_con0ersation);
CREATE INDEX m0000000000000000000 ON messa0es(sender);
CREATE INDEX m0s00s0 ON messa0es(root_status);
CREATE TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX sqlite000000000000000 ON sub0ects(sub0ect);
CREATE INDEX sqlite0_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATE NOCASE, comment, UNIQUE(address, comment));
CREATE INDEX a000d0000000000 ON addresses(address);
CREATE TABLE mailbo0es (R0000 INTEGER PRIMARY KEY, u00 UNIQUE,a0000000 INT0000 DEFAULT 0, u00000000000 INT0000 DEFAULT 0, u0000000000t INT0000 DEFAULT 0, d000000000000 INT0000 DEFAULT 0, u00000000000000000000000000000000000 INT0000 DEFAULT 0, c0000000000000000, source INT0000, a000000000000000000000000);
CREATE INDEX m000000000000000000000 ON mailbo0es(source);
CREATE TABLE labels(I0 INTEGER PRIMARY KEY,messa0e_id INT NOT NULL,mailbo0_id INT NULL, UNIQUE(messa0e_id, mailbo0_id));
CREATE INDEX d00 ON labels(messa0e_id, mailbo0_id);
CREATE INDEX ls_ ON labels(mailbo0_id)


sqltext:
CREATE TABLE k0(x, y, FOREIGN KEY(x, y) REFERENCES s FOREIGN KEY(x, y) REFERENCES s1(a, b));
PRAGMA foreign_key_check k0heck k0);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,c,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e= strftime(1,d,e,1,1,1)OR?;


sqltext:
SELECT b FROM t0 WHERE a000000000000000000000000000000000000000000000000 NOT IN t000000000000000000000 NOT IN t0000000000 NOT IN tb;�


sqltext:
SELECT sqlite_compileoption_used('SQLIT�_THREADSAFE');
SELECT sqlite_compileoption_used('SQLIT�_THREADSAFE');


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,b),UNIQUE(a,f,c,e,b),UNIQUE(a,b,d,e,f));
I(SERT INTO t5 VALUES(2,3,4,5,6,20000);REIN@EX


sqltext:
PRAGMA writablOFschema = 1;
CREATE TABLE �00000_00004 AS
SELECT 1;
CREATE TABLE s00000_00004 AS
SELECT changes()changes()EXISTKn


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF   a,ba,ba ON t10BEGIN
UPDATE t00 SET u0= u0000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF a,b,ba,ba ON t10 BEGIN
UPDATE t00 SET u0= u0000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF   a,ba5ba ON t10 BEGIN
UPTE t00 SET u0= u0000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF   a,ba,ba,ba ON t10 BEGIN
UPDATE t00 t00000 BEFORE UPDATE OF   a,ba,ba,ba ON t10 BEGIN
UPDATE t00 SET u0= u0000+1 WHERE r00000= o00.r000.r0000;
END;
INSERT lNTO t10(a)VALU/S('000');


sqltext:
PRAGMA default_cache_size=-188888888888;PRAGMA default_cache_size=-188888888888;
P��������������������������������RAGMA cache_size=-18888888888;
PRAGMA def
PRAGMA cache_size=-18888888888;
PRAGMA def�


sqltext:
PRAGMA legacy_file_format (1);
CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT);
INSERT INTO t1 VALUES(0,1);
INSERT INTO t1 VALUES(1,1);
INSERT INTO t1 VALUES(2,1);
CREATE INDEX i0 ON t1(b);
SELECT * FROM t1 WHERE b> 'a'


sqltext:
SELECT sqlite_compileoption_used('SQLEFT_THREADSAFE');SELECT sqlite_compileoption_used('SQLEFT_THREADSAFE');


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TaBLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1,X'');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c, .14) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,40e024) FROM t1;
INNSE


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE UPDATE ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000');
INSERT INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t0000000AFTER INSERT ON t0000 BEGIN
INSERT INTO w0000(b) VALUES('000000');
INSERT INTO t0090(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');
M


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,c)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(tbl,idx,stat)VALUES('t1','t1a','12000'),('t1','t1b','10000');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a BETWEEN C AND 8 ORDER BY c;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 20s�60� 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE D=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SE8ECT 


sqltext:
PRAGMA synchronous=ON;PRAGMA synchronous=ON;PRAGMA synchronous=ON;
PRAA synchronous=ON;
PRAize;
PRAPR7GMA synchrono


sqltext:
CREATE TABLE t0(a, b);
CREATE INDEX i0 ON t0(a);
CREATE INDEX i2 ON t0(a,b);
CREATE INDEX i3 ON t0(b,b);
INSERT INTO t0 VALUES(randomblob(20),randomblob(20));
INSERT INTO t0 SELECT randomblob(20), randomblob(20) FROM t0;
INSERT INTO t0 SELECT randomblob(20), randomblob(20)�FROM t;


sqltext:
CREATE TABLE t0(a, b);
CREATE INDEX i0 ON t0(a);EXPLAIN
CREATE INDEX i2 ON t0(a,b);
CREATE INDEX i3 ON t0(b,b);
INSERT INTO t0 VALUES(randomblob(20),randomblob(20));
INSERT INTO t0 SELECT randomblob(20), randomblob(20) FROM t0;
INSERT INTO t0 SELECT randomblob(20), randomblob(20) FROM t0;
INSERT INTO t0 SELECT randomblob(20), randomblob(25) FROM t0;
ANALYZE;


sqltext:
BEGIN;
CREATE TABLE n00be0s(a PRIM "a","b" b);
INSERT INTO n00be0s(oid) VALUES(NULL);
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid, b =-'.200';
COMMIT;


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=22 OR b=3 OR a=22 OR b=3 OR b=3;
Sn TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT S FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FRO t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT + FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LE=T JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(9,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a, zeroblob(1) x FROM t1, t2 GROUP BY 1, 2;


sqltext:
CREATE TABLE t0a(a,b);
CREATE TABLE t0b(x);
INSERT INTO t0a VALUES('on0', 1);
INSERT INTO t0a VALUES('on0', 2);
INSERT INTO t0a VALUES('t00', 3);
INSERT INTO t0a VALUES('�0', NULL);
INSERT INTO t0b(rowid,x)VALUES(1,1);
INSERT INTO t0b(rowid,x)VALUES(2,200);
INSERT INTO t0b(rowid,x) VALUES(3,300);
SELECT a, count(b) FROM t0a, t0b WHERE a<t0b.rowid GROUP BY a ORDER BY a;


sqltext:
CREATE TABLE t0b(x);
INSERT INTO t0b(rowid, x) VALUES( 1=01,10),(2,1 >>1);
UPDATE t0b SET rowid=rowid+1 WHERE x=10;


sqltext:
CREATE TABLE t00b AS SELECT "a","b"COLLATE''LIKE''LIKE'  "a","b"COLLE''LIKE'',"b"COLLATE''LIKE''L;
S0',"b"COLLATE''LIKE''L;
 00b;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+32,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x%10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, ob(400)); /* */INSERT INTO t1 VALUES(74,ob(400));
SELECT x, th(y) FROM t1 ORDER BY x;


sqltext:
SELECT  1000000%000-000600001000000%0000000601000000%000-000600001000000%00000;SELECT  1000000%000-000600001000000%0000000601000000%000-000600001000000%00000;


sqltext:
SELECT printf('0%110.120s0%110.105s0','REN0','RENAME0');SELECT printf('0%110.120s0%110.105s0','REN0','RENAME0');�


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2001-01.011), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 2;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2001-01E011), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 2;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT sqlite_source_id(), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 2;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRINDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='�REATE TABLE@:0(a NOT(NULLCURRENT_TIMESTAMPt1';
PRAGMA �ma=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
SELECT 1000000.00444444444444444444440e0444<00000600000000.00444444444444444444440e0444<00000600000;


sqltext:
BEGIN;
CREATE TABLE n00be0s(a PRIMARY KEY, b);
INSERT INTO n00be0s(oid) VALUES(NULL);
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;REINDEX;INTO n00be0s(oid) SELECT NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT  random() e0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid, b = '000000000000000000000000000000000000';REINDEX;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in ( random()-0,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE /* */(SELECT replace(A,1,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
SELECT avg( ?11)LIKE $::00s0000003;SELECT avg( ?11)LIKE $::00s00::00s0000003;SELECT avg( ?11)LIK00003; 


sqltext:
SELECT avg( ?11)LIKE $::00s00 LIKE $::00s0 LIKE $00s0 LIKE $::0 LIKE $::00::0 LIKE $3;SELECT avg( ?11)LIKE $::00s00 LIKE $::00s0 LIKE $00s0 LIKE $::0 LIKE $::00::0 LIKE $3 


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  "_OR";
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ON (x=99) ORDER BY x;VACUUM


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT-x<<001-01-011 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 200


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql=' <=ATE77777777777777777777777777777777 UNIQUE INDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA w�itama=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE t0(a INT0000);;
INSERT INTO t0 VALUES('30');
INSERT INTO t0 VALUES('4');
SELECT min(a), max(a) FROM t0;
INSERT INTO t0 VALUES('20 ');
INSERT INTO t0 VALUES('30');
INSERT INTO t0 VALUES('4');
SELECT min(a), max(a) FROM t0;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2,  a,b3,a,++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 'E0' ,R,�b,1
;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER UPDATE ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT00.e ,IMIT  a,b1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
CELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER UPDATE ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT00.e LIMIT  a,b1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT00.e LIMIT  a,b1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VTempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
CELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=��");
INSERT INTO t0 VALUES('TABLE IF EXISTS t fts4(tokenize=unicode61oneatwoBt0r00');
INSERT INTO t0 VTR`GGERone0000A0');
CREATE VIRTUAL TALECT * FRO���G fts4aux(t0);
SELECd * FROM t0aux;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x((((((((((I((((((((((((((((((((((��������������������������(((((SELECT x(((((((((((((((((((((((((((((((((��������������v�(((((((<1 FROM i ORDER BY<1)
SELECT x FROM i LIMIT 0001/01-0,#�;


sqltext:
SELECT  1000000000%00800000060000006>0800000060000006>02101000000%0080002001-01-01>02101000000%0080002001-01-010008000060000;


sqltext:
SELECT  1000000%0000030000010100000000060060000101000000%00800000060000006000101000000%0080000010100000000060060000101000000%00800000060000006000101000000%0080000600000000000800006000006000000000008000060000;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(2,'000');
INSERT INTO t1 VALUES(1,'0');
INSERT INTO t1 VALUES(3,'000000');
SELECT *, ( SELECT a FROM (SELECT a,b,"a","b"y) )
FROM ( SELECT * FROM t1 ) AS x;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT 8e02;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;ANALYZE


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT#0e02;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;ANALYZE


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr( char( a-b
),b)OR a- sqlite_version()


sqltext:
CREATE TABLE t0a(a,b);
CREATE TABLE t0b(x);EXPLAIN
INSERT INTO t0a VALUES('on0', 1);EXPLAIN
INSERT INTO t0a VALUES('on0', 2);
INSERT INTO t0a VALUES('t00', 3);
INSERT INTO t0a VALUES('00', NULL);
INSERT INTO t0b(rowid,x)VALUES(1,1);
INSERT INTO t0b(rowid,x)VALUES(2,200);
INSERT INTO t0b(rowid,x) VALUES(3,300);
SELECT a, count(b) FROM t0a, t0b WHERE@b<t0b.rowid GROUP BY a ORDER BY a;


sqltext:
SELECT sqlite_rename_parent( "X'a'a",'000','000');SELECT sqlite_rename_parent( "X'a'a",'000','000');


sqltext:
PRAGMA default_cache_size=-002888888888;
PRAGMA default_cache_size=-002888888888;
PRAGMA cache_size=-1888888PRAG8888888888;
PRAGMA def�


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, f, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE d=2 AND c=3 ORDER BY d COLLATE rtrim(1,1C;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE d=2 AND c=3 ORDER BY b COLLATE rtrim(1,1C;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT-'PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 9e99/;
ALTER TABLY t1 ADD COLUMN d TEXT oding=UTF16;00';
UPDATE t1 SET x=c+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, a) WHERE d IS NOT  [a];
INSERT INTO t1 VALUES(.1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;REINDEX


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE a IS NOT  [a];
INSERT INTO t1 VALUES(.1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;REINDEX


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT substr(1,1.1) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1402


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT substr(2001-01-011,1.1) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT substr(1,1 || .1) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b,  avg(1), c


sqltext:
SELECT NULL UNION SELECT NULL UNION
SELECT@1 UNION SELECT@2 AS ULL UNION
SELECT@1 UNION SELECT@2 AS 'x'
ORDER BY x;'x'
ORDER BY x;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(200));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT@random()LIKE x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(200));
INSERT INTO t0 SELECT randomblob(1) x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT random()LIKE x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=b);
INSERT INTO t4 VALUES('text 0ne', '0000',  time(1,1,1));
INSERT INTO t4 VALUES('text 0ne', '0000',  time(1,1,1));
INSERT INTO t4(t4) VALUES('integrity-check'); INTO ;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', '0t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TA0�0');


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 SELECT(' 0 c d e');
INSERT INTO ft0 VALUES('f 0 b c d');
SELECT snippet(ft0, CURRENT_TIME, -1, 1) FROM ft0 WHERE ft0 MATCH 'c';


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 bc', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;SELECT * FROM x0;
INSERT IN


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT 
INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd CT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0e Q');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;


sqltext:
SELECT typeof(group_concat(x''))
FROM (SELECT $� AS x UNION ALL SELECT (group_ccat(x''))
FROM (SELECT $� AS x UNION ALL SELECT (groncat(x''))
);


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%g0%c' /* */) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf(DISTINCT /* */) FROM t1 ORDER BY rowid;


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES($�, 'foo');EXPLAIN
INSERT INTO ft VALUES('foo', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES('', 'foo');
INSERT INTO ft VALUES('foo', 'foo');
SELECT offsets(ft) FROM ft WHERE:ft MATCH 'foo'AND -1;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2
LEFT JOIN t102 ON t
.i0 GLOB 'a0'LEFT JOIN t102  t
JOIN t102 A00e0


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn JOIN t102 ON t
.i0 GLOB 'a0'LEFT JO~N t10  t
JOIN t102 A0));


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000', b, '000' FRO FROM t1
UNION
SELECT b,a, '000', b, '000' FRO FROM t1
UNION
SELECT b,a,A'0', b, '000' FRO FROM t1
UA'b, '


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_qize = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cALLe_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
PRAGMA wal_checkpoint;EXPLAIN
INSERT INTO t1 VALUES(randomblob(800));
BEGIN;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  16 */
SAVEPOINT �ne;
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1; PRAGMA wal_checkpoint;EXPLECT randomblob(800)M�t1;   /* 128 */
INSERi INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
COMMIT;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime( /* */)));
INSERT INTO t1(y)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
SAVEPOINT s00;
SAVEPOINT s00;
SAVEPOINT s00s00;
SAVEPOINT s00;
SAVEPOINT s00;
SAVEPOINT AME;
SAVEPOINT AMENTs00;ANALYZE


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b� c);
CREATE TABLE t001(p INTEGER PRIMARY KEY, q, r);
CREATE TABLE t002(x�INTEGER PRIMARY KEY, y� z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002  t001, t002 WHE t0;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE randomblob(1);
INSERT INTO t1 SELECT a+5772001-01-01777777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a *772001-01-01777777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5772001-01-01777777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
REINDEX;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
WITH i(x) AS ( VALUES( 1=11) UNION SELECT  zeroblob(2001501-011) UNION SELECT  zeroblob(2001501-011) FROM i)
SELECT x FROM i LIMIT 11) FROM i)
SELECT x FROM i LIMIT 20;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(��������������������������������������������������������������������������������������������������a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' s�lite_compileoption_used(1) -1');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT sqlite_compileoption_get(A)/a FROM t0t0006;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' s�lite_compileoption_used(1) -1');
INSERT INTO t0t0006 VALUES('AB�������������X');
SELECT DISTINCT sqlite_compileoption_get(A)/a FROM t0t0006;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t00�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������06(a COLLATE nocase PRIMARY KEY);
INqERT INTO t0t0006 VALUES(' s�lite_compileoption_used(1) -�');
INSERT INTO t0t0006 VALUES('ABX');�SELECT DISTINCT sqlite_compileoption_get(A)/a(' s�lit FROM t0t0006;


sqltext:
CREATE TABLE ORt0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * FROM  c=? AND d=? AND e=?;


sqltext:
CREATE TABLE ASCt0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * FRc=? AND d=? AND e=?;


sqltext:
CREATE TABLE VIEWt0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * F c=? AND d=? AND e=?;


sqltext:
CREATE TABLE CONSTRAINTt0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * FROM  c=? AND d=? AND e=?;


sqltext:
CREATE TABLE AUTOINCREMENTt0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * ? AND e=?;


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * FROd,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX * FROM  c=? AND d=? AND e=?;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00-8000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, date(1,idx) stat FROM sqlite_stat1 ORDER BY 002;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('0 




















































































































   totaO(1)(1)@1avg(1)es')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rREFERENCES jumpingREFERENCES');
SELECT rowid FROM t1 WHERE content MATCH 'runREFERENCES jump';


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER �2r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER tXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER t2


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(c,b,c,d,e));
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND b=? AND c=? AND d=? AND b=? AND c=? AND d=? AND e OR?AND b=? AND c=? ;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND b=? AND c=? AND d=? AND b=? AND c=? AND d=? AND e OR?AND b= a=? AND b=? AND c=? AND d=? AND b=? AND c=? AND d=? AND? @ND c=? ;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND b=? AND c=? AND d=?;
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND b=? AND c=? AND d=? AND b=? AND c=? AND d=? AND e OR?AND b=? AND c=?  AND b=? AND c=? AND d=? AND e OR?AND b=? AND c=? ;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND  0  AND c=? AND d=? AND b=? AND c=? AND d=? AND e OR?AND b=? AND c=? ;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,a,b,c,d,e));
SELECT * FROM t0 WHERE a=B AND b=? AND c=? AND d=? AND b=?COLLATE a,bD e >=?;


sqltext:
CREATE TABLE t0 (a,INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0OR. *FROM ((t0 JOIN t2 TRANSACTIONa)x JOIN t2x TRANSACTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTTIONb) as00;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e));
SELECT * FROM t0 WHERE a=?BETWEEN? AND time(1,1,A,1,b,e));


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10/2


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 GROUP BY b, c< b, a, c, d, e< f,E;


sqltext:
SELECT NULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULLUNION
SELECT 1 UNION SELECT 2 AUNULLUNION
SELECT 1 UNION SELECT 2 AULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SEx'
ORDER BY (2)y^ x;


sqltext:
SELECT NULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY (2)ys


sqltext:
SELECT+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ NULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY (2)ys x;


sqltext:
SELECT NULL,"a","a","b" UN�O���������������������������������������������������������������������� UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY "a","a","b" UN�O���������������������������������������������������������������������� UNION
SELECT 1 UNION SELECT 2'x'
ORDER "a","b";


sqltext:
SELECT NULL,"a","a","b" UNION SELECT"b","a","a","b" UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNI UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY "a","b";


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diecritUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diecrit�cs=1'S('0');
INSERT """"""""""""""""""""""""""""");
I0""");
�cs=1'S('0');
INSERT """""""""""""""""""""""""""""""""""""""""""""""""");
I0""");
I0;
I


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT time(1,1,1) a, b, '000' [a] FROM t1
UNION
SELECT b,a, 1=1 '000' FROM t1
ORDER BY 3,3,a, '000', 3,a, '000'� 


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' [a] FROM t1
UNION
SELECT b,a, 1=1 COLLATE'000' FROM t1
ORDER BY 3,3,a, '000', 3,a, '000'� 


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, 3,a, '000', b, a,b, '000'COLLATE'000' FROM t1
GROUP BY 3,3,a, '000', 3,a, '000', b, a,b, '000' FR


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE char (20e0201,011,9) ORDER BY b;


sqltext:
PRAGMA psiL;
PRAGMA journal_size_limit = 10.;
PRAGMA journal_size_limit = 10.0 ;
PRAGMA journal_size_limit = 10.0 ;


sqltext:
PRAGMA page_sidL;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA journal_size_limit = 10.;
PRAGMA journal_size_limit =010.;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA journal_size_limit = 10.;
PRAGMA journal_size_limit =0 ;


sqltext:
PRAGMA page_sidL;
PRAGMA wal_autocheckpoint ==333333333333333333333333333333333333333333333333 WAL;
PRAGMA journnal_size_mit = 10.0 ;


sqltext:
WITH i(x) AS ( VALUES( avg(1)-011) UNION ALL SELECT 1=1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  84


sqltext:
WITH i(x) AS ( VALUES( avg(1)-0=1) UNION ALL SELECT 1=1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  04


sqltext:
WITH i(x) AS ( VALUES( avg(1)-011) UNION ALL SELECT 1=1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 204


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB����͹�̹�����������عƹ������������");
INSERT INTO t0 VLU


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),(-hex(2<01-01-01-011),'000'),(-hex(1),'000'),(-hex(1),'m00');


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),(-hex(2<01),'000'),(-hex(-01-011),'000'),(-hex(1),'m00');


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, date(1,idx) stat FROM sqlite_stat1 ORDER BY 002;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('2001-81-01  ')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts4(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE abs(1)IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(	)


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runnEEEEEEEEEEEED t1 WHERE crunnEEEEEEEEEEEED t1 WHEog ant jumping');
SELECT rowid n ju


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruyness and juCROSS');
SELECT rowid FROM t1 WHERE content MATCH 'runCROSS';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, to�enizntent, to�e:�orter);
INSERT INTO t1(rowid, cot) VALUES(1E');
qELECT ro���FROM


sqltext:
CREATE TABLE t1(a,b);EXPLAIN
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRI)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREAT� TA<LE!00(a NOT NULMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1 -100000000, '002001-0B-02001-0B-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, julianday(1,1,1));
INSERT INTO t1 (docid, c) VALUES (2, strftime(1,1,1,1));
INSERT INTO t1(docid, c) VALUES (3,3);
SELECT OPTIMIZE(t1) FE FROM t1 WHERE $ocid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1 LIMIT 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.b<x1.a;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE y1.P<y2.q;
SELECT * from z x1, z A;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0�c d e');
INSERT INTO ft0 VALUES('f 0 b c d');
SELECT snippet(ft0, '0', '0', '', "a",  char(1)) FROM ft0 WHERE ft0 MATCH 'c';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bbb c00', 'bbb 00');
SELECT * FROM x where y MATCH 'bbb NEA x USING fts4(---ELECT * FR^^^^^^^^^^^^^^^^^^OM x where y 4AT---y,0R/6fts4(----------ECT 1 FR^^^^^^^^^^^^^^^^^^OM x-------;
S 000';


sqltext:
SELECT NULL,"a","a","b" UNION SELECT"b" UNION SELECT "b"LL UNION SELECT"b" UNION SELECT "b"UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY""a","b";


sqltext:
SELECT sqlite_version() UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY "a","a","b";


sqltext:
SELECT NULL,"a", load_extension(1,1)"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY "a","a","b";


sqltext:
SELECT NULL,"a","a","b" UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL 
ORDER BY "a","a","b";


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileoo 0a00 s00 0 sqlite_compileoption_get(1)Si00-l00y-su0-Somme and ai0 wa000');
INSERT INTO t2 VALUES('000 ERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e00000 sqlite_compileoption_get(1)0a00(0u00000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 tie0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'NATURAL
JOIN t102 FT NATURAL
JOIN t102 AS tFT JOIN t102  ON( unlikely(10=t0.i0));


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), �tE),t0), (t0, (t05, (t0, ( t05, t), ( a,bt0), �tEt t05, (t0, ( a,bt0), �tE),t005, (t0, ( a,bt0), �tE),t0)), (t0)a,bt0), �bt0), �tE), (t0), tE)0,


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), �tE),t0), (t0, (t05, (t0, ( t05, t0, ( a,bt0), �tEt t05, (t0, (  ( a,bt0), �tE),t0), (t0,a,bt0), �tE),t005, (t0, ( a,bt0), �tE),t0)), (t0)a,bt0), �bt0), �tE), (t0), tE)0,


sqltext:
CREATE TABLE t0( a,ba,b,c,d,e, P a,bR a,bI  a,bea,be, PQ, PRIMARY KEY(a,b,c,d,c)) WITHOUT ROWID;REINDEX INDEX


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, b, c);
INSERT INTO t0(a, b, c) VALUES('one four', '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH ' /* */(---------------wo';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, b, c);
INSERT INTO t0(a, b, c) VALUES('one four', '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH ' /* *------wo';


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DE REFERENCES""UNIQUE REFERENCES t1(x) ON xPD(3)


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARE REFERENCES""UNIQUE REFERENCES t1(x) ON UPDATE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t0 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE DDDDDDDDDDDDDDDDDDDDt0(y DE R�FERENCES""UNIQUE REFERENCES t1(x) ON UPDATE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t0 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c c c');
INSERT INTO ft0 VALUES('f C c c d');
SELECT snippet(ft0, '0', '0', changes()) FROM ft0 WHERE ft0 MATCH 'c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d e');
INSERT INTO ft0 VALUES('f a,b 0 b c a time(1,1,1),b d');
SELECT snippet(ft0, '0', '0', '', -1, 5) FROM ft0 WHERE ft0 MATCH  'a''b''c';


sqltext:
CREATE TABLE t102 (i222222222222222222�222222222220 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURAL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  load_extension(1,1)
LEFT JOIN t102 ON t1.i0 GLOB 'a0'
JOIN t102 A0));


sqltext:
CREATE TABLE t102 (i222222222222222222�222222222220 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURAL JOIN(t102 ONAL JOIN(t102 Ot0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102)AS t2
LEFT JOIN t102 ON t1.i0 GLOB 'a0'
JOIN t102 A0));


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ������½������½��������00woBtϽ������00woBtϽ������½�����');
INSERT INTO t0 VALUES('one0000A-');
CREATE VIRT


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ������½��������00woBtϽ������½�����');
INSERT INTO t0 VALUES('tϽ콽���');
CREATE VIRT


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE /* */ (1);
SELECT  total(1)p FROM y AS y1, y  A, y  AS1, y  AS y1, y S1, y  AS y1, y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,a,b,b,c,a,b,c,e,b,c,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=?7S


sqltext:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,a,b,b,c,a,b,c,d,b,c,d,c,d));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=?7S


sqltext:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,a,b,b,c,a,b,c,d,b,c,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND b=?7S


sqltext:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,a,b,b,c,a,b,c,d,b,c,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND a=?7S


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, b, c);
INSERT INTO t0(c, b, c) VALUES('one t0ree four', '000 o00', 'owo');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fts3, c);
INSERT INTO o*tw o*two';


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y �NTEGER PRIMARY KEY, [a]a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT?1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS@NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=~~~~~~~~~~~~~~~~~~~~1 LEFT JOIN t92 OCT 5 CT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1OR b=3


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y �NTEGER PRIMARY KEY, [a]a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT?1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=y~~~~~~~~~~~~~~~~~~~1 LEFT JOIN t92 OCT 5 CT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1OR b=3


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n0"WHERE+(SELECT "000000" "n00b00" FROM "0000" GROUP BY   "a","b""a","b", "a","b""a","b",   "a","b" LIMIT 1)�IS 


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=A AND c=D AND d=? AND b=? AND c=? AND e<? AND e >=?;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=C AND c=D AND d=? AND b=? AND c=? AND e<? AND e >=?;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(b,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=D AND d=? AND b=? AND c=? AND e<? AND e >=?;


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES( 51120012001501-01-01-01,randomblob(2500));
INSERT INTO t1 VALUES(7,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT [a]L,randomblob(2001-01-0150)FROM t1;�INSE;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtϽ����߽����
�����������޽����NOTN������޽����VIEWNOTNULL00');
ALUEI 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtϽ����߽����
�����������޽����NOTN������޽���� blobNOTNULL00');
ALU


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  AS1, x  AS y1, y AS y1, y  A1, y AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b q FROM x AS x1, x AS x2 WHERE x1.a;
SELECT  total(A)p FROM y AS y1, y  AS1, x AS y1, y AS y1, y  AS y1, y AS y y1;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(142001-01-01501E01-0100));
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT sqlite_source_id() x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT round(1,1)
BEGIN;
DELETE FROM t0 WHERE rowid%6;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
CREATE VIRTUAL TABLE ft USING fts4(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo -2001-01-012001-01-011 -2001-01-011 -1';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' sqlite_version(),1)', 'foo');
INSERT INTO ft VALUES('foo', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' 1=1 -1foo 1=1 1 sqlite_version()=1';


sqltext:
CREATE TABLE t102 (i0 TEXT�UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON( @1i0= t0.i0  /* */ AND t0.i0=t0.oid AND t0.i0=t0.i0));


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  upper(1) FROM i ORDER BY 1)
SELECT  1=1/ randomblob(1)- random()x FROM i LIMIT 30 -7;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  upper(1) FROM i ORDER BY 1)
SELECT  1=1/ randomblob(1)- random()x FROM i LIMIT 14 -7;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT length(1) FROM i ORDER BY 1)
SELECT  1=1/ randomblob(1)- random()x FROM i LIMIT 10 -7;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t102 NATURAL
JOIN t102 AS 
LEFURAL
JOIN t102 AS 
CEFT JOIN t102  t1 ON t1.i0 NATURAL 
JOIN t102 AS t2;


sqltext:
CREATE TABLE t0(a, b);
SeLECT DISTINCT*,"ba","b",oid,"b""a","ba","b" "a","b""""a","baa","ba","b", *,"ba","b",oid,"b""a","ba","b", *,"ba","b",count(*)FROM (SELECT "ba","b""""i","ba","b","b",oid,"b""a","ba","b",count(*)a FROM t0) WHERE a==0;


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a","b""""a","ba","b"<oid,"b""a","ba","b", *FROM (SELECT DISTINCT"ba","b",oid bloboid,"b""a","ba","b", *FROM t0) WHERE a==0;


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a","b""""a","ba","b",oid,"b""a","ba","b", *FROM (SELECT DISTINCT"bab"����������id,"b""a
","b",oid,"b",oid,"b""a","ba","b", *FROM t0) WHERE a==0;


sqltext:
CREATE TABLE t102 (i0t0006 UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURQL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  tANDE JOIN t102 FT JOIN t102 ONNDE JOIN t102 FTLEFT JOIN t102  t
JOIN t102 A0));


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB��� t0�ٹ˹����������������ٹ˹���������������������ٹ˹����������������������ù������ "a"���kenize=un�");
RT 


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' time(1,1,1 strftime(1,1,1,1)used(1)f 0 b c a,b d');
SELECT snippet(ft0, '0', '0', '', -1, 2) FROM ft0 WHERE ft0 MATCH  'd(1)a''b''c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' time(1,1,1 strftime(1,1,1,1)used(1)f 0 b c a,b d');
SELECT snippet(ft0, '0', '0', '', -1, 2) FROM ft0 WHERE ft0 MATCH  ' (1 time(1,1,1))a''b''c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' time(1,1,1 strftime(1,1,1,1)used(1)f 0 b c a,b d');
SELECT snippet(ft0, '0', '0', '', -1, 2) FROM ft0 WHERE ft0 MATCH  ' (1)a''b time(1,1,1)''c';


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a""ba","b", *,"ba","b",oid,"b""a","ba","b", *FROM (SELECT group_concat(1,1)oi�,"g",oid,"b""a","""ba","b", *,"b""""a","ba","�b���b", *FROM t0) WHERE a==0;


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a""ba","b", *,"b""""a","ba","b",oid,"b""a","ba","b""""a","ba","b",oid,"b", *FROM (SELECT group_concat(1,1)oid,"g",oid,"b""a","""ba","b", *,"b""""a","ba","bba","b", *FROM t0) WHERE a==0;


sqltext:
CREATE TABLE x(y1, y  A,  a,ba,b);
CREATE VIEW y AS
SELECT x1.a AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.y=x2.a;
SELECT $total(1)p FROM y AS y1, y  A, y 


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a,���������������������������,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) FROM x AS x1, x AS x2 WHERE x1.a;
SeLECT  total(A),"�" a,b FROM y A, y  ASy1, y  AS1, x  AS y1, y AAS y;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,02) FROM ft0 WHERE ft0 MATCH   ' -1p2001-01-01used(1)f OR (1)a''b''a''b''c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,02) FROM ft0 WHERE ft0 MATCH   ' -1p -2001-01-01ed(1)f OR (1)a''b''a''b''c';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) Fa;
SELECT  total(A)a,b FROM y  y1, y  AS y1, y   A, y Ay1, y   A, y AS y1, y  A1, x  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) Fa;
SELECT  total(A),"�", a,b FROM y  y1, y y1, y   A, y Ay1, y   A, y AS y1, y  A1, x  AS y1, y At y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) Fa;
SELECT  total(A),"a","a", a,b , a,b FROM y  y1, y  AS y1, y  dA, y Ay1, y   A, y AS y1, y  A1, x  AS y1, y AS y y1;


sqltext:
CREATE TABLE t000( ''c0  UNIQUE,�,I, a,c0);
CREATE TABLE t002(c000,INT0000);
SELECT c000,* FROM t002 LEFT NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','0�',1);
INSERT INTO t1 VALUES(2,'00','e�',5);
INSERT INTO t1 VALUES(3,'000','000��',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','�',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(1,B)


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o�00');
INSERT INTO t1 VALUES(60, 1,X'0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'��0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c, -14) FROM t1


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,c,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600@100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE TABLE blob0(k, v BLOB);
INSERT INTO blob0 VALUES(1-0, zeroblob(length(CAST( hex(:001-01-011) AS CLOB))));


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1, -11,'0000');
INSERT INTO t1 VALUES(102001-01-01,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE@typeof(1)NOT BETWEEN [a]AND 60;


sqltext:
WITH i(x) AS ( VALUES( 1=11) UNION ALL SELECT min(1,1)  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  04


sqltext:
SELECT sqlite_rename_parent( " a.b>>>>>>>>>>0|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||��|||||||||�|||��|||es�>>>>>>X",'000','000');


sqltext:
SELECT sqlite_rename_parent( " a.b>>>>>.>>>>0|||||||||||h|||||���||||||| |�||||||||f|||�||||||||�|||�|||||||||�||�|||||esX",'000','000');


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' sqlite_compileoption_used(1) -1');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT sqlite_compileoption_get(A) "a","b",a FROM t0t0006;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' sqlite_compileoption_used(1) -1');REPLACE INTO t0t0006 VALUES('ABX');
SELECT DISTINCT sqlite_compileoption_get(A) "a","b",a FROM t0t0006;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' sqlite_compileoption_used(1) -1');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT sqlite_compileoption_get(A) "a","b", 'a'a FROM t0t0006;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a CLLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' sqlcompileoption_used@1)��1');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT sqlite_compileoption_get(A) "a","b",a FROM t0t0006;


sqltext:
PRAGMA mmap_size = 0;
PRAGMA page_size = 1024;
PRAGMA cache_size =ALL00;
CREATE TABLE t1(x);
CREATE TABLE t2(x);
CREATE TABLE t3(x);
CREATE INDEX i3 ON t3(x);
INSERT INTO t3 VALUES(randomblob(100));
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(000) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(12001-01-0100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(
00) FROM t3;
INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruLE t1 USING fts3(cning and jum mi}}}}}}}}}}}}}}}}}}}}}}}}}}NG fts3(cning a TABLE t1 USING fts3}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}������}}}}}}}}}}}}}}}}}}}}}}}}}}}t1 USING fts3}}}}}}}}}}}�}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}n(1,1)ping');
SELECT rowid FROM t1 WHERE content MATCH 'run jump';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(10000000000000.000, '002001-01-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid,$x) ;


sqltext:
CREATE TABLE t102 (i0 TEXT�UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t0.i0 ISNULL) );


sqltext:
CREATE TABLE t000(c0  a�ba,b,�,I, a blobte_compileoption_get(1)UNIQUE,INT0000);
SELECT c000.* FROM t000 AS c00 NATURAL JOIN t000 AS00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t3(a INTEGER PRIMAFY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, c, b, c, b, b


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, f, c, b, c, b, b


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM�t1;
INSERT INTO t1 SELECT randomblob(900) Ft1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(22001-01-0100);REINDEX


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM�t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM�t1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(22001-01-0100);REINDEX


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM�t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(22001-01-8100);REINDEX


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4( /* */d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;ANALYZEFROM s


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || 
01) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -81) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -01) x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1,X-1555555555555555.00 || -01) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 ||2-01) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || random() -01) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || changes() -01) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -0 || 1) x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(c,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(c, c,c,c,e);
VACUUM


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,D,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(c, c,c,c,e);
VACUUM


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0( [a],c,c,e);
VACUUM


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(c,b,a,d,e));
SELECT * FROM t0 WHERE a=E AND b=7 AND c=? AND d=A AND b=? AND c=?  AND d<? AND e ISNULL d<?


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'yyyeing %Yyyeing yyyeing %Yyyeing aANALYZEing');
SELECT M t1 WHERE cot MATCH 'runp';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( -11)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, yy, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( -1.)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p,  unicode(1)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, CURRENT_DATE FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(NULL)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( replace(1,1,1) -11)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( -12001-01-011)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( -11)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A,(y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y) y y1, y


sqltext:
CREATE TABLE
t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,e,a,c,d,e,e,a,b,c,d,b,c,d,e,e,b));
INSERT INTO t5 VALUES(1,1,1,1,1,:0000);
INSERT INTO t5,fEX


sqltext:
CREATE TABLE
t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,e,a,c,d,e,f,a,b,c,d,b,c,d,e,e,f));
INSERT INTO t5 VALUES(1,1,1,1,1,:0000);
INSERT INTO t5,fEX


sqltext:
CREATE TABLE
t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,e,a,c,e,e,a,c,d,e,e,a,b,c,d,b,c,d,e,e,f));
INSERT INTO t5 VALUES(1,1,1,1,1,:0000);
INSERT INTO t5,fEX


sqltext:
CREATE TABLE
t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,e,a,c,d,e,e,a,b,c,d,b,c,d,d,e,e,a,c,d,e,e,a,b,c,d,b,c,d,e,e,f));
INSERT INTO t5 VALUES(1,1,1,1,1,:0000);
INSERT INTO t5,fEX


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY UNIQUE,UTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(a) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000000');
INSERT INTO t0000(b) VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS �ooname;
ATTACH':ry:' AS ��na�oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;
ATTACH':my:' AS imemm��name;ANALYZE ��nanamname;
ATTACH'�me:' AS me;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;
ATTACH':my:' AS imemm��name;ANALYZE  imemm��name;ANALYZE ��nanamname;
ATTACH'�me:' AS me;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(1)q FROM x AS x1, x AS x2 WHERE likely(q);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y  Ad1, y y1, y S1, y y, y y1, yS1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(1)q FROM x AS x1, x AS x2 WHERE+likely(q);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y  Ad1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(1)q FROM x CURRENT_TIMEx2 WHERE likely(q);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y  Ad1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p,NOT lower(1)q FROM x AS x1, x AS x2 WHERE likely(q);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y  Ad1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT load_extension(1,1)q FROM x AS x1, x AS CURRENT_TIMESTAMPa;
SELECT $total(1)p FROM x AS y1, y ON A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y  Ad1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  A, y S1, y  ASy1, y S1, y y, y y1, yS1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  "a","b"p, sqlite_compileoption_used(1) x2 WHERE likely(P);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y  Ad1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y  AS y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT /* */( nullif(1,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y  A, y  CSy, y y1, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS y1, y S1= y y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */(SELECT nullif(A,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x A, y  A, y  CS1, y S�y11, y  ASy1, y S1, y y, y y1, y S1, y  AS y1)p FROM x AS y1, y  At0o  Cy y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT /* */(SELECT nullif(A,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x A, y  A, y  CS1, y S�y11, y  ASy1, y S1, y y1, y S1, y y, y y1, y S1, y y, y y1, y S1, y  AS y1)p FROM x AS y1, y  At0o  Cy y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE -0;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE+-1;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))LIMIT -1;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE "a" -1;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE NOT-1;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE - -11;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE -1;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM y  AS y1)p  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE"b"MATCH -1;
SELECT $tota|(SELECT $tota|(1)p FROM y AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b,b,c,c, b,c,b,c)000000


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(:eroblob(900));
INSERT INTO t0 VALUES(zeroblob(100));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 0 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
DELETE FROM t0 WHERE rowid>100;ANALYZE;


sqltext:
CREATE TEMP TABLE t0001(B '*?? *0*??????????�E000'aӝӜ);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*?? *0*??????????�E000';


sqltext:
CREATE TABLE t102 (i0 T�XT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 LEFT
JOIN t102 AS4
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t2.i0=+t0.i0 AND(t0.i0<>500 AND t2.i0-t1.i0));


sqltext:
#REATE Ta,b,c);
 VALUES(1,2,3),(4,5,6) ,(4,5,6) INTERSECT VALUES( lower(8888881),3,1),( total(1),1,3);


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('�INTO x0 SELECT *�ROM x0;
INSE0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0#S0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('�INTO x0 SELECT * FROM x��NSE0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0#S0;


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t�ϐ�������������������������������ᐐ��0����U�S('ab0');VACUUM


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB���������������榦�����榦����������������");
INSERT INTO t0 VALUES('ERT 


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts4(c);REPLACE INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE docid IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);REPLACE INTO t1(docid,c) SELECT zeroblob(1)id, c FROM t1o0d


sqltext:
WITH i(x) AS ( VALUES(1) UNION SELECT (x || avg(1) +1)TRANSACTION01 FROM i)
SELECT x FROM i LIMIT 203


sqltext:
WITH i(x) AS ( VALUES(1) UNION SELECT (x || randomblob(1) +1)TRANSACTION01 FROM i)
SELECT x FROM i LIMIT 203


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1( [a]i01, va0u01);
INSERT INTO t1 VALUES(4400400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( "a","b"-"a","b" / [a])
FROM t1
ORDER BY 002;


sqltext:
CREATE TABLE t102 (ASCi0m�000 UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AST JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN(t102 ASEFT JOIN t102 ON t1.i0 GLOB 'a0'
JOIN t102 A0));


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b,X'' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 1,a, '000' , 2, 3,a, '000' $a,


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b,A'' FROM t1
UNION
SELeCT a, b,A'' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 1,a, '000' , 2, 3,a, '000' $a,


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE docid < hex(1);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT docid, c FROM t1o0d;
DROP TABLE t1o0d;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runnEEEEEEEEEEED t1 WEEEEEEEEEED t1 WHERE coHERE cog ant jumping');
SELECT rowid n ju


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=c);
INSERT INTO t4 VALUES('t changes()ext�0ne', 'CURRENT_IME0000', 'te');
INSERT INTO t4(t4) VALUES('integrity-check');


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��000,bbb REGEXP'bb0');
SELECT * FROM x where y MATCH 'bbb NEAR/6 000 VIRTUAL TABLE x Y::::::::: x where y:::SING fts4(y,';


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT *, *,b,"b"AS m FROM t2 ORDER BY+a;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT round(1,1)AS m FROM t2 ORDER BY  a,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES( 1112001-01-01,randomblob(2500));
INSERT INTO t1 VALUES(?,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT NULL,randomblob(2001E01-0150)FROM t1;VACUUM


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, (SELECT a,bt0), �tT),t0)d, ( ( t05, (t0, (SELECT a,bt0bt0), �bt0), �t05, (t0, (SELECT a,bt0), �tT)tE), (t0)a,bt0)E), (t0)
WH),


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S��000,0, a,bREGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR/6 0::::G fts4(y,';


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽͽ�O��Ľ���������������������00');
INSERT INTO t0 VAL


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ���O��Ľ�����tϽ���O��İ��� blob������������00');
INSERT INTO t0 VAL


sqltext:
CREATE VIRTUAL TABLE t0 USING rtree( [a]i0 hiDDENDi0 hiDDENDINCT x2INCT i0 hiDDENDi0 hiDDENDINCx2, v1, y2);


sqltext:
CREATE VIRTUAL TABLE t0 USING rtree( [a]i0 hiDDENDi0 hiDDENDIDDENDi0 hiDDENDINCT x2INCNCT x2INCT x2, v1, y2);


sqltext:
CREATE VIRTUAL TABLE t0 USING rtree( [a]i0 hiDDENDi0 hiDDENDINCT x2INCi0 hiDDENDi0 hiDDENDINCT x2IT x2, v1, y2);


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT?1 FROM t91 LEFT JOIN t92 ON  ?1 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND ~~~~~~~~~~20 OR~~~~~~~~~~~~~~~~~~~~~~~~~~~~b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=~~~~~~~~~~~~~~~~~~~~~~~2 OR ?1;;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=:0 OR~~~~~~~2 OR ?1OR~~~~~~~~~~2 OR ?1OR b=3


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT?1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND ~~~~~~~~~~20 OR~~~~~~~~~~~~~~~~~~~~~~~~~~~~b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=~~~~~~~~~~~~~~~~~~~~~~~2 OR ?1;;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~2 OR ?1OR~~~~~~~~20 OR~~~~~~~~~~~~~~~~~~~2 OR ?1OR~~~~~~~~2 OR ?1OR b=3


sqltext:
CREATE TABLE t0(a, b);
SeLECT DISTINCT "a","ba","b",count(*)FROM (SELECT sqlite_version()"b",count(1)FROM (SELECT "ba","b""""a","ba","y","b",oid,"b""a","ba","b",count(*)a FROM t0) )FROM (S;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUEANDT NULL);
INSERT INTO T102 VALUES ('0');
SELECT 2 FROM t102 AFT JOIN t102 OAFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  tANDE JOIN t102 FT JOIN t102 gNEFT J�IN t);


sqltext:
CREATE TABLE t102 (i0 BEXT UNIQUEANDT NULL);
INSERT INTO T102 VALUES ('0');
SELECT 2 FROM t102 AFT JOIN t102 OAFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"NATURAL
JOIN t102 DE JOIN t102  tANDE JOIN t102 FT JOIN t102 gNEFT J�IN t);


sqltext:
CREATE TABLE t000( ''CURRENT_TIMESTAMP a,c0);
CREATE TABLE t002(c000,I,J0000);
SELECT c000,* FROM t002 LAL JOIN t000 AS c00 NATURAL JOIN t000 AS c00 NATS  


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '�', '?', '', -1, 8) FROM ft0 WHERE ft0 MATCH   'compiueleoption_used(1)f 0 OR (1)a''b''a 0  (1)a''b''a''b''b''on_used(1)f 0  (1)a''b''a 0  (1)a''b''a''b''b''option_used(1)f"0  (1)a''b''a 0  (1)a''b''a''B''b''ption_used(1)f 0  (1)a''b''a 0  (1)a''b''a''b''b''c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES('� c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '�', '?', '', -1, 8) FROM ft0 WHERE ft0 MATCH   'compileleoption_used(5)f 0 OR (1)a''b''a 0  (1)a''b''a''b''b''on_used(1)f 0  (1)a''b''a 0  (1)a''b''a''b''b''option_used(1)f 0  (1)a''b''a 0  (1)a''b''a''B''b''ption_used"ATE VIRTUAL TABLE f  (1)a''b''a''b''b''c';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT a,b/( nullif(1,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H T', 'V M 0 Y K', '0 Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', :X J '0 O T H V');
INSERT INTO x1(docS(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', 'V J P E C');
INSERT INTO x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q', 'L 0 0 Y 0', 'G 0 M R N');
INSERT INTO x1(docid,a,b,c) VALUES(19, 'T 0 0 P 0', '0 V Y B X', 'L Z 0 N 0');


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y', :X J '0 O T H V');
INSERT INTO x1(docS(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', 'V J P E C');
INSERT INTO x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q', 'L 0 0 Y 0', 'G 0 M R N');
INSERT INTO x1(docid,a,b,c) VALUES(19, 'T 0 0 P 0', '0 V Y B X', 'L Z 0 N 0');


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(4, 'J C Y N', 'R�0 0 X V', 'B O U A Q');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L X L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', 'X J P K R', '0 O T H V');
INSERT INTO x1(docid,a,b,c) VALUES(8, 'Y 0 0 0', '0 U E S J', 'N W L M R');
INSERT INTO x1(docid,a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0 U', 'V 0 E Q A');
INSERT INTO x1(docid,a,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 C', '� H T Q Z');
INSERT INTO x1(docid,a,b,c)VALUES(11, '0 E Q 0', '0 I 0 C B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C �����������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������TO x1(docid,a,b,c) VA���������������������������ʱ��������������������������������������������������������������������������������������������������񱱱�������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������);
INS������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', 'V J P E C');
INSERT INTO x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q', 'L 0 0 Y 0', 'G 0 M R N');
INSERT INTO x1(docid,a,b,c) VALUES(19, 'T 0 0 P 0', '0 V Y B X', 'L Z 0 N 0');


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('  				� @1av')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e));
SELECT * FROM t0 WHERE?AND@b=?BETWEEN? AND c=?BETWEEN?BETWEEN?AND@b=?BETWEEN? AND d=? AND d=? AND e=A;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT sqlite_compileoption_get(1 ||$77777777777777777) FROM i GROUP BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT sqlite_compileoption_get(1 || 77777777777777777) FROM i GROUP BY 1)
SELECT x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT sqlite_compileoption_get(1 || 77777777777777777) FROM i GROUP BY 1)
SELECT x FROM i LIMIT 50;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT sqlite_compileoption_get(1 || 77777777777777777) FROM i GROUP BY@1)
SELECT x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT oid,"b""""a","ba","b",a F,oid"a","b","ba","b","ba","b",a F,oid"a","b","ba",a F,oid"aa","b",a FROM (SELECT count(*)a FROM t0) WHERE a==0;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,oid"a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2,a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  "a","b"


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0
LEFT JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t0.i0< t0.i0 OR(50 AND t0.i0=t1.i0 AND t0.i0=t2.i0) AND t0.i0<t1.i0));


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES( 511*8012001-01-01-01-01,randomblob(2000));
INSERT INTO t1 VALUES(?,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT [a]L,randomblob(2001-01-0150)FROM t1;
INSERT INTO t1 SELEC�NULL,randomblob(5F)FROM t1;
INeERT `LTO t1 SELECT NULL,randomblob(50)FROM t1;
DELETE FROM t1 HERE a=1;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(a, b, c);
INSERT INTO t0(a, b, c) VALUES('one four', '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fts3(---��-$----------4 ;-------wo';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('@00 bbbb NEAR/6 00bb c00', 'bbb 000');
SELECT * FROM x where x MATCH 'bbb NEAR)6 00 NEAR/6 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('@00 bbbb NEAR/6 00bb c00', 'bbb 000');
SELECT * FROM x where x MATCH 'bbb NEAR -1/6 00 NEAR/6 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A,MES��00S��000,0,bbb REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb N`AR/6 0:::x USING f:G fts4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A���������������������������,UES��00S��000,0,bbb REGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR/6 0::::G fts4(y,';


sqltext:
CREATE TABLE t102 (i2222222222222222222��2222222OR220 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURAL JOIN(t102 ONt0
LEFT JOIN t102  t) ON t1.i0 GLOB 'a0'
JOIN t102)AS t


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1' 'remove_diacritics=1' 'remove_diacritics=1'""1'""seXa');


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatw������ν�����Ͻ���ڽ�Ľ���������ν��������ν����������00');
	NSERT


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT * FROM t0 WHERE~~~~~~~~~~~~~ a= /* */b=C AND c=? AND d=e
AND b=? AND c=? AND d=E || ~~~~~d=E AND e OR ~~~~~~~~~~~~~~~d=E AND e OROR?;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE time(q,1,1)IS /* */x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE time(1,1,1)IS /* */x2.a;
SELECT e(1,1,1)IS /* */x2.a;
 total(1)p FROM y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE time(1,1,1)IS /* */x2.a;
SELECT  total(1)p FROM y AS AS1, y y1, y A, y  ASy1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+977775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
REINDEX;
SELECT(c FROM EN


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(102001-01-011501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+577775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
REINDEX;
SELECT(c FROM EN


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(502001-01-01, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+577775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
REINDEX;
SELECT(c FEN


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+57777577-772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
REINDMX;
SELECT(c FROM EN


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200????????�-01>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>N>>>>>&>TEMPORARY>>>>>>>>>-01f00', '000');


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200����????1-01>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>N>>>>>&>TEMPORARY>>>>>>>>>-01f00', '000');


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200??????#?1-01>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|||||||||||||||||||||||||||||-01f00', '000');


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a +b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,7)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c,  1=1||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,2001-01-014)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, a, b, c, b< b


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, a, a, d, e);
EXPLAIN QU, b, c, b, b


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 OR c=3 ORDER BY b, c, b, b,c, b, b


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1
@1 1=1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES('xtension(1�1)', 'foo');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1 strftime(1,1,1,1)*@1 1=1';f


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT /* */( nullif(1,1))LIMIT "a","b";
SELECT $tota|(SELECT $tota|(1)p FROM y AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT /* */( nullif(1,1))LIMIT "a","b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y) y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMIT "a","b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT /* */( nullif(1,1))LIMIT "a","b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y, y  A)p FROM y


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTERRABLE REFERENCES t1GER PRIMARY KEY DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00',  'b`b* a,b/B 000''b"b 0a0');
SELECT * FROM x where y MATCH 'b`bNEAR/6 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00',  'b`b* a,b/B 000''b"b 0a0');
SELECT * FROM x where y MATCH 'b`b*NEAR/b/B 0006 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00',  'b`b* a,b/B 000''b"b 0a0');
SELECT * FROM x where y MATCH 'b`b,b/B 0*NEAR/6 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A,UES��00S��000,0,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb N`AR N`AR/6 0:::/6 0::::G fts4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A,UES��00SSSSSSSSSSSSSSSSSSSSSSSSSS��000,0,bbb REGEXD'bbb 000');
SELECT * FROM x where y MATCH 'bAb N`AR N`AR/6 0:::/6 0::::G fts4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A,UES��00S��000,0,bbb REGEXP'bbb 000');
SELECT * FROM x where y MATCH 'b N`AR N`AR/6 0:::/6 0:bb N`AR N`AR/6 0:::/6 0::::G fts4(y,';


sqltext:
CREATE TABLE t102 (i0 �EXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'CROSS
JOIN t102 AS t2 ON(t2.i0= t0.i0  /* */ AND t0.i0=t0.oid AND  @1i0>t2.i0));


sqltext:
CREATE TABLE t0( a,ba,b,c,d,e, P UNIQUE,bI a,be, PRIMARY KEY(a,ba,bI,c,p,a,ba,b,c,b,e,d,a,bI,c)) WITHOUT ROWID+R


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S��000,/,bbb,R,GEXP'bbb');
SELECT * FROM x where y MATCH ':memory:/6 0DDDDIRTUAL TABTE VIRTUAL TABLE x USING ftsLE x USIN:�:::::������ftb4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��04S��0ppppppppppppppppppppppp00,/,bCb,REGEXP'bbb');
SELECT * FROM x where y MATCH ':memory:/6 0DDDDIRTUAL TABTE VIRTUAL TABLE x USING ftsLE x USIN:�:::::���ftb4(y,';


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102
LEF102 
JOIN t102 AStT JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t
LEFT JOIN t102 
JOI2 ON( unlikely(1) OR t1.i0=t0.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0>t2.i0) AND t2.i0<t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0=t1.i0 AND t0.i0<t2.i0) AND t2.i0=t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0>t1.i0 AND t0.i0<t2.i0) AND t2.i0<t1.i0));


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-05b cc');
INSERT INTO t0 SELECT('5555555555555555555555555551-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2*01-01-01';
END;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(9,1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 203


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1<1))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 203


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b201�01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b2w0s01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01-01';
;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('�1 �b2001-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH-'0*201-01';
END;


sqltext:
CREATE VIRTUAL TABLE x USING fts4(yALUES:memory:USIN:�:�:::GEXi'bbb');
SELECT * FROM x where y MATCH 'b6 0DDDDIRAL TA���ftb4(y,'


sqltext:
CREATE TABLE t5(a, b);
SeLECT DISTINCT "a""ba","b",count(*)WHERE(SELECT "a","b", *,"ba","b",count(*)FROM (SELECT "ba","b""""a","ba")WHER,(SELECT"b""a","ba","b",count(*) a, "a","b"t0) )NOTNULL;


sqltext:
CREATE TABLE t5(a, b);
SeLECT DISTINCT "a""ba","b",count(*)WHERE(SELECT "a","b", *,"ba","b",count(*)FROM (SELECT "ba","b""""a","ba")WHERE(SELECT"b""a","ba","b", "a","b" a, "a","b"t0) )NOTNULL;


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);EXPLAIN
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', 'foo');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1OR');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q,ba,ba)ba,q);
C


sqltext:
CREATE TABLE x( a,b a,ba,q);
CREATE VIEW y AS
SELECT total(q)p, B,bb AS q FROM x AS �1, x AS x2 USING  (   a,a,ba,ba,ba,q,ba,ba)ba,q);
C


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, x AS x y1;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 201-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '�*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 201-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01�01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 201-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH-'0*2001-01-01';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 201-01-01��01-01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*2001-01*0*';
END;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, char(0) q FROM x AS x1, x AS x2 WHERE+time(1,q,1)OR-x1.a-x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y, y;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE 1=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.a AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, total(1)q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y JOIN y AS y 


sqltext:
CREATE TABLE x( a,b a,ba�1, x,q);
CREATE VIEW y AS
SELECT total(q)p, *,bb AS q FROM x AS �1, x AS x2 USING  (   a,a, "a","","")q);1.q)q);1.q=y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=q+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, x  AS y1, y AS A, x  AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, x A, x  AS y1, y AS A, x  AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS�q FROM x AS x1, x  AS y1,  x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, x  AS y1, y AS A, x  AS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;SELECT  total(1)p FROM y AS y1, y  AZ1, y y1, y A, x  AS y1, y AS A, x    AZ1, y y1, y A, x  AS y1, y ASAS yy y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS a FROM x AS x1, x AS x2 WHERE q=1+time(q,1,11,1,11,1,1)OR
x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(� a,ba,ba� a,G  a,bs,ba�1,  a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bb AS q FROM x AS �1, x AS�x2 USING  (    a,bx,q);
);y


sqltext:
CREATE TABLE x( a,b, y,ba,ba� a,b1, x,q);
CREATE VIEW y AS
SELECT total(q)j, *,bb AS q FROM x AS �1, x AS x2 USING  (   q, q,q,ba,ba,q,ba,ba,bv)q);y


sqltext:
CREATE TABLE x(� a,ba,ba� a,a� a,bs,ba�1,  a,bx,q);
CREATE VIEW y AS
SELECT tota�(q)p, *,bbp, *,bb Ap, *,bb AS Ap, *,bb AS q FROM x AS �5, x ASS q RENAME


sqltext:
CREATE TABLE x( a,b a,� a,ba,q);SELECT total(q)p, *,ba ASa,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba q FROM x AS �1, x AS x2 USING  (  "a","b",q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10 || 20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IS (SELECT * FROM t1 WHERE a<10);
DR


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);EXPLAIN
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT 'a'>a FROM t0t0006;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 20s unic1)0 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE D=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SE8ECT 


sqltext:
PRAGMA synchronous = NORMA;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
PRAGMA wal_checkpoint;EXPLAIN
INSERT INTO t1 VALUES(randomblob(800));EXPLAIN
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  16 */
SAVEPOINT one;
INSERT INTO t1 SELECT randomblob(800) Ft1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  3INTO t1 SELECT randomblob(800) FROM t1;   /*  64 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
COMMIT;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(:001-01-011), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2001-01.011), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower( ltrim(1,1)), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql=' <=ATE77777777777777777777777777777777 UNIQUE INDEX <=ATE77777777777777777777777 t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA w�itama=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(c, c, f, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE d=2 AND c=3 ORDER BY d COLLATE rtrim(1,1C;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE /* */NOT  [a];
INSERT INTO t1 VALUES(.1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;REINDEX


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=c);
INSERT INTO t4 VALUES('text 0ne', '0000',  time(1,1,1));
INSERT INTO t4 VALUES('text 0ne', '0000',  time(1,1,1));
INSERT INTO t4(t4) VALUES('integrity-check'); INTO ;


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=b);
INSERT INTO t4 VALUES('�ext 0ne', '0000',  time(1,1,1));
INSERT INTO t4 VALUES('text 0ne', '0000',  time(1,1,1));
INSERT INTO t4(t4) VALUES('integrity-check'); INTO ;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0�b c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 " c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 b #', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURR�T_TIME0 b c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_���0 b c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURAUTOINCREMENTc', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_ "a","b"c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_T+2 daysIME0 b c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd  "a","b" f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;REINDEX


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,e,c,d,b,c,d,e,c,d,d,b,c,d,e,d,e,c,d,d,b,c,d,e,c,d,e,e,e));REINDEX rtrim(1,1)? AND d=? AND e=?;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2 BEFORE INSERT ON t2 BEGIN SELECT 0; END;EXPLAIN
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER �2r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER tXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER t2


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 90/2


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 50/2


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 30/2


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10/3


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1012


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(c, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY a DESC, avg(1), b,+last_insert_rowid(),C;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY a DESC, avg(1), b,+last_insert_rowid(),C;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY+a DESC, avg(1), b,+last_insert_rowid(),C;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY a DESC, avg(1) -1,+last_insert_rowid(),C;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, 3,a, '000', b, a,b, '000'COLLATE'000' FROM t1
GROUP BY 3,3,a< '000', 3,a, '000', b, a,b, '000' FR


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),(-hex(2401-01-01-011),'000'),(-hex(1),'000'),(-hex(1),'m00');


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),(-hex( likely(1)-011),'000'),(-hex(1),'000'),(-hex(1),'m00');


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),( group_concat(1,1)-hex(2<01-01-01-011),'000'),(-hex(1),'000'),(-hex(1),'m00');


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running ant Jgggggggt1 WHER���ntent Mrecei0eHERE content Mrecei0edt jumping');
CCH 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running ant jggggggggt1 WHER���ntent Mrgggggt1 WHER���ntent Mrecei0eHERE content Mrecei0edt jumping');
CCH 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running ai0eH��ntent Mrnt jgggggggt1 WHER���ntent Mrecei0eH��ntent MrecERE content Mrecei0edt jumping');
CCH 


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRINDEX t<0/////////<///////////////ter SET� TABLE!00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRINDEX t00/////////<>//////////////ter SET� TABLE!00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1 -100000000, '002001-0�-02001-0B-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d e');
INSERT INTO ft0 VALUES('f 0 b c d');
SELECT snippet(ft0, '0', '0', '', "a",  char(1)) FROM ft0 WHERE ft0 MATCH 'c';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('02001-01-0100 bbb c00', 'bbb 02001-01-0100');
SELECT * FROM x where y MATCH 'b`b*NEAR/6 0*0';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bbb c00', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb NEA x USING fts4(----------;
SELECT * FR^^^����^^^^^^^^^^^OM x wheT * FR^^^����^^^^^^^^^^^OM -------------;
S 000';


sqltext:
CREATE TABLE t1(a, b char(1), PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a, x FROM t1, t2 GROUP BY 1, a, a,b, a, "a","b"


sqltext:
CREATE TABLE t1(a, b char(1), PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT *, x FROM t1, t2 GROUP BY 1, a, a,b, a, "a","b"b


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1 1=1,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileopdion_used(1)leet wa0 r000 to 0a00 s00 0 sqlite_compileoption_get(1)Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e00000 sqlite_compile0000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileopdion_used(1)leet wa0 r000 to 0a00 s00 0 sqlite_compileoption_get(1)Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e00000 sqlite_compile0000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');REINDEX


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rujlllllYYYY��YYYCREATEALLY;YYYYALLY');
SELECT rowid FR


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000000000.00000, '02001-01-0T0%)�
INSERT 00.0000(docid,0x) VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000-0000000.00000, '02001-01-0T0%)�
INSERT 00.0000(docid, x) VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000000000-0.00000, '02001-01-0T0%)�
INSERT 00.0000(docid, x) VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DE REFERENCES""UNIQUE REFERENCES t1(x) ON UPDATE SET DEFAULT);
CREATE TABLE t3(y REFERDE REFERENCES""UNIQUE  NULL);REPLACE INTO t1 VALUES(13);VACUUM
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGES PRIMARY KEY);
CREATE TABLE t0(y DE REFERENCES""UNIQUE REFERENCES t0(x) ON UPDATE SET DEFAULT);
CREATE TABLE t3(y REFERDE REFERENCES""UNIQUE  NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a /* */,b,c,a,b,c,d,b,c,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND a=?7S


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=a�");
INSERT INTO t0 VALUES('dneatwoBtϽ����߽����
�����������޽����NOTN������޽����ORNOTNULL00');
AL


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtϽ����߽����
�����������޽����NOTN������޽����ORNOTNULLtϽ����߽��00');
AL


sqltext:
CREATE TABLE t102 (i0 TEXU UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON( @1i0= t0.i0  /* */ AND t0.i0=t0.oid AND t0.i0=t0.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t102 NATURAL
JOIN t102 AS 
LEFURAL
JOIN t102 AS 
CEFT JOIN t102  t1 ON t1.i0 NATURAL 
JOIN t102 AS t102 NATURAL
JOIN t102 AAS t2;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' time(1,1,1 strftime(1,1,1,1)used(1)f 0 b c a,b d');
SELECT snippet(ft0, '0', '0', '', -1, 2) FROM ft0 WHERE ft0 MATCH   'a''d(1)a''b''c';


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a,��,���������������������������,I000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(DEFERREDa,b000,INT0,ba,b,�,I, ab�������������������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(c0  a,c a,b000INT0,ba,b,�,I, a,b�������������������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(c0  a,c a,b000,INT0,ba,b�,I, a,b�������������������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(c0  a,c a,b000,INT0,ba,b,�,I, a,b�������������������������0,INT0000);
SELECT c000,* FROM t000 NATURAL JOIN t000 AS c00000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(c0  a,c a,b000,INT0,ba,b,�,I, a,b�����������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000( 'a''b'c0  UNIQUE,c000 a,c0);
CREATE TABLE t002(c000, 'a''b');
SELECT c000.* FROM t002 LEFT00 NATURAL JOIN t000 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
PRAGMA mmap_size = 0;
PRAGMA page_size = 1024;
PRAGMA cache_size =ALL00;
CREATE TABLE t1(x);
CREATE TABLE t2(x);
CREATE TABLE t3(x);
CREATE INDEX i3 ON t3(x);
INSERT INTO t3 VALUES(randomblob(100));
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(180) FROM t3;
INSERT INTO t3 SELECT randomblob(12001-01-0100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT sqlite_version()FROM t3;
INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM�t1;
INSERT INTO t1 SELECT randomblob(900) Ft1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(72001-01-0100);REINDEX


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT total(1) i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -81) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -81) x FROM i LIMIT 200


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, 55555.00 || -1555555555555555.00 || -81) x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(c,b,c,a,b,c,d,a,b,c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0( [a],c,c,e);
VACUUM


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)q, lower( -11)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A,(y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y) y y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(DISTINCT nullif(1,1)) "a","b"WHERE"";
SELECT $tota|(SELECT $tota|(1)p FROM y AS y, y S1, y  AS y1)p FROM x AS y1E y  


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(DISTINCT nullif(1,1))WHERE"b" -1;
SELECT $tota|(SELECT $tota|(1)p FROM y AS y, y S1, y , y   AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE"b"MATCH -1;
SELECT $tota|(SELECT $tota|(1)p FROM y AS y, y S1, y , y   AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1, y  AS M x 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE"b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1,( y S1, y  AS y1)p FROM x


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE++++++++++++++++++++++++++"b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1,(SELECT $tota|(1)p FROM y AS y, y S1, y  AS y1)p FROM x


sqltext:
CREATE TEMP TABLE t0000(aӝӜ);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*?? *0*[?????????�E000';


sqltext:
CREATE TEMP TABLE t0000������������������������������(aӝӜ);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*?? *0*??????????�E000';


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t4t��q�������������U�S('abTF16be;
CRE.TE TABLE t0t�ϐ��0');VACUUM


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB���������������榦�����榦�����������������������");
INSERT INTO t0 VALUES('ERT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB���������������榦�����榦�������������榦����������������");
ALUES('ERT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aBone������������separators=aB��������榦�����榦����������PPPPPPPPPPPPPPPPPPPPPPPPPPP������");
INSERT INTO t0VALUES('ERT 


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1( [a]i01, va0u01);
INSERT INTO t1 VALUES(44.0400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( "a","b"-"a","a" /* */)
FROM t1
ORDER BY 002;


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(e,b,c,e,d,d,b,c,d,a,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? AND e=?;


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(e,b,c,e,d,d,b,c,a,e,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? AND e=?;


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY( /* */e,d,d,b,c,d,e,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? AND e=?;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b,X'' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 1,a, '000' , 2, 1,a, '000' $a,


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b,A'' FROM t1
UN1
ORDER BY 2, 1,a, '000' , 2, 3,a,�'000'


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b,A'' FROM t1
UN1
ORDER BY  a,b,a, '000' , 2, 3,a, '000' $a,


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUDS��000,bbb REGEXP'bb0');
SELECT * FROM x where y MATCH 'bbb NEARE x US:::::: x where y:::SING fts4(ING fts4(y,ALU x Y::::::::: x where y:::SING fts4(y,';


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER INSERT ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID> randomblob(1) OR Te0tId/0;
Te0tId=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ���O��Ľ���������������������00');
INSERT INTO t0 VAL


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DIR3jumpiED(1,TABLEd jumpiEpiED((cEd jumpiED(1,TABLEd jumpiEFERR3(cEd jumpiED(1,TABLEd jumpiEpiED(1,TABLEd jumS(1, ng');
SEu


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+1 FR����FRO, a.b,O. * ,I, a.b,O. * ,I,i ORDER BY 1)
SELECT x FROM i ,I,I,I? 1


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ sqlite_compileoption_get(1)b,O. * ,I,i ORDER BY 1)
SELECT x FROM i ,I,I,I? 1


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+1 FRO,1 FRO, a.b, a,b ,I, a.b,O. * ,I,i ORDER BY 1)
SELECT x FROM i ,I,I,I? 1


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+1 FRO,1 FRO, a.b,O. * ,NOTNULLO. * ,I,i ORDER BY 1)
SELECT x FROM i ,I,I,I? 1


sqltext:
WITH i(x) AS ( vALUES(1) UNION ALL SELECT x+1 FRO,1 FRO, a.bRO, a.b,O. * ,I, a.b,O. * ,O. * ,I, a.b,O. * ,I,i ORDER BY 1)
SELECT x FROM i ,I,I,I? 1


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  ��������REpileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '�', '?', '', -1, 8) FROM ft0 WHERE ft0 MATCH   'compileleoption_used(1)f 0 OR (1)a''b''a 0  (1)a''b''a''b''b''on_used(1)f 0  (1)a''b''a 0  (1)f 0  (1)a''b''a 0  (1)a''b''a 0 a''b''a''b''b''option_used(1)f 0  (1)a''b''a 0  (1)a''b''a''B''b''ption_used(1)f 0  (1)a''b''a 0  (1)a''b''a 0 OR (''b''b''c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqliteScompileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '�', '?', '', -1, 8) FROM ft0 WHERE ft0 MATCH   'compileleoption_used(1)& 0 OR (1)a''b''D 0  (1)a''b''a''b''b''on_used(B)f  0 OR (1)a''b''D 0  (1)a0  (1)a''b''a 0  (1)a''b''a''b''b''option_used(1)f 0  _used(1)f 0 b c aa''b''a''B''b''ption_used(1)f 0  (1)a''b''a 0  (1)a''b''a 0 OR (''b''b''c';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */(-nullif(A,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a", @1"b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2,a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT random() a,oid"a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2,a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  "a","b"


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(a, b, c);
INSERT INTO t0(a, b, c) VALUES('one four', '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fts(---��-$----------4 ;-------wo';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1' 'remove_diacritics=1' 'remove_diacritics=1'""1'�"seXa');


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200??????#?1-01>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>||||||`||||||||||||||||||||||-01f00', '000');


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200??????#?1-01>>>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>||||||||`||||||||||||||||||||-01f00', '000');


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200????||||||||||||||||||||||-01f??#?1-01>>>>J>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|||||||||||||||||||||||||||||-01f00', '000');


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABLE('200??????#?1-01>>|||||||||||||||||||||||||-01f>>>>>>>> >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>|||||||||||||||||||||||||||||||||||||||||||||||-01f00', '000');


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0,-2,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 2,.3);
INSERT INTO abc SELECT a||b||c,  [a]||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMIT "a","b";
SELECT $tota|(SELECT $tota|81)p FROM x AS y1, y, y  A y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMI, "a","b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y, y  A)p FROM x AS y1, y  � AS y


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x �NTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x) DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x) DEFERRABLE REFERENCES t1(x) ON INSERT SET DEFAULT REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x) DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT REFERENCES t1 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x) DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);VACUUM
I


sqltext:
CREATE TABLE t102 (i0 intT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t2.i0=+t0.i0 OR t1.i0= t2.i0 OR t2.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 
JOIN t102 AS 
LE
JOIN t102 AS t2 ON(t2.i0=+t0.i0 OR t1.i0= t2.i0 OR t2.i0=t1.oid);


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A,UXS��00S��000�0,bbb,REGEXP'bbb');
SELECT * FROM x where y MATCH 'bbb N`AR N`�������AR/6 0:::/6 0::::G ftsR N`�������AR/6 0:::/6 0::::G ft4(y,';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content tokenizorter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning�and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run """"""""""""""""""""""""1"ru"""""""""""""""""""""""""""""""""""""""""""""""""1"""""""""ju"""""""""""""1"ru"""""""""""""""""n """"""""""""""""""""""run """""""""""""""""""""""""""""""1"""""""""""""""""""""""""""""""""jump';


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0>t1.i0 AND t1.i0<t2.i0) AND t2.i0<t1.i0));


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*0*01-0*0*01-01-01';1-01';
END;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,?))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 603


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,?))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 283


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,?))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 263


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ~trim(1,?))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 203


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT min( ltrim(1,X))  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 203


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADD /* */OR
01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99) OR (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t0000(a blobGER PIQUE,UFOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
SELECT('har(1)ACE INTO t0000(b) VALUES(000');
END;
CREATE TRIGGER t000000�AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
INSERT INTO t0000(a) VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a blobGER
PIQUE,UFOINCRPRIMARY KEY UNIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
SELECT('har(1)ACE INTO t0000(b) VALUES(000');
END;
CREATE TRIGGER t000000�AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b2w0s01-01');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 VALUES('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '�*2001-01-01';
;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(q,q,1)OR-x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT datetime(1,1,1) AS q FROM x AS x1, x AS x2 WHERE q=q+time(q,1,1)OR-x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  group_concat(1,1) q FROM x AS x1, x AS x2 WHERE q=q+time(q,1,1)OR-x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE t5(a, b);
SeLECT  group_concat(1,1)"b",count(*)WHERE(SELECT "a","�", *,"ba","b",count(*)FROM (SELECT "ba","b""""a","ba")WHERE(SELECT"b""a","ba","b",count(*) a, "a","b"t0) )NOTNULL;


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', ' @1');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES(' load_extension(131)', ' @1');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1��)', ' @1');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1OR');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.a AS q, x2.b AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a= (1);
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, x2.b AS q FROM x AS x1, x , x AS x2 WHERE 1=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y   AS y1, y AS A, x  AS yy y1;


sqltext:
PRAGMA auto_vacuum=2;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);BEGIN
;
CREATE INDEX x ON t1(b);
DROP TABLE t1;
PRAGMA integrity_check;
DROP TABLE t0;grit


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 20s unoc1)0 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE D=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SE8ECT 


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(0))FROM i GROUP BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(2001-01-011))FROM i GROUP BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(12001-01-01))FROM i GROUP BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2001-01E011), substr(m,2,1) AS00 FROM t0GRO1;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2001.01E011), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2001-0.E011), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower( ltrim(1<1)), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(c, c, f, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE d=d COLLATE rtrim(1,


sqltext:
CREATE VIRTUAL TABLE x0 USING fts3(0, b);
INSERT INTO x0 VALUES(NOT'CURRc', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,c)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(tbl,idx,stat)VALUES('t1','t1a','1߃| '),('t1','t1b','߀ '),('t1','t1b','1߃| ');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WD 8 OR@b


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,c)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
CREATE INDEX t1a ON t1(a);
CREATE INDEX t1b ON t1(b);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(idx,idx,stat)VALUES('t1','t1a','1߃| '),('t1','t1b','�� '),('t1','t1b','1߃| ');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WD 8 OR@b


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2 BEFORE INSERT ON t2 BEGIN SELECT 0; END;EXPLAIN
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;EXPLAIN
CREATE TRIGGER �2r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER tXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER t2


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT x FROM i LIMIT 14/3


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT datetime( 1=11) FROM i ORDER BY 1)
SELECT rtrim(1,1) x FROM i LIMIT 10/3


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY a DESC, avg(1) -1,+last_insert_rowid(),C;


sqltext:
SELECT NULL "����b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY (1)ys x;I


sqltext:
SELECT NULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT NULL "a","b" UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY (1)ys


sqltext:
SELECT NULL "a","b" UN UNION SELECT NULL UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY (1)ys x;I


sqltext:
SELECT NULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNUL UNION
SELECT 1 UNIOLL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY MATCH(2)ys x;I


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(10000000-000.00000, '02001-01-0T0%)�
INSERT 00.0000(docid,0x) VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000-000000077737777.00000, '02001-01-0T0%)�
SELECT rowid FROM t0 
INSERT 00.0000(docid, x) VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,a,b,b,c,a,d,c,d,b,c,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=B AND b=? AND c=? AND a=?7S


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=a�");
INSERT INTO t0 VALUES('dneatwoB�Ͻ����߽����
�����������޽����NOTN������޽����ORNOTNULL00');
AL


sqltext:
CREATE TABLE t102 (i0 TEXT� "a","b"UNIQUE NOT NULL);
INSERT INTO t102 
SELECT DISTINCT* FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 i0= 


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a,� a,b����������������������,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a,�������������,���������������������������,��������������,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a,���������������������������,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00c0c00 NATURAL JOIN t000 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(D,FERREDa,b000,INT0,ba,b,�,I, ab�������������������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(c0  a,c a,b000,INT0,ba,b,�,I, a,b�,�����������������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c0000000000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a blobte_compileoption_get(1)UNIQUE,INT0000);
SELECT c000.* FROM t000 AS c00 NATURAL JOIN t000 LEFT NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(c0  a�ba,b,�,I, a blobte_compileoption_get(1)UNIQUE,INT0000);
SELECT c000.* FROM t000 AS c00 NATURAL JOIN t000 LEFT NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM�t1;
INSERT INTO t1 SELECT randomblob(900) Ft1;
INSERT INTO t1 SELECT randomblob(900) FR1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(72001-01-0100);REINDEX


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1)) "a","b"WHERE"b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1,( y S1, y  AS y1)p FROM x


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY( /* */e,d,b,b,c,d,e,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? AND e=?;


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT *, a,b,"b"AS m FROM t2 GROUP BY   a,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1,y=a002.m
WHERE t1.x IN a002,3)


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER INSERT ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID> randomblob(1) OR Te0tId/0&
Te0tId=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ���O��Ľ���������������������00');
INSERT INTO t0 VAL


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT avg(1) a, b "a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, zeroblob(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT random() a,oid"a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2,a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  "a", a,b


sqltext:
CREATE TABLE t0(a,b,c,d,e blob, PRIMARY KEY(E /* */,e));
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND b=? AND c=? AND d=? AND e OR?AND c=? AND d AND d=? AND e OR?AND d=? AND e OR?AND c=? AND e OR?AND c=? AND c=? d=?


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=������Ͻ���ڽ�Ľ���������ν���aB");
INSERT INTO t0 VALUES('oneatw������ν��(tokeni�ڽ�Ľ���������ν��������ν�OR���������00');
RT


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=������Ͻ���ڽ�Ľ���������ν���aB");
INSERT INTO t0 VALUES('oneatw������ν��������ν��������ν����������0(tokeni�ڽ�Ľ���������ν��������ν����������00');
RT


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b||a||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(C,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A-4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;�INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a /b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b| "a","b"||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(0, 0,.3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a -1|| round(A,4)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMI, "a","b";
SELECT $tota|(SELECT $tota|(1)p FROM y AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMI,  "a","b""a","b";
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x �NTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(�) DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x �NTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x) DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT REFERENCES t1 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x)UNIQUE DEFERRABLE REFERENCES t1(x) ON UPDATE SET DEFAULT DEFERRABLE REFERENCES t1(x)  REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
CREATE TABLE t102 (i0 intT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t2.i0= t0.i0 OR t1.i0= t2.i0 OR t2.i0=t1.oid);


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('02001-01-011 �b');
INSERT INTO t0 VALUES('001-01-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*0*01-01-01';
END;


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('02001201-011 �eeb');
INSERT INTO t0 VALUES('2001-0�-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0*0*01-01-01';
ENU;


sqltext:
CREATE TABLE t0000(Q blobGER
PIQUE,UFOINCRPRIMARY KUY U���������������NIQUE,UTOINCREEMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
SELECT('har(1)ACE I0000');
VALUES('NTO t0000(b) VALUES(000');
END;
CREATE TRIGGER t000000�AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('�00000');
VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES('11=1d_extension(1��)', 'foo');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1��)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0��;
IN INTO ft VAL@E����losion(1��)', ' @1');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft  ALUES(' load_extensdon(131)', '5000);
INSERT INTO ft CS('


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x a,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a)a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x a,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x a,ba,q);SELECT tottotal(q)p, *,ba AS q , *,baal(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x ,qa,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,a,ba,ba,ba,  a,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x ,qa,ba,q);SELECT total(q)p, *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q,ba,ba,ba,  q,a,ba,ba,ba,q,ba,a,ba,  a,a,ba,ba,q);
C


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,b,c,e,f),UNIQUE(a,b,c,e,b),UNIQUE(a,b,c,e,f)UNIQUE(a,b,c,e,f),�
,�


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(2&01-01E0112001-01-01), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 1;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts3(0, b);
INSERT INTO x0 VALUES(NOT'CURRc',-'d  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000000000600000, '02001-01-0T0%)�
INSERT 00.0000(docid,0x)0VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000-00000.00000, '02001-01-0T0%)�
INSERT 00.0000(docid,0x)0VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES( -1000000000.00000, '02001-01-0T0%)�
INSERT 00.0000(docid,0x)0VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000000000.00000, '0�01-01-0T0�������������������������������%)�
INSERT 00.0T 00.0000(docid,0x) VALUES(0, 0000(docid,0x) VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE TABLE t000(D,F,RREDa,b000,INT0,ba,b,�,I, ab�������������������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000;


sqltext:
SELECT sqlite_rename_parent( "REFERENCES>REFERENCES|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||esREFERENCES>�>>>>X",'000','000');


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);EXPLAIN
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) Ft1;
INSERT INTO t1 SELECT randomblob(900) Ft1;
INSERT INTO t1 SELECT randomblob(900) FR1;
INSERT INTO t1 SELECT sqlite_compileoption_get(1)   /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(72001-01-0100);REINDEX


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER INSERT ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 0;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID> randomblob(1) OR Te0tId/0&
Te0tId=2;
CE Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a 'a''b', b "a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a,b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=������Ͻ���ڽ�Ľ���������ν���aB");
INSERT INTO t0 VALUES('oneaeni�ڽ�Ľ���⽽ @1���ν��������tw������ν��(tokeni�ڪ�Ľ���⽽ @1���ν��������ν����������00');
RT


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' 1=1d_extension(1��)', 'foo');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES('1load_extension(13 @11)', 'foo');
INSERT INTO ft VALUES('xtension(1��)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(1))FROM i GROUP BY@1)
SELECT x FROM i LIMIT 003


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(1))FROM i GROUP BY 1)
SELECT x FROM i LIMIT 503


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(2001-01-011))FROM i GROUP BY 1)
SELECT x FROM i LIMIT 003


sqltext:
CREATE VIRTUAL TABLE x0 USING fts3(0, b);
INSERT INTO x0 VALUES($trim(1,1), 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts3(0, b);
INSERT INTO x0 VALUES( trim(1,1), 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;�INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts3(0, b);
INSERT INTO x0 VALUES( trim(1,1), char(1));
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE TABLE t000(c a,b0 UNIQUE,b000,INT0,ba,b,�,I, a,b�,���������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(c0 UNIQUE,b000,INT0,ba,b,�,I, a,b�,���������������0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT round(1<1)AS m FROM t2 GROUP BY   a,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002;3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT round(1,1)AS m FROM t2 GROUP BY   a,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z< a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002;3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT round(1,1)AS m FROM t2 GROUP BY   a,ba,ba;
EXPLAIN QUERY PLAN
SELECT /* */ a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002;3)


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);EXPLAIN
SELeCT a, b "a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a", @1"b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, @1a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, hex(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, unicode(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, printf(1,1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, replace(1,1,1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,'000' , 2,2, 2 , 2 , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, 2,  a, 2 , 2,  a,b,"b",a,a, b b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' 1=1d_extension(1��)', 'foo');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES('1load_extension(13 @11)', 'foo');
INSERT INTO ft VALUES('xtension(1��)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' �1*@1*1*1';f


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba)ba,ba,q)b�q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,ba,ba,q)b�q);
Ca,q)b�q);
n


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS q ,ba AS q , *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q)b�q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT tmtal(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,b, x , xa,ba,q);SELEa,q)b�q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT al(q)p, *,ba AS q , *,btotal(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba,q)b�q);
C


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper(  zeroblob(1))FROM i GROUP BY@1)
SELECT x FROM i LIMIT 005


sqltext:
CREATE TABLE t000(c a,b0 UNIQUE,b000,INT0,ba,b,�,I, a,b�,���������������0,INT0000);
SELECT c000,* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(cE,b000,INT0,ba,b,�,I, a,b�,���� load_extension(1,1));
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHER, "a","b""b";
SELECT $to|a|(SELECT $tota|(1)p FROM x AS y, y  CS1, y S�y1, y  AS1,  y S1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1,( y S1, y  AS y1)p FROM x


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE"b"ISNULL;
SELECT $to|a|(SELECT $tota|(1)p FROM x AS y, y  CS1, y S�y1, y  AS1,  y S1, y   A, y  CS1, y S�y1, y  AS1, y  AS y1)p FROM x AS y1, y  A, y  CS1, y S�y1, y  AS1, y S1,( y S1, y  AS y1)p FROM x


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT round(1,1)AS m FROM t2 GROUP BY   m,ba,ba;
EXPLAIN QUERY PLAN
SELECT /* */ a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002;3)


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,  sqlite_compileoption_used(1) b, strftime(1,1,1,1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, strftime( /* */1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, strftime(1,1, -1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b, strftime()a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT total(1),"b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b,2,  a,b,"b",a,a, b,"b",a,a,a,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT@a, b "5","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2/ 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "5","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , "a","b", 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT total(1)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba))b�q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,batotal(q)p, *,ba AS q , *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba)ba,q)��q);
C


sqltext:
CREATE TABLE x( a,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS '' USING  ( ba,ba,ba)q)b�q);
C


sqltext:
CREATE TABLE t000(cE,b000,INT0,ba,b�,I, a,b�,���� load_extension(1,1));
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t000(cE,b000, 'a''b'INT0,ba,b,�,I, a,b�,���� load_extension(1,1));
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c000 NATURAL JOIN t000 AS c000;;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b"COLLATE b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000'COLLATE' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b, sum(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);EXPLAIN
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(2001-01-011) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1 -1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1)COLLATE b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,$b "a","b"FROM t1
UNION
SELECT avg(1) b, sum(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b, sum(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  ab,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b, sum(1)a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1)COLLATE b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b<"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b", '000' ,a, '000' ,  avg(1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b<"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg( round(1,1)) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT strftime(1,1,1,1),a,a,a, b,"b",a,avg(1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b<"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"F,"b",a,a,a, b,"b",a,avg(1 -1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b<"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"F,"b",a,a,a, b,"b",a,avg(1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b<"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,oid,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(2001-01-011) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000', 2b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(2001-01-011) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,"b",a,a, glob(1,1),a, '000' , '000' , '000' , '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(2001-01-011) b,a -1, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(2001-01-011) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,"b",a,a,a, b,"b",a,a, '000' , '000' , '000',  a, 2 , 2,"b",a , '000' , 2,  a,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT strftime(1,1,1,1),a,a,a, b,"b",a,avg(1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b<"b", 2 , 2,  a, 2 , 2,  a,b<"b",a,a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(990));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT @1FROM t0;
INSERT INTO t0 SELECT@sqlsource_id()LIKE x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(4);
ROLLBACK;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b load_extension(1,1),y);
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO t0(x,y) VALUES(new.rowid,1);
INSERT INTO t0(x,y) SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM [a]WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(1);
INSERT INTO t0 VALUES(3);
INSERT INTO t0 VALUES(2);
INSERT INTO t0 VALUES(3);
INSERT INTO t0(rowid,x) SELECT nullif(x || 0,14), x+100 FROM t0;
SELECk rowid, x FROM t0;


sqltext:
CREATE TABLE epis0de ( i0000000e integer primary key, i00000 int0000,c00 text,c01 text,c02 text,c03 text,c04 text,c05 text,c06 text,c07 text,c08 text,c09 text,c10 text,c11 text,c12 v00char(00),c13 v00char(00),c14 text,c15 text,c16 text,c17 v00char(00),c18 text,c19 text,c20 text,c21 text,c22 text,c23 text, i00h00 int0000);
INSERT INTO "epis0de" VALUES(1,0,'000','000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000','','00000000','','0000000000','00000000000000000000000000000000000','',NULL,'0000','0000000000000','','0','0','','00','00','00','0000000000000000000000000000000000000000000000000000000000000000000000000000000000','0','000000',NULL,NULL,NULL,0);
CREATE TABLE tvsh000inkpath (i000 int0000, i00000 int0000);
INSERT INTO "tvsh000inkpath" VALUES(0,0);
CREATE TABLE seas0ns (d000000 integer primary key, i00000 int0000, s00000 int0000);
INSERT INTO"seas0ns"VALUES(1,0,-0);
INSERT INTO"seas0ns"VALUES(2,0,0);
INSERT INTO"seas0ns"VALUES(3,0,0);
INSERT INTO"seas0ns"VALUES(4,0,0);
INSERT INTO"seas0ns"VALUES(5,0,0);
INSERT INTO"seas0ns"VALUES(6,0,0);
INSERT INTO"seas0ns"VALUES(7,0,0);
INSERT INTO"seas0ns"VALUES(8,0,0);
INSERT INTO"seas0ns"VALUES(9,0,0);
CREATE TABLE art(a00000 INTEGER�PRIMARY KEY, m0000000 INT0000, m000000000 TEXT, t000 TEXT, u00 TEXT);
INSERT INTO"art" VALUES(1,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(2,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(3,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(4,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(5,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(6,0,'00000','00000','0000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(7,0,'0','00000','00000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(8,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(9,0,'00000','00000','0000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(10,00,'00000','00000','00000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(11,0,'000000','00','00000000000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(12,0,'000000','000000','000000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(13,0,'0000','000000','00000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(14,0,'0000','000000','00000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(15,0,'0','000000','00000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(16,2,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(17,3,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(18,3,'000000','000000','0000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(19,4,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(20,4,'000000','000000','0000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(21,5,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(22,5,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(23,6,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(24,6,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(25,7,'000000','000000','00000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(26,7,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(27,8,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(28,9,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(29,0,'0000000','00000','0000000000000000000000000000000000000000000000000000');
CREATE INDEX b0000000 ON b0000000 (i0000e, t000);


sqltext:
CREATE TABLE epis0de ( i0000000e integer primary key, i00000 int0000,c00 text,c01 text,c02 text,c03 text,c04 text,c05 text,c06 text,c07 text,c08 text,c09 text,c10 text,c11 text,c12 v00char(00),c13 v00char(00),c14 text,c15 text,c16 text,c17 v00char(00),c18 text,c19 text,c20 text,c21 text,c22 text,c23 text, i00h00 int0000);
INSERT INTO "epis0de" VALUES(1,?,'000','000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000','','00000000','','0000000000','00000000000000000000000000000000000','',NULL,'0000','0000000000000','','0','0','','00','00','00','0000000000000000000000000000000000000000000000000000000000000000000000000000000000','0','000000',NULL,NULL,NULL,0);
CREATE TABLE tvsh000inkpath (i000 int0000, i00000 int0000);
INSERT INTO "tvsh000inkpath" VALUES(0,0);
CREATE TABLE seas0ns (d000000 integer primary key, i00000 int0000, s00000 int0000);
INSERT INTO"seas0ns"VALUES(1,0,-0);
INSERT INTO"seas0ns"VALUES(2,0,0);
INSERT INTO"seas0ns"VALUES(3,0,0);
INSERT INTO"seas0ns"VALUES(4,0,0);
INSERT INTO"seas0ns"VALUES(5,0,0);
INSERT INTO"seas0ns"VALUES(6,0,0);
INSERT INTO"seas0ns"VALUES(7,0,0);
INSERT INTO"seas0ns"VALUES(8,0,0);
INSERT INTO"seas0ns"VALUES(9,0,0);
CREATE TABLE art(a00000 INTEGER PRIMARY KEY, m0000000 INT0000, m000000000 TEXT, t000 TEXT, u00 TEXT);
INSERT INTO"art" VALUES(1,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(2,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(3,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(4,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(5,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(6,0,'00000','00000','0000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(7,0,'0','00000','00000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(8,0,'000','00000','0000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(9,0,'00000','00000','0000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(10,00,'00000','00000','00000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(11,0,'000000','00','00000000000000000000000000000000000000000000000000');
INSERT INTO"art" VALUES(12,0,'000000','000000','000000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(13,0,'0000','000000','00000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(14,0,'0000','000000','00000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(15,0,'0','000000','00000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(16,2,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(17,3,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(18,3,'000000','000000','0000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(19,4,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(20,4,'000000','000000','0000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(21,5,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(22,5,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(23,6,'000000','000000','0000000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(24,6,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(25,7,'000000','000000','00000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(26,7,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(27,8,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(28,9,'000000','000000','000000000000000000000000000000000000000000000000');
INSERT INTO "art" VALUES(29,0,'0000000','00000','0000000000000000000000000000000000000000000000000000');
CREATE INDEX b0000000 ON b0000000 (i0000e, t000);


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES('a');
SELECT a< CAST(a AS blob int000)< CAST(a AS bloX int000) FROM t0;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TaBLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1,X'');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c, -14) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,0, -1 || 4) FROM t1;
INNSE


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count(),
 group_concat(?,1)A00
FROM t03
GROUP BY zeroblob(1);


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'���' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,2001-01-013,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
REINDEX;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(prefix=2001-012001-01-01-012001-01-1-01 time(1,1,1) m01 tim01 time(1,1,1) m01 time(1,1,1) min(1,1)M01"");


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(1);
INSERT INTO t0 VALUES(2);
INSERT INTO t0 VALUES(3);
INSERT INTO t0(rowid,x) SELECT nullif(x*2/10,.4), avg(1)FROM t0;
SELECT rowid, x FROM t0;


sqltext:
CREATE TABLE t10(x INTEGER PRIMARY KEY, y �NT, z CHAR(100));
CREATE INDEX t000 ON t10(y);
EXPLAIN QUERY PLAN
SELECT a.x, b.x
FROM t10 AS a JOIN t10 AS b ON b.y=b.x
WHERE (b.x=$ab0 OR b.y=$ab0);


sqltext:
PRAGMa auto_vacuum= incremental;
PRAGMA  auto_vacuum= incremal;
PRAGMA  auto_vacuum= incremeBncremal;
PRAGMA  auto_vacuum= inLE t1(


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%r0%n',a,b,c) FROM t1 ORDER BY 00001;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%n0% ',a,b,c) FROM t1 ORDER BY 00001;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf( trim(1,1),b,c) FROM t1 ORDER BY 00001;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,b,c,d,e));
SELECT * FROM t0 WHERE  -0 AND b=? AND c AND b=? AND c=? AND d=? AND e=? AND d=? AND e=B;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX �1a ON t1(b);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CR UNIQUE INDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


sqltext:
CREATE TABLE t4(a TGXT);
INSERT INTO t4 VALUES('�');
INSERT INTO t4 VALUES('02t');
INSERT INTO t4 VALUES('04');
SELECT min(a), max(a -1) FROM t4;


sqltext:
SELECT  1000000%0000000101000000%0080000006006000010001000000%008000E0060060000000%0080000600000000%00800.060000;


sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(a PRIMARY KEY, b);
CREATE TABLE t2(c REFERENCES t1 DEFERRABLE INITIALLY DEFERRED, d);REPLACE INTO t1 VALUES(1,2);REPLACE INTO t1 VALUES(1,3);


sqltext:
CREATE TABLE "0000" ("000000" V0 "a","b" PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n0"WHERE (SELECT "000000", "n00b00" FROM "0000" ORDER BY  "a","b",  "a","b" LIMIT 1) OR "";


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( round(1,1)-"a",0e0 /* */)
FROM t1
GROUP BY 002;


sqltext:
CREATE TABLE t0t0000(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');REPLACE INTO t0t0000 VALUES('AB000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000OF0000000000000000000000000000000');
SELECT DISTINCT+a FROM t0t0000;


sqltext:
;
UPDATE t0 SET �='�b0', b=A, b=AR=dK9Y(b, a)) WIK9Y(b, a)) 'ab0/, bU'!00';
HOUT RO a)) 'ab0/, bU'!00';
HOUT ROWID bATE t0 SET �6'ab0', b=AR)?D0'=AR) 00');P>ATE�='ab0/, b;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, nullif(?,1) b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t15(a INTEGER PRIMARY KEY, b);
INSERT INTO t15(a,b)VALUES(10,'0'),(20,'000'),(30,'000');
ALTER TABLE t15 ADD COLUMN c;
CREATE INDEX t000 ON t15(c);
INSERT INTO t15(a,b)
VALUES(5,'000'),(15,'000'),(25,'000'),(35,'000');
UPDATE t15 SET a=printf("0% ",a) WHERE c IS NULL;
SEa;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, upper(1)b FROM t1;
INSERT INTO t1 SELECT a+64, trim(1,1)b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32, RTRIM(1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE NOT NOT(Q)=x2.a;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE y1.q=y2.q;
SELECT * from z;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size =310;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(52001-01-9100), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f000000000 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN 1=1+( 0 AND :0)
THEN raise(rollback, '00') END;
END;
INSERT INTO foo(bar) VALUES (0)


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f000000000 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN 1=1+( 0 AND  ?120)
THEN raise(rollback, '00') END;
END;
INSERT INTO foo(bar) VALUES (0)


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a,b);
CREATE TABLE t0(x,y);
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.a = 0 BEGIN
INSERT INTO  'a''b' VALUES(new.rowid,1);
INSERT INTO ANALYZE SELECT * FROM t0;
INSERT INTO t0 SELECT * FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;SELECT
END;
INSERT INTO t1(a,b) VALUES(0,0);SELECT
CO;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('\0��');VACUUM


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,f,c,d,e,b),UNIQUE(a,b,c,d,e,f));
I(5,10000);
INSERT INTO t5 VALUES(2,3,4,5,6,20000);REINDEX


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(a,a,d,e,c,d,b,e,c,d,b,c,d,e,c,d,e,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=NOT? AND d=? AND e=?;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='0,2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0000'MATCH'sai000 A s0o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet w e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='0�2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('0'MATCH'sai000 A s0o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet w e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS [a]OR+NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT *a


sqltext:
SELECT  1000000%00000300000101000000%00800000060060001000000%0080000006000101000000101000000%008000001000000%00800000060060001000000%0600�0000000008000060000;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE@a WHEN A THEN randomblob(92001E01-01)WHEN A THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000�INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT-char(1)tSt FROM TempT000e LIMIT 9;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000,INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT-char(1)tSt FROM TempT000e LIMIT�9;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob($00)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(500)FROM t1;
INSERT INTO t1 SELECT x | random()-01-01,randomblob(40 -10)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(406)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(500)FROM t1;
INSERT INTO t1 SELECT x | random()-01-01,randomblob(40 -10)FROM t1;
INSERT INTO t1 SELECT x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(1,randomblob(400));
INSERT INTO t1 VALUES(2,randomblob(400));
INSERT INTO t1 SELECT x+2,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+4,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+8,randomblob(400)FROM t1;
INSERT INTO t1 SELECT x+16,randomblob(500)FROM t1;
INSERT INTO t1 SELECT x | random()-01-01,randomblob(40 -10)FROM t1;
INSERT INTO t1 SELECT@x+64, randomblob(400) FROM t1 WHERE x<10;
CREATE TRIGGER r0 AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length(y) FROM t1 ORDER BY x;


sqltext:
CREATE TABLE t41(a,b,c);
INSERT INTO t41 VALUES(1,2,3), ( ?14,5,6);
CREATE TABLE t42(d,e,f);
INSERT INTO t42 VALUES(3,6,9),( ?14,8,10);
SELECT * FROM t41 AS x LEFT JOIN t42 AS y ON (y.d=x.c) OR (y.e=x.b);


sqltext:
CREATE TABLE t14(a,b,c);
INSERT INTO t14 VALUES( lower(1),5,6) INTERSECT VALUES( lower(8+88881),3,1),( total(1),1,3);


sqltext:
CREATE TABLE t1(a, b, c);
CREATE TABLE t0(x PRIMARY KEY, y, z);
CREATE TRIGGER r0 AFTER INSERT ON t1 BEGIN
SELECT * FROM t0 WHERE 0 BETWEEN 00 AND 00;
END;
WITH d(x)AS(SELECT 1 UNION ALL SELECT ~ randomblob(1)+1 AS n FROM d WHERE n<=100)
INSERT INTO t0 SELECT randomblob(1) x,x*0, x*3 FROM d;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(com rels�z0p, uncompress=mpre0p, uncompress=ucom rels�z0p, uncompress=m0000u0000);


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n0"WHERE (SELECT "00000E"< "n00b00" FROM "0000" ORDER BY   "a","b""a","b",  "a","b" LIMIT 1) IS "";


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rRE��NCES jumNCES jumping');
ping'


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,c,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=E AND d=? AND e= strftime(0e+21,1)?;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x sqlite_compileoption_get(1));
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower( zeroblob(1))|NOT new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c d');
SELECT snippet(ft0, '0'< '0', $�, -1, 1) FROM ft0 WHERE ft0 MATCH 'c';


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 NATURAL
JOIN t102 AS 
LEFT JOIN t102  t1 ON t2.i0 IN t102 
JOIN t102 AS t2 ON(t2.i0=+t0.i0 AND(t0.i0<>500 AND t2.i0=t1.i0));


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenze en�, tokenze p, tokenzorter);
INSERTrowid FROM t1 WH;ES(1, '�unning and jumping'�;
STCHp';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(co|tent, tokenze ent, tokenze porteco|tent, tokenze ent, tokenze r);
INSERTrowi� FROM t1 WH;ES(1, '�unning and jumping'�;
STCHp';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, ' sqlite_co group_concat(1,1)mpileoption_ge sqlite_compileoption_get(1)llllllllllllllllllumping');
SELECT rowid FROM


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(2001-01-0100000000, '02001-01-010');
INSERT INTO t0(docid, x) VALUES(0, '0"');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE TABLE t4(a,b,c,d,e `a`,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,i,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT DISTINCT* FROM t4 WHERE b=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
SELECT-'0000' UNION SELECT avg(1) ORDER BY 1 ASC,1 ASC, 1 COLLATE  A��SC, 1 ASC, 1 COLLATE  ASC,1 ASC,1 COLL


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(�,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" 1=1 glob "a"(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" 1=1 glob "a"(1,1*"';


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,b&a,$b, '000' a,b FROM t1
UNION
SELECT *,a, a,b '000' FROM t1
ORDER BY 3, 3,a, '000', b, '000' FROM;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(102001-01-01000000, '02001-01-010');
INSERT INTO t0(docid, x) VALUES(0, '02 ;001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'tokenchars= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'tokenchars=����RENAME'1 'tokenchars=����RENAM'1 'tokenchars=��E');
CREG ft:�


sqltext:
SELECT NULL,"a","a","b" UNION SELECT"b" U UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY NULL,"a","a","b","a";


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(2001-01-010000.000, '02 ;001-01-010');
INSERT INTO t0(docid, x) VALUES(0, '02001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,a,b,b,d,e));
SELECT * FROM t0 WHERE a=? AND b= julianday(1,1,1) AND b<? AND c=? AND e<? AND e >=?;


sqltext:
SELECT-'0000' UNION SELECT avg(1) ORDER BY 1,1 ASC, 1 COLLATE  ASC,1 ASC, ASC, 1 UNION SELECT avg(1) ORDER BY  ASC,1,ASC, ASC,1 ASC, 1 COLL


sqltext:
CREATE TEMP TABLE t0000(a�ͫ�00ӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????���ͫ�000';


sqltext:
CREATE TEMP TABLE t0001(a�ͫ�00ӝ sqlite_compileoption_get(1),c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[�ݫ�000';


sqltext:
CREATE TEMP TABLE t0001(a�ͫ�00ӝ sqlite_compileoption_get(1),c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[�-��000';


sqltext:
CREATE TEMP TABLE t0001(a�ͫ�00ӝ sqlite_compileoption_get(1),c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[�ͫ�00-';


sqltext:
CREATE TEMP TABLE t0001(a�ͫ�00ӝ sqlite_compileoption_get(1),c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[ -1�000';


sqltext:
CREATE TEMP TABLE t0001(a�ͫ�00ӝ sqlite_compileoption_get(1),c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[ [a]000';


sqltext:
CREATE TABLE "0000" ("000000" V0 "a","b" PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n0"WHERE+(SELECT "000000", "n00b00" FROM "0000" ORDER BY   "a","b"ASC,"b", "aseparators=",   "a","b" LIMIT 1)�IS 


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(10000000.000000000, '01');
INSERT INTO t0(docid, x) VALUES(?, '2001-01-010b');
SELECT rowid FROM t0 WHERE x MATCH '2001*�1-010*2001-01-01' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000-000.000000000, '01');
INSERT INTO t0(docid, x) VALUES(?, '2001-01-010b');
SELECT rowid FROM t0 WHERE x MATCH '2001-01-010*2001-01-01' ORDER BY docid DESC;


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(851120012001501-01-01-01,randomblob(2500));
INSERT INTO t1 VALUES(?,randomblob(52001-01-010));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT [a]L,randomblob(2001-01-0150)FROM t1;�IN


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB��� t0�ٹ˹�������������������ٹ˹����������a��������ٹ˹����������aB��� t0�ٹ˹������������������ "a"���kenize=un�");
RT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB��� t0�ٹ˹������������������ٹ˹����������aB������������������ t0�ٹ˹������������������ "a"���kenize=un�");
RT 


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('00 bb2001-01-01');
INSERT INTO t0 VALUES('c'ISNULL);
INSERT INTO t0 VALUES(' ; 00');
SELECT sqlite_version() docid FROM t0 WHERE t0 MATCH  '^0*0*';
END;


sqltext:
CREATE TABLE t102 (t102  t
JOi0 BEXT UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURQL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  tANDE JOIN t102 FT JOIN t102 ONNDE JOIN t102 FTLEFT JOIN t102  t
JOIN t102 A0));


sqltext:
CREATE TABLE t102 (i0 BEXT UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURQL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  EANDE JOIN t102  JOIN t102 FT JOIN t102 ONNDE JOIN t102 FTLEFT JOIN t102  t
JOIN t102 A0));


sqltext:
CREATE TABLE t0(a, b);
SeLECT DISTINCT "a","b""""a","ba","b",oid,"b""a","ba","b", *, julianday(1,1,1)FROM (SELECT "ba","b""FFFFFFFFFFFFFFFFFFFFFFFFFFa","ba","b",cou"b""a","ba","b", *, julnt(*)a FROM t0) WHERE a==0;


sqltext:
CREATE TABLE x(a,b char(1));
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x AS x2 WHERE glob(1,q);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  A, y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) FROM x AS x1, x AS x2 WHERE x1.a;
SELECT  total(A),"a" a,b FROM y AS y1, y  AS1, x  AS y1, y AS y1, y  AS y1, y AS y1, y A1;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 1=1 c a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,12) FROM ft0 WHERE ft0 MATCH   ' -1pileoption_used(1)f 0  OR)�''b''a''b''c';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT 'a''b' ;
SeLECT  total(A)"a",total(A)"a", a,b FROM y A, y  ASy1, y  AS1, x  A, y AAS y;


sqltext:
CREATE TABLE t3(a �NTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND b=3 ORDER BY b, c, d,e DESC,  "a","b"b,"b"


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%f0%c', -1,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%302c',?/b,c) FROM t1 ORDER BY rowid;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%005c',?/b,c) FROM t1 ORDER BY rowid;


sqltext:
SELECT sqlite_rename_trigger(' [a] [a�>>>)>R ] [a�>>>)>R [a]T/>>>>>) r0 O[{]T/>>>>>) r0 ON x00 WHEN',NULL);


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper( -11) i ORDER BY 1)
SELECT x FROM i LIMIT 10;WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper( -11) i ORDER BY 1)
SELECT x FROM i


sqltext:
CREATE TABLE t00a(a,b);
INSERT INTO t00a VALUES(0,0);
CREATE TABLE t00b(n);
CREATE TRIGGER r00 AFTER INSERT ON t00b BEGIN
SELECT 0 FROM t0,a, "a","b"n0000 UNION ALL
SELECT 0 FROM t00a WHERE 0>new>x ORDER BY 0 LIMIT 0;
END;
INSERT INTO t00b VALUES(6);


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,c,d,e,f));
INSERT INTO t5 VALUES(1,1,1,?,1,10000);
INSERT INTO t5 VALUES(2,2,?,2,2,20000);
INSERT INTO t5 VALUES(1,2,?,4,5,1f))


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX �0000 ON t0e01(a,a);REPLACE INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGNTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);2;


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);REPLACE INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGNTEGER PRIMARY KEY, b) WITHOUT rowid;ANALYZE UNIQUE IN2;


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;EXPLAIN
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);REPLACE INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGNTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);2;


sqltext:
SELECT strftime(1,1,1,1) NOT IN (10 IN (10 IN (10 IN (10,:0),10),1) NOT IN (10 IN (10 IN (10 IN (10,10),10),10),10-9010),10-90000);


sqltext:
SELECT group_concat(1,1) NOT IN (10 IN (10 IN (10 IN (10,10),10),1) NOT IN (10 IN (10 IN (10 IN (10,10),10),10),10-9010),10-90000);


sqltext:
SELECT strftime( 1=11,1) NOT IN (10 IN (10 IN (10 IN (10,10),10),1) NOT IN (10 IN (10 IN (10 IN (10,10),10),10),10-9010),10-90000);


sqltext:
SELECT strftime(1,1,1,1) NOT IN (10 IN (10 IN (10 IN (10,10),10),1) NOT IN (10 IN (10 IN (MATCH (10,10),10),10),10-9010),10-90000);


sqltext:
SELECT strftime(1,1,1,1) NOT IN (70 IN (10 IN (10 IN (10,10),10),1) NOT IN (10 IN (10 IN (10 IN (10,10),10),10),10-10 IN (10 IN (10,10),10),9010),10-90000);


sqltext:
PRAGMA mmap_size ="";
PRAGMA page_size = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM i ORDER BY 1)
SELECT time(1 ,11) x FROM i LIMIT 183


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM i ORDER BY 1)
SELECT time(1.,11) x FROM i LIMIT 18;


sqltext:
CREATE TABLE t3(a,I,TEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT * FROM t3 WHERE b=2 AND c=3 GROUP BY d COLLATE DESC, eCOLLATE C;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(10000000000000.000, '002001-01ESC);
INSER-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid,(x) , x) V;


sqltext:
CREATE TABLE t0000(a INARY KEY ,UTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('00$000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t0000(a �NTEGER�PRIMARY KEY ,UTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) VALUES('-0E');
INSERT INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 SELECT ('0'IN t102 IN t102 IN t102 )R
SEN t102 )R
SELECT *3FROS t0
LEFT JOIN t102  N tES ('0'I


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE  NULL);
INSERT INTO t102 SELECT ('0'IN t102 IN t102 )R
SELEC7 * FROS t0
LEFT JOIN t102  N tES ('0'I


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(b,b,b,b,b,b,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','000010 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run jum replace( "a","b"1,",1)p';


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n00b00" FROM (SELECT "-0000 "< "n00b00" FROM "0000" ORDER BY "000000", "n00b00" LIMIT 2) AS "0000";


sqltext:
SELECT *
FROM (t0), (t0), (t0, (t0����t0, ( t05, (t0, (SELECT a,b a,bt0), �tE), (t0)a,bt0), �tE), (t0)
WH), (t0)
WtE), (t0)
WH),


sqltext:
CREATE TABLE t102 (ASCi0 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AS LEFT JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'NATURAL
JOIN(t102 AS t2
LEFT JOIN t102 ON t1.i0 GLOB A0));


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBt0ꪪ����0ꪪ���������� ftsUau���������t������� ftsUau���������t���������ne0002A0');
CREATE V


sqltext:
CREATE TABLE "0000" ("000000" V0 "a","b" PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n0"WHERE (SELECT "000000"< "n00b00" FROM "0000" GROUP BY  (1),"b",  "a","b"HAVING 1) OR "";


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n0"WHERE (SELECT "000000", "n00b00" FROM "0000" GROUP BY  (1),  "a","b""a","b""b",  "a","b"HAVING 1) OR "";


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 NATURAL 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t102 
JOIN t102 AS t2 ON(t2.i0= t0.i0 AND(t0.i0<>500 AND t2.i0=t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 NATURAL 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t102 -1 
JOIN t102 AS t2 ON(t2.i0= t0.i0 OR (t0.i0<>500 AND t2.i0=t1.i0));


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, (SEster a,b�0), �tT),t0)d, ( ( t05, (t0, (SELECT a,bt0bt0),(SELECT a,bt0), �tT)t0)a,bt0)E), (t0)
WH),


sqltext:
CREATE TABLE t0(a,b,c i,d,e, PRIMARY KEY(c,b,b,e,a,b,b,c,b,b,c,d,e,e));
SELECT * FROM t0 WHeRE a=? AND b=? AND c=? AND c<? AND e=?;


sqltext:
CREATE TABLE t0(a,b,c i,d,e, PRIMARY KEY(a,b,b,e,B,b,b,c,b,b,c,d,e,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND c<? AND e=?;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) FROM x AS  AS1, x  AS y1, x x1, x AS x2 WHERE x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, x  AS y1, x AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DRR3(cEd BLEd jumpiEFERR3(cEd jumpiED(1,�ABLEd jumpiES(1, ng');
SEum


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT   * FROM i ORDER BY 1)
SELECT zeroblob( ltrim(1,1)) x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT   * FROM i ORDER BY 1)
SELECT zeroblob( ltrim(1,1)) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT   * FROM i ORDER BY 1)
SELECT zeroblob( ltrim(1,1)) x FROM i LIMIT 200


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 UNIQUE, Q00 int not null, N000000 text(50)UNIQUE not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, i0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(3G0) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) ~ull, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper( -144444444444444.44444E44444*441) i GROUP BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper( -144444444444444.4444444E444*441) i GROUP BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c,$b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(1,B)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT DISTINCT-1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c,$b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(1,1)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT DISTINCT randomblob(1)-1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '�', '?', '', -1, 8) FROM ft0 WHERE ft0 MATCH   'compileleoption�used(1)f 0  (1)a''b''a 0  (1)a''b''a''b''b''on_used(1)f 0  (1)a''b''a 0  (1)a''b''a''b''b''option_used(1)f 0  (1)a''b''a 0  (1)a''b''a''B''b''ption_used(''b''a 0  (1)a''b''a''B''''b''a''b''b''c';


sqltext:
CREATE TABLE t1( [a]a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%2.0s',a,b,c) FROM t1 GROUP BY 00001;


sqltext:
CREATE TABLE t1( [a]a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%2G0s',a,b,c) FROM t1 GROUP BY 00001;


sqltext:
CREATE TABLE t1( [a]a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%20Es',a,b,c) FROM t1 GROUP BY 00001;


sqltext:
CREATE TABLE t1( [a]a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%200g',a,b,c) FROM t1 GROUP BY 00001;


sqltext:
CREATE TABLE t1( [a]a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0% -1200s',a,b,c) FROM t1 GROUP BY 00001;


sqltext:
CREATE TABLE t1( [a]a,b,c);
INSERT INTO t1 VALUES(1,2,3);
INSERT INTO t1 VALUES(-1,-2,-3);
INSERT INTO t1 VALUES('000','000','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%200s',oid,c) FROM t1 GROUP BY 00001;


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M T', 'U V I Q P', 'X Y 0 i');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', 'X J 9 K R', '0 O T H V');
INSERT INTO x1(docid,a,b,c) VALUES(8, 'Y 0 0 0', '0 U E S J', 'N W L M R');
INSERT INTO x1(docid,a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0�', 'V 0 E Q A');
INSERT INTO x1(docidga,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 C', 'A H T Q n');
INSERT rrrrrrrrrrrrrrrrrrrrrrrrrrrrrr '0 E Q 0', '0 I 0 C B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F�);
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0  N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', 'V J P E C');
INSERT INTO x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q', 'L� Y 0', 'G 0 M R N');
INmERT INTO x1(docid,a,b,c) VALUES(19, 'T 0 0 P 0', '0 V Y B X', gL Z 0 N 0');


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,c,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 K A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUES(5, 'L U', '0 F N X S', '0 Q A N Y');
INSERT INTO x1(docid,a,b,c) VALUES(6, 'M R G T', 'U V I Q P', 'X Y 0 L S');
INSERT INTO x1(docid,a,b,c) VALUES(7, '0 Y 0 I', 'X J P K R', '0 O T H V');
INSERT INTO x1(docid,a,b,c) VALUES(8, 'Y 0 0 0', '0 U E S J', 'N W L M R');
INSERT INTO x1(docid,a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0�', 'V 0 E Q A');
INSERT INTO x1(docid,a,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 C', 'A H T Q n');
INSERT INTO x1(docid,a,b,c)VALUES(11, '0 E Q 0', '0 I 0 C B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12, 'E S V U', 'T P F W �', 'A M 0 J Q');
INSERT INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
INSERT INTO x1(docid,a,b,c) VALUES(14, 'K 0 A B L', 'S R 0 C Z', '0 W E H J');
INSERT INTO x1(docid,a,b,c) VALUES(15, 'C E U C C', 'W F M N M', 'T Z U X T');
INSERT INTO x1(docid,a,b,c) VALUES(16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N', id,a,b,c) ES(1


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT- 'a''9e9� @1';
ALTER TABLE t1 ADD '00000';
UPDATE t1 SET x=c+1;
SELECT*MRt1;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-01-01bb cc');
INSERT INTO t0 SELECT sqlite_source_id()ocid FROM t0 WHERE t0 MATCH '0*';
END;VACUUM


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00', 'b"b 000');
SELECT * FROM x where y MATCH 'b`b, a.b/B 000';


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(a,a,b,c,c,b,c,c,a,c,b,c,d,e,e));
SELECT * FROM t0 WHERE e=? AND b=? AND c=? AND c<? AND a=?;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1<1,  zeroblob(1)) x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1<1,  zeroblob(1)) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1<1,  zeroblob(1)) x FROM i LIMIT 200


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b,  "a","b" c, b, a,b b


sqltext:
CREATE TABLE t3(a INTEG�R PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, c, b, c, b, a,b, b, c, b, c, b, a,b bb b


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter [m] [a]SEnize porter [m] [a]);
IRT INTeeeeeeeeeeeeeeeeeeeeeeeeeeO t1(�owid, content) VALUES(1, 'runnine and jumping');
SE[ECT rowid FROM t1 WHE�E content MATCH run �mp';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,A,UES��00S��@00,0,bbb REGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR/6 A::::G6 A::::G';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,-);
INSERT INTO x VALUES('0���bb c00', 'bbb 00BLE x USING Ots4(y,0);
INSER0');
SELECT * FROM x where y MATCH /* */""OR""A"""�� 


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00',  'b`b* b,b/B 000''b"b 0a0');
SELECT * FROM x where y MATCH 'b`b,NEAR/ 000';


sqltext:
CREATE TABLE t102 (i0 wEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t0.i0 IN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR tT.i0= t1.i0 OR t2.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 wEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AS 
LEF102 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 IN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR tT.i0= t1.i0 OR t0.i0=t1.oid);


sqltext:
CREATE TABLE t5(a, b);
SeLECT DISTINCT "a""ba","b",count(*)WHERE(SELECT  (SELECT "ba","b""""a","ba")WHERE(SELECT"b""a","ba","b",count(*) a, "a","b"t0) )NOTNULL;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 LEF10 
JOIN t102 AS 
LEF102 
JOIN t102 AStT 
JOIN t102 L JOIN t102   tT JOIN t102  t1 ON t1.i0 LIKE 'a0'
LEFT JOIN t102 
JOIN t102 AS t2 ON(t1.i0= t2.i0 OR t2.i0=t0.oid);


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE p=q+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR
x2.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p,-x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y A, y y1,y y1, y A, y  AS  y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE q=q+time(1,1,1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y1, y, y y1, y A, y y1,y y1, y A, y A, y y1,y y1, y A, y  AS  y AS y AS y 


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.a AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x2.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.a AS q FROM x AS x1, x AS x2 WHERE q=1+time(1,1,1)OR
x1.a=x1.a;
SELECT  total(1)p FROM y AS y1, y  AS1, y y11, x AS x2 W 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y AS y1, y AS A, x  AS yy yEATE VIEW 1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q FROM x AS x1, x , x Ax1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y AS y1, y AS A, x  A y1;


sqltext:
PRAGMA foreign_keys= ON;
CREATE TABLE p(i PRIMAXY KEY);
CREATE TABLE c(VI Wj REFERENCES p ON UPDATE CASCADE);
INSERT INTO p VALUES('00e00o');
UPDATE p SET i= '000';
SELECT * FROM c;


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES('a');
SELECT a| CAST(? AS clob000)< CAST(a AS clob000) FROM t0;
 FROM 


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE char (12001,01-1111111111111111111111111101,A) OR changes()


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF a,b,ba,ba ON t10 BEGIN
UPDATE t00 SET u0= u0000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');;
CREATE TRIGGER t00000 BEFORE UPDATE OF   a,ba,ba ON t10 BEGIN
UPDER


sqltext:
PRAGMA legacy_file_format (1);
CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT);
INSERT INTO t1 VALUES(8,1);
INSERT INTO t1 VALUES(1,1);
INSERT INTO t1 VALUES(2,1);
CREATE INDEX i0 ON t1(b);
SELECT * FROM t1 WHERE b> 'a'


sqltext:
PRAGMA legacy_file_format (1);
CREATE TABLE t1(a INTEGER PRIMARY KEY, b INT);
INSERT INTO t1 VALUES(2,1);
INSERT INTO t1 VALUES(1,1);
INSERT INTO t1 VALUES(2,1);
CREATE INDEX i0 ON t1(b);
SELECT * FROM t1 WHERE b> 'a'


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT-' -19e99/;
ALTER �ABLE t1 ADD COLUMN d TEXT oding=UTF16;00';
UPDATE t1 SET x=c+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t1(x, y DEFAULT( time( 1=11,1, time(1,1,1),1,1)));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;VACUUM


sqltext:
PRAGMA king=6;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUM5 b INT0000 DEFAULT '900' ;ALTER TABLE t1 ADD COLUMN c REAL DEFAULT-'9e99';
ALTER TABLE t1 ADD �OLUMN AL DEFAd TEXT DEFAUL------------- t1 SET x=x;1;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(��������������������������������������������������������������������������������������������������a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' s�lite_compileoption_used(1) -1');
INSERT INTO t0t0006 VALUES('ABX');REINDEX DISTINCT sq;


sqltext:
SELECT NULL "autob" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNIO. SE


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' [�] FROM t1
UNION
SELECT b,a, 1=1 COLLATE'000' FROM t1
ORDER BY 3,3,a, '000', 3,a, '000'� 


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' [a] FROM t1
UNION
SELECT b,a, 1=1 COLLATE'000' FROM t1
ORDER BY 3,3a, '000', 3,a, '000'� 


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' [a] FROM t1
UNION
SELECT b,a,NOT 1=1 COLLATE'000' FROM t1
ORDER BY 3,3,a, '000', 3,a, '000'� 


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b, '000' [a] FROM t1
UNION
SELECT b,a, 1=2001-01-011 COLLATE'000' FROM t1
ORDER BY 3,3,a, '000', 3,a, '000'� 


sqltext:
WITH i(x) AS ( VALUES( avg(1)-0=1) UNION ALL SELECT 1=1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 204


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rYYYYYYYY!YYYnYYYALLY!YYYYYYYALLu�YYYYYYYYYYYYYY!YYYnYYYALLY!YYlllllYYYYYYYYYYYYYYYYYYYYY!YYYnYYYALLY!YYYYYYYALLY');
SER�������������


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ru�lllllYYYYYYYYYY1 USING fts3(cYYYYYYYYYYYYY!YYYYYYYALLY!YYYYYYYYY!YYYYYYYALLY!YYYYYYYALLY');
SER


sqltext:
CREATE TABLE t1(a,b);EXPLAIN
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRI)'
WHERE name='t1a';
UPDATE sqlite_master SET sql=' || T� TA<LE!00(a NOT NULMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
SELECT NULL UNION SELECT 2'x',"a","a","�","a","a","b" UNION SELECT"b" UNI UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY "a","a","b";


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rujlllllYYYY��YYYYYYYYYYYALLY;YYYYALLY');
SELECT rowid FR


sqltext:
CREATE TABLE t000(c0  a,c000,�NT0 "a","b"I, a,b0);
CREATE TABLE t002(c0,�NT0,ba,b,�,I, a);
SELECT c000.* FROM t000 NATURAL JOIN t002 AS c000;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(+random() -11)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( CURRENT_TIME)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower( random()GLOB -11)q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX '+2 daysuTC' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00000000000 000 ''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, date(?,idx) stat FROM sqlite_stat1 GROUP BY 002;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1( [a]i01, va0u01);
INSERT INTO t1 VALUES(44.0400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( "a","b"-"a","b" /* */)
FROM t1
@;


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES( 1112001-01-01,randomblob(2500));
INSERT INTO t1 VALUES(?,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT NULL,randomblob(2701E01-0150)FROM t1;VACUUM


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S��000,0, a,bREGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR/6 0::C:G f:::::::::::::::::::ts4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��00S��REFERENCESREGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR/6 ::::G fts4(y,';


sqltext:
CREATE TABLE t102 (i0 BEXT UNIQUEANDT NULL);
INSERT INTO T102 VALUES ('0');
SELECT 2 FROM t102 AFT JOIN t102 OAFT JOIN t102 ON0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"NATURAL
JOIN t102 DE JOIN t102  tANDE JOIN t102 FT JOIN t102 gNEFT J�IN t);


sqltext:
#TTACH''AS nooname;
ATTACH':ry:' AS@��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';;
ATTACH':my:' AS imeom��name;ANALYZE'TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';;
ATTACH':my:' AS imeom��name;ANALYZE'TEMP';END;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('  				 blob� @1av')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a /* */,e));
SELECT DISTINCT* FROM t0 WHERE glob(1,1)=? AND a=? AND b=? AND c=? AND d=? AND e OR?AND c=? AND d AND d=? AND e OR?AND d=? AND e OR?AND c=? AND e OR?AND c=? AND c=? AND d=? AND e OR?AND c=? AND c=? AND e OR?;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT * FROM t0 WHERE a= /* */b=C AND c=? AND d=e AND b=? AND c=? AND  /* */ ~~~ ~~~~~d=E AND e OR ~~~~~~~~~~~~~d=E AND e OR ~~~~~~~~~~~~~~~d=E AND e O;


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(a,b,c,d,e));
SELECT * FROM t0 WHERE a= /* */b=C AND c=? AND d=e AND b=? AND c=? AND d=E || ~~~ ~~~~~d=E AND e OR ~~~~~~~~~~~~~d=E AND e OR  total_changes()=E AND e O;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+-77775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);�REINDEX;
SELECT(c FROM EN


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+-77775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHECURRENT_TIMESTAMP;
CREATE INDEX t0b ON t1(a);
REINDEX;
SELECT(c FROM EN


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2,.3);
INSERT INTO abc SELECT a||b||c,200|c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a *b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|| round(A,A)c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c -1, b||c||a, c||a||b FROM abc;
IO  c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY /* */ b, b, a, b, a, d, e);


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR N`AR/6 0:::/6 0::R N`AR/6 0:::/6 0::::G  "a"::G fts4(y,';


sqltext:
CREATE TABLE t0( a,ba,b,c,d,e, P UNIQUE,bI a,be, PRIMARY KEY(e,ba,bI,c,p,a,ba,b,c,d,e,d,a,bI,c,p,a,ba,b,c,d,e,d,a,bI,c)) WITHOUT ROWID+R


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' 1=1d_extension(1��)', ' @1foo');
INSERT INTO ft VALUES(' @1nsion(131)', ' @1');
INSERT INTO ft VALUES(' load_extension(131)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' @1*@1*1*1';f


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS q, count(1)q FROM x AS x1, x , x AS x2 WHERE q=1+time(1)OR
x1.a=x2.a;
SELECT  total(1)p FROM y AS y1, y  AS1, yy1,


sqltext:
PRAGMA Lum=2;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);BEGIN
;
CREATE INDEX x ON t1(b);
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t0;gr�


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(1,1)es()c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('C random()URREN changes()c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' time(1,1,1 strftime(1,1,1,1)used(1)f 0 b c a,b d');
SELECT snippet(ft0, '0', '0', '', -1, 2) FROM ft0 WHERE ft0 MATCH   'a''d 1=1(1)a''b''c';


sqltext:
CREATE TABLE t000(c0  a,ba,b,�, 'a''b'I, a,��,���������������������������,I000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000(c a,b0  a,ba,b,�,I, a blobte_compileoption_get(1)UNIQUE,INT0000);
SELECT c000.* FROM t000 AS c00 NATURAL JOIN t000 AS00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || 
81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -81) x FROM i LIMIT 3 ;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1,X-1555555555555555.00 || -81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(?,1, -1555555555555555.00 || -81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1/55555555555555.00 || -81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -155555555/555555.00 || -81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 ||1-81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -1555555555555555.00 || -.1) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, -155555555555 || .00 || -81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, 55555.00 || -1555555555555555.00 || -81) x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, 55555.00 || -1555555555555555.00 || -81) x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,CURRENT_TIME|| -1555555555555555.00 || -81) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, 55555.00 || sqlite_compileoption_get(1)) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<1 FROM i ORDER BY 1)
SELECT strftime(1,1, 55555.00 || 00255555555555555.00 || -81) x FROM i LIMIT 10;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  a,b,( VALUES(B,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y  A, y  CS1, y y1, y S1, y y, y y1, y S1, y  AS y1)p FROM x AS y1, y  A, y CS1y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  *,b/( VALUES(B,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x AS y1, y  A, y  CS1, y y1, y S1, y y, y y1, y S1, y  AS y1)p FROM x AS y1, y  A, y CS1y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  a,b/( VALUES(B,1))q FROM x;
SELECT $tota|(SELECT $tota|(1)p FROM x S1, y y, y y1, y S1, y  AS y1)p FROM x AS y1, y  A, y y AS
1y


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(e,b,C,a,d,e,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? A


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(e,c,d,e,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? A


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(e,b,c,a,b,c,d,e,e));
SELECT DISTINCT* FROM t0 ;
SELECT DISTINCT* FROM t0 WHEd<? AND e=?;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE docid < hex(12001.01-01);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT docid, c FROM t1o0d;
DROP TABLE t1o0d;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,oid"a", random()"b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2,a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2  "a","b"


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND t0.i0>t1.i0 AND t0.i0<t2.i0) AND t2.i0=t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t0.i0 LIKE 'a0'
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR 50 AND+t0.i0>t1.i0 AND t0.i0>t2.i0) AND t2.i0<t1.i0));


sqltext:
#EGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('01 �b');
INSERT INTO t0 VALUES('2001-05b cc');
INSERT INTO t0 SELECT('5555555555555555555555555551-01bb cc');
INSERT INTO t0 SELECT('cc 01');
SELECT docid FROM t0 WHERE t0 MATCH '0* -112001-01-01-01-01';
END;


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDNOTNULL /* */OR
01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99) OR (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE- 0XADDA2001FOR-01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0a ONT JOIN t0b ON -1 (M


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDA200NOTNULL;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0a ONT JOIN t0b ON -1 (M


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( nullif(1,1))WHERE"b";
SELECT $to|a|(SELECT $tota|(0)p FROM x AS y, y S1, y  AS y1)p FROM x AS y1, y S�y1, y  AS1, y S1,( y S1, y  AS y1)p FROM x


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT *, a,b,"b"AS m FROM t2 ORDER BY a,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT count(1),"b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,"b",a,a, '000' , 2, '000' , 2,b,"b",a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,0e0"a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,"b",a,a, '000' , 2, '000' , 2,b,"b",a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,"b",a,a, '000' , 2, '000' , 2,b,"b",a,a, '000' , 2, '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMI, "a""b";
SELECT $tota|(SELECT $tota|(1)p FROM y AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT DISTINCT/* */( nullif(1,1))LIMI,  "a","b""a","b";
SELECT $tota|(SELECT $tota|(1)p FROM y AS y1, y, y  AS y1)p FROM x AS y1, y  � AS y


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(� INTEGER PRIMARY KEY DEFERRABLE REFERENCES t1(x)UNIQUE DEFERRABLE REFERENCES t1(x) ON DELETE SET DEFAULT REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);
I


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000002001-01-0100, '02001-01-0T0%)�
INSERT 00.0000(docid,0x)0VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000-00000.00000, ' group_concat(1,1)02001-01-0T0%)�
INSERT 00.0000(docid,0x)0VALUES(0, 0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=Ľ�������������������OR��00');
IaB");
INSERT INTO t0 VALUES('oneatwoBt˽���O��Ľ�������������������OR��00');
INSERT INTO t0 VAL


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=Ľ��������������������������������OR��s0');
������OR��00');
IaB");
INSERT INTO t0 VALUES('oneatwoBtϽ���O��Ľ�������������������OR��00');
INSERT INTO t0 VAL


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,oid"a","b"FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a, '000' , '000' , 2, 1,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b,a, '000' FROM t1
ORDER BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b"COLLATE"b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b, (1)a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, time(1,1,1), 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b,a, '000' FROM t1
GROUP BY 2,oid, 2,  a,b,"b",a,a, time(1,1,1), 2 , 2,  a, 2 , 2,  a,b,"b",a,a, b,"b",a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(1) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 ,  "a","b""b",a,a,  /* */a,a,a, b,"b",a,a, '000' , '000' , '000' , '000' , 2, 3,a, '000' ,a, '000' , 2,  a,b,"b"


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a, b "a","b"FROM t1
UNION
SELECT avg(2001-01-011) b,a, '000' FROM t1
GROUP BY 2, 2 , 2,  a,b,"b",a,a, '000' , 2,2, 2 , 2,  a, 2 , 2,"b",a,a,a, b,"b",a,a, '000' , '000', 2b"


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE NOT NOT(Q)=x2.a;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE NULL=y2.q;
SELECT * from z;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='0�2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0 glob(1,1)sai000 A s0o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet w e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(2001-01-0100000000, '0001-01-010');
INSERT INTO t0(docid, x) VALUES(0, '0"');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" 1=1 glob*"a"(1,1*"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" 1=1*glob "a" glob(1,1)(1,1)"';


sqltext:
CREATE TABLE "0000" ("000000" V0 "a","b" PRIMARY KEY, "n00b00" INT0000 �OT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000","n00b00") VALUES('c', 2);
SELECT sqlite_compileoption_get(1)"000000", "n00b00" FROM "0000" ORDER BY "b", "a","b""a","b",   "a","b" LIMIT 1)�IS 


sqltext:
CREATE TABLE t102 (ADDA1020 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AST JOIN(t102 ONt0
LEFT JOIN t102  t) ON t1.i0 GLOB 'a0'
JOIN(t102 AS t2
LEFT JOIN t102 ON t).N


sqltext:
CREATE TABLE t102 (A10ABORT20 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AST JOIN(t102 ONt0
LEFT JOIN t102  t) ON t1.i0 GLOB 'a0'
JOIN(t102 AS t2
LEFT JOIN t102 ON t).N t1


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(2001-01-010000.000, '02 ;001-01-02001-01-0110');
INSERT INTO t0(docid, x) VALUES(0, '02001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
SELECT-'0000'ASC UNION SELECT avg(1) ORDER BY 1,1 ASC, 1 COLLATE  ASC,1 ASC, ASC, 1 UNION SELECT avg(1) ORDER BY  ASC,1,ASC, ASC,1 ASC, 1 COLL


sqltext:
SELECT-'0000' UNION SELECT avg(1) ORDER BY 1%1 ASC, 1 COLLATE  ASC,ASC, 1 UNION SELECT avg(1) ORDER BY  ASC,1,ASC, ASC@1 ASC, 1 COL 


sqltext:
CREATE TABLE F6IL AS SELECT 4 ASFOR, 5 CUURRENTFOR, 5 CRENTFOR, 5 CUODAT2, 5 CURE�CUURRENTFOR, 5 CNTFOR, 5 CU:DAT2, 4 CURE�IL���TE
SEX


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER INSERT ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=3 OR  Te0tID>0 OR Te0tId>0;REINDEX=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t102 (i0 BEXT UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURQL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  EANDE JOIN(t102  JOIN t102 FT JOIN t102 ONNDE JOIN t102 FTLEFT JOIN t102  t
JOIN t102 A0));


sqltext:
CREATE TABLE t102 (in00b00 UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURQL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  EANDE JOIN t102  JOIN t102 FT JOIN t102 ONNDE JOIN t102 FTLEFT JOIN t102  t
JOIN t102 A0));


sqltext:
CREATE TABLE t102 (i00t000 UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURQL JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 ASANDE JOIN t102  EANDE JOIN t102  JOIN t102 FT JOIN t102 ONNDE JOIN t102 FTLEFT JOIN t102  t
JOIN t102 A0));


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH '" t "a""a"t "a","b"1,1 "a"N "a"LL,"b"(1,1,1,1)ime(1,1,")"';


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT 'a''b' ;
SeLECT  total(A)"a",total(A)"a", a,b FROM y A, y  ASy1, y  AS1, x  A, y AAS,y;


sqltext:
CREATE TABLE t3(a �NTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND b=3 ORDER BY b, c, d,e DESC, b, c, ab, a,b


sqltext:
CREATE TABLE t00a(a,b);
INSERT INTO t00a VALUES(0,0);
CREATE TABLE t00b(n);
CREATE TRIGGER r00 AFTER INSERT ON t00b BEGIN
SELECT 0 FROM t0,a, "a","b"n0000 UNION ALL
SELECT 0 FROM t0,a WHERE 0>new>x ORDER BY 0 LIMIT 0;
END;
INSERT INTO t00b VALUES(6);


sqltext:
SELECT strftime(1,1,1,1) NOT IN (10 IN (10 IN (10)ISNULL NOT IN (10 )))d10 IN UCDATE
(10,10������������)10) IN UCDATE (1,�0)010-90 time(1,1,1)�


sqltext:
PRAGMA mmap_size =" -1";
PRAGMA page_size = 1024;
PRAGMA cache_size =AL t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
CREATE TABLE t0000(a,INARY KEY ,UTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(a) SELECT('00$000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES('0000');


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total( ifnull(1,1))q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT  total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y, y y1, y S1, y y1, y S1, y y, y y1, y, y  AS1, y S�y1, y  A, y , y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y


sqltext:
SELECT randomblob(1)  -10>>00060.015000>>00000000600060.010000>>00%0.00>>0-10>>00*0-10>>00> last_insert_rowid()>>0050060.015000>>0000000>>00>>00-10>>00>>000000;


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT x, y FROM t01
UNION ALL
SELECT x, y FROM t01
UNION ALL
SELECT x, y F
UNION ALL
SELECT x, y FROM ROM t02;
CREATE INDEX t000 ON t01(x);
CREATE t02(x, y);
CREAT2(x);
EXPLAIN QUERYPLAN

SELECT * FROM v0 SELECT 


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 NATURAL 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t102 -1 
JOIN t102 AS t2 ON(t2.i0= t0.i0 AND(t0.i0<>500 AND t2.i0=t1.i0));


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruent EATE VICATing Gnnning a VICATing Gnnningng Gnt MATiON Gntent MATi VICATing Gnnningng Gnt MATing Gnt jumping');
CCH 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruent EATE VICATing Gnnning a VICATing Gnnningng GnticATing Gntent MATi VICATing Gnnningng Gnt MATing Gnt jumping');
CCH 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ���ڽ�̥Ͻ���ڽ�Ľ���������ν��������ν����������00');
INSERT INTO t0 VAL


sqltext:
CREATE TABLE t3(a INTEG�R PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, c, b, c, b, c,b, b, c, b, c, b, a,b bb b


sqltext:
CREATE TABLE t3(a INTEG�R PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, c, b, c, b, a,b, b, c, b, c, b, a,d bb b


sqltext:
CREATE TABLE t102 (i0 TEXT _NIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 PtT JOIN t102  t1 ON t1.i0 GLOB 'a0'
LEFT JOIN t102 t2 ON(t1.i0=+t0.i0 OR t1.i0= t2.i0 OR t2.i0=t1.oid);


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,AUES��00S��@00,0,bbb REGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb N`AR/6 A::::G6 A::::G';


sqltext:
CREATE TABLE t102 (i0 wEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AS 
LEF102 NATURAL
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 IN  (1) 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR tT.i0= t1.i0 OR t2.i0=t1.oid);


sqltext:
CREATE TABLE t102 (i0 wEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('E');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 A2 
JOIN t102 AS tT JOIN t102  t1 ON t1.i0 IN t102 
JOIN t102 AS t2 ON(t1.i0= t0.i0 OR tT.i0=  t2.i0=t1.oid);


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES('a');
SELECT a|NOT-CAST(a AS clob000)< CAST(a AS clob000) FROM t0;
 FROM 


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES('a');
SELECT a|NOT CAST(a AS clob000 blob)< CAST(a AS clob000) FROM t0;
 FROM 


sqltext:
CREATE TABLE t10(a, u00000000 DEFAULT 0);
CREATE TRIGGER t00000 BEFORE UPDATE OF a,b,ba,ba ON t10 BEGIN
UPDATE t00 SET u0= u0000+1 WHERE r00000= o00.r0000;
END;
INSERT INTO t10(a)VALUES('000');VACUUM;
CREATE TRIGGER t00000 BEFORE UPDATE OF   a,ba,ba ON t10 BEGIN
UPDER


sqltext:
SELECT NULL,  "a","b""a","b""a","a","�","a","a","b" UNION SELECT"b" UNI UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY "a","a","b";


sqltext:
SELECT NULL, "a","b""a","a","�","a","a","b" UNION SELECT"b" UNI UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY  "a","b""a","a","b";


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rujlllllYYYY��YYYALLYYYYYALLY;YYYYALLY');
SELECT rowid FR


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(  zeroblob(1))q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y A,y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(  zeroblob(1))q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, yyy


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)OR lower(  zeroblob(1))q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, lower(  zeroblob(12001-01-01))q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y S�y1, y  A, y  AS1, y y1, y S1, y y, y y1, y S1, y  ASy1, y S1, y y, y y1, y S1, y y1, y


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES(' load_extension(1,1)', 'foo');
INSERT INTO ft VALUES('xtension(1,1)', 'foo');
INSERT INTO ft VALUES(' l1)', 'foo');
INSERT INTO ft VALUES('foo', ' @1');VALUES('foo', ' @1');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' strftime(1,1,1,1) 1=1 @1��1*1';f


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+877775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);�REINDEX;
SELECT(c FROM EN


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+-77775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHECURRENT_TIMESTAMP;
CREATE INDEX t0b ON t1(a);�REINDEX;
SELECT(c FROM EN


sqltext:
CREATE TABLE t0( a,ba,b,c,d,e, P UNIQUE,bI a,be, PRIMARY KEY(a,bi,bI,bI,c,p,a,ba,b,c,d,e,d,a,bI,c)) WITHOUT ROWID+R


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(1�1)es()c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURcENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM a0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(, b);
INSERT INTO x1,1)es()c', 'd� f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(1,1)es(RTUAL TABLE x0 USING fts4)c', 'd  f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(1 x0 SELECT * FROM x0;
INSERTx0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT IN c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE docid > hex(12001-01-01);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT docid, randomblob(1) c FROM t1o0d;
DROP TABLE t1o0d;


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDNOTNULL /* */OR
01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x=99) OR (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDNOTNULL /* */OR
01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99)AND (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY  a,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMA z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY a,b,ba,ba, b;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE x(��,b,a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,b1, x1, x , xa,ba,q);SEL;
C


sqltext:
CREATE TABLE x(��,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS ba,ba,b1, x1, x , xa q , *,ba AS q FROM x AS �K, x AS x2 USING  ( ba,ba,b1, x1, x , xa,ba,q);SEL;
C


sqltext:
CREATE TABLE x(��,b a,� a,b1, x1, x , xa,ba,q);SELECT total(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba ,b1, x1, x , xa,ba,q);SEL;
C


sqltext:
CREATE TABLE t102 (ADDA1020 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AST JOIN(t102 ONt0
LEFT JOIN t102  t)�ON t1


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x, "a","b"SC);
INSERT INTO t0(docid, x) VALUES(10000000000000.000, '002001-01ESC);
INSER-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid,(x) , "a","b"V;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(10000000000000.000, '002001-01ESC);
INSER-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid,(x) ,  "a","b""a","b"V;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ���ڽ�̥Ͻ�����ڽ�̥Ͻ���ڽ�Ľ ��������ν��������00');
INSERT INTO t0 VAL


sqltext:
CREATE TABLE t3(a INTEG�R PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, c, b, a,b, b,b, b, c, b, c, b, a,b, b, c, b, c, b, A b


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rujlllY��YYYALLLYYYYYALLY;YYYYALLYYYYYALLY;YYYYALLY');
SELECT rowid FR


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';VACUUM;
ATTACH':my:' AS i-eom��name;ANALYZE'TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';VACUUM;
ATTACH':my:' AS imeom��name;ANALYZE/TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';VACUUM;
ATTACH':my:' AS imeom��name;ANALYZE;TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE /* */;VACUUM;
ATTACH':my:' AS imeom��name;ANALYZE'TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;ANALYZE'TEMP';VACUUM;
ATTACAS m;ANALYZE'TEMP';VACUUM;
ATTACH':my:�name;ANALYZE'TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��n;VACUUM;
ATTACH':my:' AS imanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';VACUUM;
ATTACH':my:' AS imeom��Mame;ANALYZE'TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamnamem;ANALYZE'TEMP';VACUUM;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';V�CUUd;
ATTACH':my:' AS imeom��name;ANALYZE'TEMP';END;


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��naname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamnam;ANALYZE'TEMP';VACUUM;
ATTACH'�me:' AS m;ANALYZE'TEMP';VACUUM;
ATTACH':my:' AS imeom��name;ANALYZE'TEMP';END;-


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��Taname;
ATTACH':memory:' AS ��oname;
ATTACH':memory:' AS ��nanamname;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;ANALYZE'TEMP';VACUUM;ANALYZE'TEMP';VACUUM;��ame;ANALYZE'TEMP';END;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(1020012001501501-01-01,1,'0000');
INSERT INTO t1 VALUES(2001-01-0120,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+877775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHECURRENT_TIMESTAMP;
CREATE INDEX t0b ON t1(a);�REINDEX;
SELECT(c FROM EN


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(F,1)es()c', 'dAS f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(1,1)es()c', 'dAS f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT "a","b"x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob(1,1)es()c', 'dAS f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURR intTIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES(' sqlite_compileoption_get(1)CU glob(1,1)es()c', 'dAS f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('CU glob sqlite_compileoption_get(1)(1,1)es()c', 'dAS f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 VALUES('CURRENT_TIME0 b c', 'd e f');
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;

INSERT INTO x0 SELECT * FROM x0;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE docid >-hex(12001=01-01);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT docid, c FROM t1o0d;
DROP TABLE t1o0d;


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDNOTNULL /* */OR
01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0a ONT JOIN t0b ON?(M


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDNOTNULL /* */OR
01;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99)AND (1)99) M


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 ORDER BY a,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.x=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY  a,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1,y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE x(��,b a,� a,b1, x1, x , xa,ba,q);SELECT t(q)p, *,ba AS q , *,baotaP(q)p, *,ba AS q , *,ba AS q FROM x AS �1, x AS x2 USING  ( ba,ba,ba ,b1, x1, x , xa,ba,q);SEL;
C


sqltext:
PRAGMA mmap_size ="   ;a"RAGMA page_size = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="   >=a"RApage_size = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="   -1a"RApage_size = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="   -1t(1)";
PRAGMA page_size = 1024;
PRAGMA cache_size =AL00&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="  -1nt(1)";�ARAGMA page_size = 1024;
PRAG^A cac|e_size =AL001(x)&
CREATE TA>LE t2(x);
CREATE)TABLE t3andomblob(100) FROM�t3;
INSERT�INTO t3 SELECT randomblob(100E���M t3;
INvERT INTO t3 SELECT rINTO t3 SaNTO t3 SELECT ra���������������������0) FROM t3;
INSERT INTO t3 SELECSERT INTO
t������������dombloj2�01-01-0100) FROM t1;
INSERT INTO?t3 SELECT  l�st_ins r`_roXid() t3SERT INT t3 SELECT randomblob8
00) FROM t3;INSERT INTO t3 SEt3 SELECT  llob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="                                 -1nt(1)";
PRAGMA page_size = 1024;
PRAGMA cache_size =AL001(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 zzSELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;I>SERT INTO t3 SELECT randomblob200) FROM t3;REINDEX


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneE̥Ͻ�����ڽ�̥Ͻ������ڽ�̥Ͻ���ڽ�Ľ ��������ν��������00');
INSERT INTO t0 VAL


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBtϽ���ڽ�̥Ͻ�����ڽ�̥Ͻ�������eatwoBtϽ���ڽ�̥Ͻ�����ڽ�̥Ͻ�00');
INSERT INTO t0 VAL


sqltext:
CREATE TABLE t3(a INTEG�R PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, c, b, c,b, b,b, b, c, b, c, b, a,b, b, c, b, c, b, A b


sqltext:
CREATE TABLE t3(a INTEG�R PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(a, a, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, c, b, a,b, b,b, b, c, b, c, abs(1), b, c, b, c, b, A b


sqltext:
ATTACH''AS nooname;
ATTACH':ry:' AS ��nanamZ;ANALYZE'TEMP';VACUUM'TEMP';VACUUM;
ATTACH':name;ANALYZE'TEMP';E


sqltext:
CREATE TABLE t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0XADDNOTNULL /* * /* */;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ONT JOIN t0b ON (x<99)AND (1)99) M


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS b FROM t2 ORDER BY  a,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y� z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY   a,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY   a,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1,y=a002.m
WHERE t1.x IN a002,3)


sqltext:
PRAGMA mmap_size ="    -1-1a"RApage_size = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT randomblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="�+"a"Rze = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(1M0) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT ran^omblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="-+"a"Rze = 1024;
PRAGMA cache_size =AL00;TABLE t1(x)&
CREATE TA>LE t2(x);
CREATE TABLE t3andomblob(100) FROM�t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT randomblob(200ndomblob(1M0) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01-0100) FROM t1;
INSERT INTO t3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomblob(
00) FROM t3;INSERT INTO t3 SELECT ran^omblob(200) FROM t3;REINDEX


sqltext:
PRAGMA mmap_size ="+"a"Rze = 1024;
P^AGMA cache_size =AL=0;TABLE t1NSERT INTTE TA>LE t2(x);
CREATE TABLE t3andomblobNSERT INTO t3 SELECT!randomblob(100)BOM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT0ndomblob(1M0) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01e_size =AL00;TABLE t1(x)&
Ct3 SELECT  last_inser`_rowid() t3SERT INT t3 SELECT randomb sqlite_compileoption_get(1)O t3 SELECT ran^ISb��200) FROM t3;REIN


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x, "a","b"SC);
INSERT INTO t0(docid, x) VALUES(10000000000000.000, '002001-01ESC);
INSER-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid, a,b, a,b,"b"V;


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y� z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY a,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY a,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1,y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY  a,ba,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRNMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)A FROM t2 GROUP BY a,ba,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(B,1)AS m FROM t2 GROUP BY a,b,ba<ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(B,1)AS m FROM t2 GROUP BY a,b,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY  a,ba,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1,y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 ORDER BY  a,ba,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2( a,ba, b);
CREATE VIEW a002 AS SELECT instr(1,1)AS m FROM t2 GROUP BY   a,ba,ba,b,ba,ba,b,ba,ba;
EXPLAIN QUERY PLAN
SELECT t1.z, a002.m
FROM t1 JOIN a002 ON t1.y=a002.m
WHERE t1.x IN a002,3)


sqltext:
PRAGMA mmap_size =""a"Rzeze =AL=0;TABLE t1NSERT INTTE TA>LE t2(x);
CREATE TABLE t3andomblobNSERT INTO t3 SELECT!randomblob(100)BOM t3;
INSERT INTO t3 SELECT raNTO t3 SELECT0ndomblob(1M0) FROM t3;
INSERT INTO t3 SELECT randomblob(11ft0FROM t3;
INSERT INTO t3 SELECT randomblob(12�01-01e_size =AL00;TAB+"alast_inser`_rowid() t3SERT INT t3 SELECT randomb sqlite_compileoption_get(1)O t3 SELECT ran^ISb��200) FROM t3;REIN


sqltext:
CREATE TABLE t0(a UEIQUE PRIMARY KEY);
CREATE TABLE t8(a UNIQUE PRIMARY KEY ON CONFLICT ROLLBACK	UNIQUE);
CREATE TABLE t8(a UNIQUE PRIMARY KEY ON CONFLICT ROLL;
I


sqltext:
BEGIN;
CREATE TEMP TABLE t1(a, b);
INSERT INTO t1 VALUES(1, 2);
COMMIT;
SELECT * FROM t1;
VACUUM /* */journal_mode;END


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0000000000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT nullif(?,1) idx, stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
PRAGMA �ing=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','����0',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(A,B)


sqltext:
CREATE TABLE tabc(a,r,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
CREATE TABLE t AS SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, *
FROM tabc, txyz, tb0th ORDER BY 1 LIMIT 1;


sqltext:
CREATE TABLE tabc(a,b,c);
INSERT INTO tabc VALUES(1,2,3);
CREATE TABLE txyz(x,y,z);
INSERT INTO txyz VALUES(4,5,6);
CREATE TABLE tb0th(a,b,c,x,y,z);
INSERT INTO tb0th VALUES(1,2,3,4,5,10);
CREATE VIEW v0 AS SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
CREATE TABLE t AS SELECT tabC.a, txyZ.x, last_insert_rowid()
FROM tabc, txyz, tb0th ORDER BY 1 LIMIT 1;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('  -1  E1/now')));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| julianday(1.1E1) || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0. *FROM ((t0 JOCa) AS x JOIN t2 /* */x ON x.b=t2x.b) as00;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT-'90��OTNULL';
ALTER TABLE t1 ADD COLT0000 DEFAULT-'90�NOTN99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT-'90�NOTNULL';
ALTER TABLE t1 ADD COLT0000 DEFAULT-'9��NOTN99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT-'90�NOTNULL';
ALTER TABLE t1 ADD COLT0000 DEFAULT-'90�NOTN99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT-'00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
PRAGMA max_page_count = 10.0000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a &b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
INSERT INTO abc SELECT a||b|~c -1, b||c||a, c||a||b FROM abc;
IO abcb, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
CREATE VIEW v0 AS SELECT glob(1,1) "a","b" t0;
CREATE TRIGGER t0001 INSTEAD OF DELETE ON v0 BEGIN
SELECT 0;
END;CREATE TRIGGER t0001 INSTEAD OF DEL�ON v0 BEGIN
SELECT 0;
END;
DELETE FROM 
DELETE FROM v0


sqltext:
BEGIN;
CREATE TABLE A000(ISSUEID text(50)not null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OB0ECTID, PARTICIPANTID));
CREATE TABLE A00000000000000000(L0 UNIQUE, Q00 int not null, N000000 text(50)UNIQUE not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int000004 U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blobnot null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));
CREATE TABLE I0(O000 text null, S0000000 text(50) not null, R000000000 text0 null, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C00000 int0, S00 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, C000000000000 text(300) null, C00000000000 text null, I000000000000 text(1) null, B000 text null, I00000000000E text(1) not null, I0000000E int not null, A0000000000000 text(50) null, I00000000000 text(1) not null, constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE I000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U00000000000 int null, PR00000 int null, L000000 int null, L00000000 int null, U0000000 text(300) null, L000000D text(50) null, I00000000 text0 null, I0000000 text not null, I00000000000 text(20) null, I0000 int null, I0000000000 int null, D0000000000 text(1) null, I000E text(1) not null, A000000000000000 int0, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE K00(MSGID integer not null, S00000 text(50) null, R000000 text not null, constraint P000000000 primary key (MSGID));
CREATE TABLE D00(N0 text(50) not null, M00 int not null, R00000000000 text(20) not null, S00000000 int not null);
CREATE TABLE K0000(MSGID integer not null, S0 text(50) null, R00 text not null, I000000 text0, M0000000000 int not null, E0000000 text null, M000000000B blob not null, constraint P0000000 primary key (MSGID));
CREATE TABLE L000000(C000000 int null, S0000 int not null, L00000000000000 text null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C00 text(50) not null, A0000000 text(50) , C000 text(20) null, U000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, A000000000 int not null, A00 text null, O0000000000 text null, N0000000000 text null, O000000000000 text null,constraint P000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0(TQUNID text(30) not null, I000000 text(50) not null, T0000000000 text(50) null, T000000000D text(50) null, T0000000 int null, T000000000000000 text(50) null, T000000000 int null, D00000000000 text null, S000000 text(1) null, E0000000000000 text null, U00000000000 int not null, constraint P00000 int not null, S00000000 int not null, L0000000000 text(20) null, constraint P000000 primary key (TQUNID));
CREATE TABLE M00(TQUNID text(30) not null, S0000 text(50) not null, T000000000000000 text(50) null, M000000000000 text(60) null, D00000000 int null, N00000 text(50) null, T00000000000000 int null, T0000000000000 int null, N0000000000000000 text(20) null, T000000000000000000000 int null, constraint P00000 primary key (TQUNID));
CREATE TABLE N00(N0 text(50) not null, U0 text(50) null, C000000000 text(20) not null, T00000 text(30) not null);
CREATE TABLE N0(N0 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null, L00000000000 text(20) null, L0000000000000 text(20) null, L000000000 text(10) null, N000000S int not null, N00000D0 int not null, N00000L0 int not null, N00000V0 int not null);
CREATE TABLE P00(I00 text null, O0000000 text(50) not null, N00000 text(50) not null, U00000 text(50) null, N00000000 int not null, N0000000 text null, K0000000000 int not null, K00000000 text(30) not null, T00000 text(30) not null);
CREATE TABLE P00000000000(C0000 int null, S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P00000000000000 int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P000000000000000 int not null, PA0000000000000 int not null, P0000000000000M int not null, I000000000000000 text(1) null, U00000 text(50) null, I000000 text(1) null, N000 text(100) not null, E00000000000 text(200) not null, I0000000000 text(1) not null, I000000000 text null, A0000000000000000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));REINDEX TABLE P0(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not nulll, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P000(P00 text(50) not null, N0 text(100) not null, L0 text(300) not null, S00000000000 text(50) not null, T00000 text(30) not null);
CREATE TABLE P000ext not null, I0000000000000 text(1) null, D00000000000 int null, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, E000000000 text(1) not null, U000000000000000 text(200) null, E0000000000000 text(1) null, V000000000000000 text(50) null, C000000000 text(20) not null, T00000 text(30) not null, P0000000000 text(50) null);
0


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(990));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
DELETE FROM t0 WHERE rowid/CURRENT_TIME


sqltext:
CREATE TABLE t4(a TGXT);
INSERT INTO t4 VALUES('�');
INSERT INTO t4 VALUES('102');
INSERT INTO t4 VALUES('04');
SELECT min(a), mIN(a) FROM t4;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),(NULL,0),(NULL,0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CRa)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='ABLE!00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO sql t%_


sqltext:
BEGIN;
CREATE TABLE Re00T000e(t00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT009e(Te0tID IfTEGER PRIMARYIfTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(T0)
SELECT new.Te00n0 FROM TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');ANALYZE TempT000eS


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0p00');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000S('| substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'a0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND#60;


