# xsql

sqltext:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(a PRIMARY KEY, b);
CREATE TABLE t2(c REFERENCES t1 DEFERRABLE INITIALLY DEFERRED, d);
INSERT INTO t1 VALUES(9,2);
INSERT INTO t2 VALUES(1,3);


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'
JOIN t102 AS t2 LEFT JOIN t102  ON sqlite_compileoption_get(1) AND t0.i0=t1.i0));


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 1 THEN x'0000000000'WHEN 2 THEN-zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
CREATE TABLE t1(x, y REAL);
INSERT INTO t1 VALUES(1,'1.0');
INSERT INTO t1 VALUES(2, '.5');
INSERT INTO t1 VALUES(3, '1.');
INSERT INTO t1 VALUES(4,'1e8');
INSERT INTO t1 VALUES(5,'.03');
INSERT INTO t1 VALUES(6,'1e0');
INSERT INTO t1 VALUES(10,'1.');
INSERT INTO t1 VALUES(12,'.5');
INSERT INTO t1 VALUES(13,'3.');
INSERT INTO t1 VALUES(14,'3e0');
INSERT INTO t1 VALUES(15,'.2');
INSERT INTO t1 VALUES(16,' 20e4');
INSERT INTO t1 VALUES(20,'1 ');
INSERT INTO t1 VALUES(22,'5 ');
INSERT INTO t1 VALUES(23,'3.');
INSERT INTO t1 VALUES(24,'1.e0');
INSERT INTO t1 VALUES(25, '.5e+3  ');
INSERT INTO t1 VALUES(26,'1 ');
SELECT x FROM t1 WHERE typeof(y)=='real' ORDER BY x;


sqltext:
PRAGMA max_page_count = 1000000;
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, 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, count(1)FROM abc;
INSERT INTO abc SELECT a,CURRENT_TIMESTAMP b, c FROM abc;
INSERT INTO abc SELECT b, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DEFAULT 10 REFERENCES t1(x) ON UPDATE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t1 ON UPDATE SET NULL);
INSERT INTO t1 VALUES(13);
INSERT INTO t0 VALUES(13);
INSERT INTO t3 VALUES(13);VACUUM


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS inmem;ANALYZE
CREATE TABLE noname.n00000(x);
CREATE TABLE inmem.i0000(y);
CREATE TABLE main.m000(z);
COMMIT;
SELECT name FROM noname.sqlite_master;
SELECT name FROM inmem.sqlite_master;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE /* */TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT000e LIMIT 1;
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;ANALYZE;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TEMP TABLE ob0list(type, name, tbl_name);
INSERT INTO ob0list SELECT type, name, tbl_name FROM sqlite_master;
INSERT INTO ob0list
SELECT type,name, tbl_name FROM sqlite_temp_master
WHERE NAME!='ob0list';
SELECT type,nameCOLLATE name FROM ob0list
ORDER BY tbl_name, type desc, name;


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,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 30 AND 1=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(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+62001-01-014, 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 t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE 8 LIKE '%h%' ESCAPE'߀';


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 b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
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  lower(1)=30 WHERE y >= NULL OR b-3;E;
S


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a);
CREATE TABLE t0(a);
DROP TABLE t1;
PRAGMA integrity_check;


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 =-'00..';
COMMIT;


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELECT a, unicode(?) b, '000' FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 3, 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('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","b""a","b" BY a;


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


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('a000e0',b)OR a='0' ORDER BY randomblob(1) +x;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400, trim(1,1));
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max(va0u01)
FROM t1
GROUP BY i01;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE tϐ��������0t�ϐ��������06(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t VALUES('ab0');


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 | typeof(1)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


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


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
CREATE VIEW v0 AS SELECT t0. *FROM t0;
CREATE TRIGGER t0001 INSTEAD OF UPDATE ON v0 BEGIN
SELECT 0;
END;
DELETE FROM v0 WHERE a= 1;


sqltext:
PRAGMA max_page_count = 1000000;
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, 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, count(1)FROM abc;
INSERT INTO abc SELECT a, b, c FROM abc;
INSERT INTO abc SELECT b, a, zeroblob(1) c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
BEGIN;
CREATE TEMP TABLE t1(a, b);
INSERT INTO t1 VALUES(1, 2)INTERSECT
SELECT * FROM t1;
PRAGMA temp.journal_mode;ROLLBACK


sqltext:
PRAGMA encodiAg=6;
CREATE TABLE t1(xUMN c REAL blob D);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '9�';
ALTER TABLE t1 ADD COLUMN c REAL�DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,b /* */,f));
INSERT INTO t5 VALUES(1,1,1,1,1,10000);
INSERT INTO t5 VALUES(2,2,2,2,2,20000);
INSERT INTO t5 VALUES(1,2,3,4,5,10000);
INSERT INTO t5 VALUES(2,?,4,5,6,20000);REINDEX


sqltext:
CREATE TABLE x(i0 integer primary key, a TEXT NULL);
INSERT INTO x (a) VALUES ('00');
CREATE TABLE tempx(i0 integer primary key, a TEXT NULL);
INSERT INTO tempx (a) VALUES ('0');
CREATE VIEW t01 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx ON tx.i0=x.i0;
CREATE VIEW t010 AS SELECT x.i0, tx.i0 FROM x JOIN tempx tx on tx.i0=x.i0;
CREATE VIEW t02 AS SELECT * FROM t01 UNIO; SELECT * FROM t010;
SELECT * FROM t02;


sqltext:
CREATE TABLE t1(a, b, 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 randomblob(1) a, x FROM t1, t2 GROUP BY 1, a,b


sqltext:
PRAGMA page_size= 1024;
PRAGMA auto_vacuum = 2;
CREATE TABLE t0(x);
CREATE TABLE t4(x);
CREATE TABLE t5(x);
INSERT INTO t0 VALUES(randomblob(1000));
CREATE TABLE t7(x);
CREATE TABLE t8(x);ANALYZE


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE ������6(a COTLATE nocasqliteMARY KEY);
INSERT INTO t0t VALUES('ab0');


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = 10;
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(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(900), 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:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY ON CONFLICT REPLACE, b);
CREATE TABLE t2(x, y);
INSERT INTO t1 VALUES(1,2);
INSERT INTO t2 VALUES(1,3);
INSERT INTO t1 SELECT * FROM t2;
SELECT * FROM t1;VACUUM


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT sqlite_version(), randomblob(1000) FROM t1;1 SE


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 sqlite_version() x FROM t1 WHERE c=instr('a000e0',b)OR a='0' OR trim(1,B)


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DEFAULT 10 REFERENCES t1(x) ON DELETE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t1 ON UPDATE SET NULL);REPLACE INTO t1 VALUES(13);
INSERT INTO t0 VALUES(13);
INSERT INTO t3 VALUES(13);


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INTEGER Pq, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t001, t002 WHERE t002.z GLOB '0000';


sqltext:
PRAGMA foreign_keys=ON;
CREATE TABLE t0000(a INTEGER PRIMARY KEY, b);
CREATE  /* */ INDEX i0000 ON t0000(a,b);REPLACE INTO t0000 VALUES(200,300);


sqltext:
CREATE TABLE t000(a INTEGE9 PRIMARY KEY, b, c);
CREATE TABLE t001(p INY KEY, q, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT 2 FROM  t000, t001,t000, t001, t000, t001t002 WHERE t2 W


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1( a,ba,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 t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


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 t0�AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b || '0000' || new.a || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


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


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('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 a<t0b.rowid GROUP BY a ORDER BY a;


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


sqltext:
DROP TABLE IF EXISTS t;
CREATE TABLE t1(a TEXT);
INSERT INTO t1(a)VALUES(1),(2);
DROP TABLE IF EXISTS t;
CREATE TABLE t2(x TEXT, y TEXT);
INSERT INTO t2(x,y)VALUES(3,4);
DROP TABLE IF EXISTS t;
CREATE TABLE t3 AS
SELECT a AS p, coalesce(y,y) AS q FROM t1 LEFT JOIN t2 ON a= sqlite_compileoption_get(q)ORDER BY q;


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%q',a,b,c) FROM t1 ORDER BY rowid;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ group_concat(1,1) -11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


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.a FROM ((t0 JOIN t2 ON t0.a= @1a) AS x JOIN t2x ON x.a=t2x.b) as00;


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 IN (SELECT a FROM t1 WHERE a<<0);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
CREATE TABLE blob0(k, v BLOB);
INSERT INTO blob0 VALUES(1, zeroblob(length(CAST( hex(1) AS �LOB))));


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY m OR round(M,8);


sqltext:
PRAGMA enchding=6;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INE TT0000 DEFAULT '������������������������������������������������������������900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x1;


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+?, 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,b FROM t1;
INSERT INTO t1 SELECT a+64,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, abs(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 t3(a TEXT, b REAL, c INT0000);
INSERT INTO t3 VALUES(X'000000', '1.03a00', 4.5);
SELECT typeof(a)< a, typeof(b), b, typeof(c), c FROM t3;


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<<0;
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 encoding=UTF16le;
 VALUES('ABX');
SELECT DISTINCTnocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab0');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT a FROM t0t0006;


sqltext:
CREATE TABLE x0(a CHECK( a||b ), b);
CREATE TABLE t0(a, b, CHECK( b||b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 SELECT * FROM x0;


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


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(P)=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:
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);SELECT tabC.a, txyZ.x, *
FROM tabc, txyz ORDER BY 1 LIMIT 1;
 SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, *
FROM tabc, txyz, tb0th ORDER BY 1 LIMIT 1;


sqltext:
CREATE TABLE t1(x, y DEFAULT( rTOeplace(1,1,1)));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES('a', 1, 1);
INSERT INTO t1 VALUES('0', 6, 6);
INSERT INTO t1 VALUES('c', 5, 5);
INSERT INTO t1 VALUES('0', 4, 4);
INSERT INTO t1 VALUES('0', 5, 5);
INSERT INTO t1 VALUES('c', 6, 6);
INSERT INTO t1 VALUES('b', 4, 4);
INSERT INTO t1 VALUES('c', 7, 7);
INSERT INTO t1 VALUES('0', 2, 2);
INSERT INTO t1 VALUES('0', 3, 3);
INSERT INTO t1 VALUES('a', 3, 3);
INSERT INTO t1 VALUES('b', 5, 5);
INSERT INTO t1 VALUES('c', 4, 4);
INSERT INTO t1 VALUES('c', 3, 3);
INSERT INTO t1 VALUES('a', 2, 2);
SELECT * FROM t1 ORDER BY c, b, c;


sqltext:
CREATE TABLE t44(a INT0000, b INT0000);
INSERT INTO t44 VALUES(1,2);
INSERT INTO t44 VALUES(3,4);
SELECT*
FROM t44 x
LEFT JOIN(SELECT a AS c, b AS d FROM t44) A000 ON a= upper( -11)=4 OR d IS NULL;


sqltext:
CREATE TABLE t1(� TEXT COLLATE���������� BINARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE															ES(


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,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'||sr(c,4) FROM t1 WHERE c GLOB ���INSE


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(a) VALUES('000');
INSERT INTO t0000(a) VALUES('000<);
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT I00');
INSERT INTO t0000(b) VALUES('00'); /* */INSERT INTO t0000(b) VALUES('0000');


sqltext:
WITH i(x) AS ( VALUES( 1=11) UNION SELECT (x | group_concat(1,1)| +1)*10 FROM i)
SELECT x FROM i LIMIT 20;


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, rtrim(1,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 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 -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 s000e_0ocument_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 s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_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 t14(a,b,c);
INSERT INTO t14 VALUES(1,2,3),(4,5,6) INTERSECT VALUES( lower(8888881),3,1),( total(1),1,3);


sqltext:
CREATE TABLE abc(a UNIQUE, b UNIQUE, c UNIQUE);
BEGIN;
INSERT INTO abc VALUES(1, 2, 3);
INSERT INTO abc SELECT a+1, b+1, c+1 FROM abc;REINDEX


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


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


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 replace(1,1,1) FROM TempT000e LIMIT�1;
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:
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 s000e_0ocument_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 s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_0o0000000000u00000000000 ON sub0ects(normali0ed_sub0ect);REINDEX 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:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '90� blob';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
BEGIN;
CREATE TABLE �000(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 int000, Q00 int not null, N000000 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, 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 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 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 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(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 P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 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));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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(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 rtrim(oid) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE De00Ta0le (x INT0000, Tex00e0 TEXT, D000 Real);
CREATE INDEX D00000000000 ON De00Ta0le (Tex00e0);
INSERT INTO De00Ta0le VALUES(9,8,7);
INSERT INTO De00Ta0le VALUES(1,2,3);
CREATE VIEW De00V0e0 AS SELECT * FROM De00Ta0le ORDER BY+Tex00e0;
SELECT* FROM De00Ta0le UNION ALL SELECT * FROM De00V0e0 ORDER BY 1;


sqltext:
CREATE TABLE t0000(aCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');VALUES('00');
END;EXPLAIN
INSERT INTO t0000(b) VALUES('0000');
SELECT * FROM t0000 ORDER BY a;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1(a) VALUES('000000000');
INSERT INTO t1(a)VALUES(10);
INSERT INTO t1(a) VALUES(NULL);
INSERT INTO t1(a) VALUES(22.0);
INSERT INTO t1(a) VALUES(x'0000�0');
CREATE INDEX i0 ON t1(a, b, c);
ANALYZE;
SELECT o00(se) FROM s000;


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 ,x,y,z);
INSELIMIT 1;
CREATE VIEW v2 AS SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, *
FROM tabc, txyz, IT 1;


sqltext:
CREATE TABLE t4(a TEXT);
INSERT INTO t4 VALUES('0');
INSERT INTO t4 VALUES('000');
INSERT INTO t4 VALUES('04');
SELECT min(?), max(a) FROM t4;


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)tSt00n0 FROM TempT000e LIMIT�1;
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:
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 s000e_0ocument_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 I00 UNIQUE,a0000000 NTEGER PRIMARY KEY, sub0ect�COLLATE RTRIM, normali0ed_sub0ect COLLATE RTRIM);
CREATE INDEX s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_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, d0000 INT0000 DEFAULT 0, u0000000000000000000 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 t0(x INT0000, y TEXT, z);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0.0,3);
INSERT INTO t0 VALUES(0.0,0.0,0);
SELECT DISTINCT x, zeroblob(2001.01-011) y FROM t0 ORDER BY z;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
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* random()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;


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 1 THEN x'0000000000'WHEN 2 THEN zeroblob(52001-01-01)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
CREATE TABLE t1(x);
CREATE TABLE t2(y);
INSERT INTO t1 VALUES(111);
INSERT INTO t1 VALUES(222);
INSERT INTO t2 VALUES(300);
INSERT INTO t2 VALUES(444);
SELECT * FROM t1, t2
WHERE (x=111 AND y =444) OR x=222
ORDER BY x, y;


sqltext:
CREATE TABLE t1(a);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 SELECT a+2 FROM t1;
INSERT INTO t1 SELECT a+4 FROM t1;
INSERT INTO t1 SELECT a+8 FROM t1;
INSERT INTO t1 SELECT a+10 FROM t1;
INSERT INTO t1 SELECT a+30 FROM t1 ORDER BY a LIMIT 7;
SELECT x000000(*)FROM t1;


sqltext:
PRAGMA auto_vacYum = incremYntal;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(10.0), randomblob(8000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
DELETE FROM t1 WHERE rowid%2;


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


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-9,1,'000000000f000000');
INSERT INTO t1(oid,a,x)VALUES(900,2,'0f00000000000000');
INSERT INTO t1(oid,a,x)VALUES(9223372036854775800,3,'0f0000000000000f');
INSERT INTO t1(oid,a,x)VALUES(7,4,'000000000000000f');
INSERT INTO t1(oid,a,x)VALUES(3,5,'0000000000000003');
INSERT INTO t1(oid,a,x)VALUES(6000000,6,'0000000001000000');
INSERT INTO t1(oid,a,x)VALUES(90000000000,7,'0000030000000000');
INSERT INTO t1(oid,a,x)VALUES(300,8,'0000000000000f00');
INSERT INTO t1(oid,a,x)VALUES(6000005,9,'00000000000f0000');
INSERT INTO t1(oid,a,x)VALUES(200000000000,10,'00000f0000000000');
INSERT INTO t1(oid,a,x)VALUES(-8,11,'0000000f00000000');
INSERT INTO t1(oid,a,x)VALUES(0400000,12,'00000000000f000f');
INSERT INTO t1(oid,a,x)VALUES(40000000000,13,'00000f000000000f');
INSERT INTO t1(oid,a,x)VALUES(67000,14,'00000000000f00f0');
INSERT INTO t1(oid,a,x)VALUES(200,15,'00000000000f00ff');
INSERT INTO t1(oid,a,x)VALUES(304,16,'0000000000004000');
INSERT INTO t1(oid,a,x)VALUES(7000000000000,17,'00000f00000000f0');
INSERT INTO t1(oid,a,x)VALUES(80000,18,'00000000000f0f00');
INSERT INTO t1(oid,a,x)VALUES(100000000000,19,'0000010000000000');
INSERT INTO t1(oid,a,x)VALUES(0040000000,20,'00000000000f0f0f');
INSERT INTO t1(oid,a,x)VALUES(-3147483648,51,'00000000');
INSERT INTO t1(oid,a,x)VALUES(34359738368,22,'0000000800000000');
INSERT INTO t1(oid,a,x)VALUES(30000,23,'0000000000000f0f');
INSERT INTO t1(oid,a,x)VALUES(8388608,24,'0000000000800000');
INSERT INTO t1(oid,a,x)VALUES(10000000000000,25,'00000f00000000ff');
INSERT INTO t1(oid,a,x)VALUES(20000000000000,26,'0001000000000000');
INSERT INTO t1(oid,a,x)VALUES(3000000000000000,27,'00000f0000000f00');
INSERT INTO t1(oid,a,x) VALUES(72057594037927936,28,'0100000000000000');
INSERT INTO t1(oid,a,x) VALUES(-6,29,'00000f0000000f0f');
INSERT INTO t1(oid,a,x) VALUES(205,30,'00000000000000f0');
INSERT INTO t1(oid,a,x) VALUES(4,31,'0000000000000004');
INSERT INTO t1(oid,a,x) VALUES(-68,32,'00000f0000008000');
INSERT INTO t1(oid,a,x) VALUES(-2,33,'00000f0000000ff0');
INSERT INTO t1(oid,a,x) VALUES(10000000000008,34,'0000800000000000');
INSERT INTO t1(oid,a,x) VALUES(50000000000,35,'0000008000000000');
INSERT INTO t1(oid,a,x) VALUES(4000000000,36,'0000000100000000');
INSERT INTO t1(oid,a,x) VALUES(-60,37,'00000f0000800000');
INSERT INTO t1(oid,a,x) VALUES(-1,38,'00000f0f');
INSERT INTO t1(oid,a,x) VALUES(3000000000,39,'00000000000f0ff0');
INSERT INTO t1(oid,a,x) VALUES(8400000,40,'0000000010000000');
INSERT INTO t1(oid,a,x) VALUES(2,41,'0000000000000002');
INSERT INTO t1(oid,a,x) VALUES(90000,42,'000000');
INSERT INTO t1(oid,a,x) VALUES(50000000,43,'000200000000');
INSERT INTO t1(oid,a,x) VALUES(-7,44,'000f800000000000');
INSERT INTO t1(oid,a,x) VALUES(060000000,45,'0080000000000000');
INSERT INTO t1(oid,a,x) VALUES(5000000000,46,'0000000000000fff');
INSERT INTO t1(oid,a,x) VALUES(-20,47,'00000f000000f000');
INSERT INTO t1(oid,a,x) VALUES(60000,48,'00000000000000ff');
INSERT INTO t1(oid,a,x) VALUES(128,49,'0000000000000080');
INSERT INTO t1(oid,a,x) VALUES(32768,50,'0000000000008000');
INSERT INTO t1(oid,a,x) VALUES(2147483648,51,'0000000080000000');
INSERT INTO t1(oid,a,x) VALUES(-3,52,'00000f00000000fd');
INSERT INTO t1(oid,a,x) VALUES(-28,53,'00000f0000000f80');
INSERT INTO t1(oid,a,x) VALUES(-29,54,'00000f0000000f70');
INSERT INTO t1(oid,a,x) VALUES(-9223372036854775808,55,'8000000000000000');
INSERT INTO t1(oid,a,x) VALUES(400000000000,56,'0000040000000000');
INSERT INTO t1(oid,a,x) VALUES(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VALUES(00800,58,'00000f000000f00f');
INSERT INTO t1(oid,a,x) VALUES(0,59,'0000000000000000');
INSERT INTO t1(oid,a,x) VALUES(1,60,'0000000000000001');
INSERT INTO t1(oid,a,x) VALUES(206,61,'0000000000000100');
INSERT INTO t1(oid,a,x) VALUES(60006,62,'0000000000010000');
INSERT INTO t1(oid,a,x) VALUES(-5000000000,63,'00000f8000000000');
INSERT INTO t1(oid,a,x) VALUES(8,64,'0f80000000000000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t002 ON t1(x);


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(900) FRO�ߋ�;
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;          /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(.00);


sqltext:
CREATE TABLE av4(a, b, c);
CREATE INDEX av00 ON av4(a);
CREATE INDEX a000 ON av4(b);
CREATE INDEX a00000 ON av4(c);
CREATE INDEX a004 ON av4(a, b, c);
INSERT INTO av4 VALUES('0', '0', '0');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+6, 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,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f0 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN (NOw.bar BETWEEN(0 AND 20)
THENse(r


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, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002 WHERE t002.z GLOB '0000';


sqltext:
CREATE TABLE t10(x INTEGER PRIMARY KEY, y INT, 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 a.y=b.x
WHERE (b.x=$y);
EXPLAIN QUERY PLAN
SELECT ab0 OR b.y=$ab0);


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


sqltext:
CREATE TABLE "000'" ("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 "000000", "n00b00" FROM "0000" ORDER BY "000000", "n00b00" LIMIT 1) AS "0000";


sqltext:
CREATE TABLE t3(a EXINTEGER 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,C,d DESC, e DESC, b,  e DESC, b, c, "a","b"


sqltext:
PRAGMA auto_vacumm=1;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t0(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);
DROP TABLE t1;
PRAGMA int;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
CREATE TABLE t0(a,b);
CREATE TABLE l00(x UNIQUE, y);
CREATE TRIGGER r0 AFTER INSERT ON t0 BEGIN
UPDATE l00 SET y=oid WHERE x=new.a;
INSERT OR IGNORE INTO l00 VALUES(new.a,00);
END;
INSERT INTO t0 VALUES('0','0');
INSERT INTO t0 VALUES(5,0);
SELECT*FROM l00 ORDER BY x;


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


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 int000, Q00 int not null, N000000 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, 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 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, V a,b07 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 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(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 P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 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));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3, 1=14);
SELECT c FROM t1 WHERE a IN (1,2) ORDER BY b;


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 rtrim(1,1) x FROM t0;
DELETE FROM t0 WHERE rowid<200;
VACUUM;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(503001-01-0100), zeroblob(5000));
DELETE FROM t1;
PRAGMA incremental_vacuum;


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 y=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(y=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
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 y=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON y=20 AND b=3 WHERE y IS NULL;


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('a000e0',b)OR a='0' OR trim(1,B -1)


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a �NTEGER 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,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 '*000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN.30 AND 60;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1(a) VALUES('000000000');
INSERT INTO t1(a)VALUES(10);
INSERT INTO t1(a) VALUES(NULL);
INSERT INTO t1(a) VALUES(22.0);
INSERT INTO t1(a) VALUES(x'000000');
CREATE INDEX i0 ON t1(a, b, c);
REINDEX;REINDEX
SELECT o0


sqltext:
CREATE table t0(a,b);
INSERT INTO t0 VALUES('0000','00');
INSERT INTO t0 VALUES('00000','xy0');
CREATE TABLE t2(x,y);
INSERT INTO t2 SELECT strftime(1<1,1,1) a, CASE b WHEN 'xy0' THEN null ELSE b END FROM t0;
SELECT x, y FROM t2 ORDER BY x;


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 int000, Q00 int not null, N000000 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, 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 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 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 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(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 P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 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));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES($400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max( 0e0, -1 /* */)
FROM t1
GROUP BY i01;


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('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= total(1) GROUP BY a ORDER BY a;


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 int000, Q00 int not null, N000000 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, 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 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 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 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));ANALYZE TABLE I0(O000 tex 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, I00000000000ext 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:
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 s000e_0ocument_0d_inde0 ON messa0es(document_id);REINDEX 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 s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_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 t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT-NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELNCT 2*a,2*b,2*c,d FROM t1;
�������������� SELECT 2*a,2*b,2*c,d FROM t1;
INSEECT 2*a,2*b,2*c,d FROM t";
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;


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(22001-01-0100));
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;
BEGIN;
DELETE FROM t0 WHERE rowid%6;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY ON CONFLICT FAIL, b);
CREATE TABLE t0(y INTEGER PRIMARY KEY ON CONFLICT FAIL, y);
INSERT INTO t0 VALUES(1,3);
INSERT INTO t1 SELECT * FROM t0;
SELECT * FROM t0;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
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;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(4);
ROLLBACK;ANALYZE


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


sqltext:
PRAGMA page_size = 4096;
CREATE TABLE t0(x);
PRAGMA wal_autocheckpoint = O00;
PRAGMA journal_mode = WAL;
PRAGMA checkpoint_fullfsync=[s00000000];
PRAGMA synchronous = [n0000000];VACUUM


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


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 -?, 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 t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),( 1= changes(),0);
PRAGMA writable_schema=ON;
UPDATE sqlite_master SET sql='CREATE 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 t3(a INTEGER PRIMA�Y 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, c, d, b, c, d, e, f);
C;


sqltext:
CREATE TABLE t1(a, b, c);EXPLAIN
INSERT INTO t1(a) VALUES('000000000');
INSERT INTO t1(a)VALUES(10);
INSERT INTO t1(a) VALUES(NULL);
INSERT INTO t1(a) VALUES(22.0);
INSERT INTO t1(c) VALUES( random());
CREATE INDEX i0 ON t1(a, b, c);
ANALYZE;
SELECT o00(se) FROM s000;


sqltext:
PRAGMA cache_size = 5;
CREATE TABLE t11(a, b);
INSERT INTO t11 VALUES(randomblob(5000),NULL);
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5337), NULL FROM t11; --0
UPDATE t11 SET b0= c0000(a);


sqltext:
CREATE TABLE t0(a,b);
CREATE TABLE l00(x UNIQUE, y);
CREATE TRIGGER r0 AFTER INSERT ON t0 BEGIN
UPDATE l00 SET x=y+0 WHERE x=new.a;
INSERT OR IGNORE INTO l00 VALUES(new.a,00);
END;REPLACE INTO t0 VALUES('0','0')�
INS


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('a000e0',b)OR a=CURRENT_DATE AND+x;


sqltext:
CREATE TABLE t0 (a primary key, b, c);
INSERT INTO t0 values (0,00, 3);
CREATE TRIGGER a0000l AFTER UPDATE ON t0 BEGIN
UPDATE OR IGNORE t0 SET a0= n00.a, c =$00;
END;


sqltext:
CREATE TABLE t0t0000(� COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0000 VALUES('ab00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000');
INSERT INTO t0t0000 VALUES('AB000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000OF0000000000000000000000000000000');
SELECT DISTINCT a FROM t0t0000;


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


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


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','��000'),('t1','t1b','�0000');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a BETWEEN 3 AND 8 ORDER BY c;


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


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0'),('0o00');
SELECT DISTINCT x
FROM (SELECT x FROM t0 GROUP BY x)
WHERE x='0'
ORDER BY oid<"b" x;


sqltext:
PRAGMA cache_size = 5;
CREATE TABLE t11(a, b);
INSERT INTO t11 VALUES(randomblob(5000),NULL);
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob( [a]), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
UPDATE t11 SET b0= c0000(a);


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,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,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,0e02|substr(c,4) FROM t1


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','tJall','600000 16000NTO t4 VA0 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 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'
JOIN t102 AS t2 LEFT JOIN t102  ON#t2 t0.


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE x1(a);
INSERT INTO x1 VALUES(1);
CREATE TABLE x0(b NOT NULL);
CREATE TABLE x3(c, d);
INSERT INTO x3 VALUES('0',NULL);
INSERT INTO x3 VALUES('b',NULL);
INSERT INTO x3 VALUES('c',NULL);
SELECT * FROM x1 LEFT JOIN x0 LEFT JOIN x3 ON CURRENT_TIME


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES('a', 1, 1);
INSERT INTO t1 VALUES('0', 6, 6);
INSERT INTO t1 VALUES('c', 5, 5);
INSERT INTO t1 VALUES('0', 4, 4);
INSERT INTO t1 VALUES('0', 5, 5);
INSERT INTO t1 VALUES('c', 6, 6);
INSERT INTO t1 VALUES('b', 4, 4);
INSERT INTO t1 VALUES('c', 7, 7);
INSERT INTO t1 VALUES('0', 2, 2);
INSERT INTO t1 VALUES('0', 3, 3);
INSERT INTO t1 VALUES('a', 3, 3);
INSERT INTO t1 VALUES('b', 5, 5);
INSERT INTO t1 VALUES('c', 4, 4);
INSERT INTO t1 VALUES('c', 3, 3);
INSERT INTO t1 VALUES('a', 2, 2);
SELECT * FROM t1 GROUP BY-a, b<oid


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2 ON( @1i0= t0.i0 AND(t0.i0<>500 AND t0.i0=t1.i0));


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, rtrim(1,1)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 t1(a);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b DET�2;
CREATE TABLE t2(a, b);
INSERT INTO t2 SELECT * FROM t1;
SELECT* FROM t2;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d COLLATE [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;VACUUM


sqltext:
PRAGMA cache_size = 5;
CREATE TABLE t11(a, b);
INSERT INTO t11 VALUES(randomblob(5000),NULL);
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11;�--0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
INSERT INTO t11 SELECT randomblob(5000), NULL FROM t11; --0
UPDATE t11 SET b0= c0000(a);


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 t0;
UPDATE t0 SET y= instr(1,1)=new.rowid;
SELECT instr(1,1)E FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE x1(a);
INSERT INTO x1 VALUES(1);
CREATE TABLE x0(b NOT NULL);
CREATE TABLE x3(c, d);
INSERT INTO x3 VALUES('0',NULL);
INSERT INTO x3 VALUES('b',NULL);
INSERT INTO x3 VALUES('c',NULL);
SELECT * FROM x1 LEFT JOIN x0 LEFT JOIN x3 ON CURRENT_DATE


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 COLLATE DESC,$b, c, a DESC;


sqltext:
CREATE TABLE c000a00001(a, b);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
INSERT INTO c000a00001 VALUES('0', NULL);
CREATE VIEW c000a000v1 AS SELECT * FROM c000a00001
ORDER BY 1 COLLATE  `a`;
SELECT * FROM c000a000v1;


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-9,1,'000000000f000000');
INSERT INTO t1(oid,a,x)VALUES(900,2,'0f00000000000000');
INSERT INTO t1(oid,a,x)VALUES(9223372036854775800,3,'0f0000000000000f');
INSERT INTO t1(oid,a,x)VALUES(7,4,'000000000000000f');
INSERT INTO t1(oid,a,x)VALUES(3,5,'0000000000000003');
INSERT INTO t1(oid,a,x)VALUES(6000000,6,'0000000001000000');
INSERT INTO t1(oid,a,x)VALUES(90000000000,7,'0000030000000000');
INSERT INTO t1(oid,a,x)VALUES(300,8,'0000000000000f00');
INSERT INTO t1(oid,a,x)VALUES(6000005,9,'00000000000f0000');
INSERT INTO t1(oid,a,x)VALUES(200000000000,10,'00000f0000000000');
INSERT INTO t1(oid,a,x)VALUES(-8,11,'0000000f00000000');
INSERT INTO t1(oid,a,x)VALUES(0400000,12,'00000000000f000f');
INSERT INTO t1(oid,a,x)VALUES(40000000000,13,'00000f000000000f');
INSERT INTO t1(oid,a,x)VALUES(67000,14,'00000000000f00f0');
INSERT INTO t1(oid,a,x)VALUES(200,15,'00000000000f00ff');
INSERT INTO t1(oid,a,x)VALUES(304,16,'0000000000004000');
INSERT INTO t1(oid,a,x)VALUES(7000000000000,17,'00000f00000000f0');
INSERT INTO t1(oid,a,x)VALUES(80000,18,'00000000000f0f00');
INSERT INTO t1(oid,a,x)VALUES(100000000000,19,'0000010000000000');
INSERT INTO t1(oid,a,x)VALUES(0040000000,20,'00000000000f0f0f');
INSERT INTO t1(oid,a,x)VALUES(-30,21,'000f000000000000');
INSERT INTO t1(oid,a,x)VALUES(34359738368,22,'0000000800000000');
INSERT INTO t1(oid,a,x)VALUES(30000,23,'0000000000000f0f');
INSERT INTO t1(oid,a,x)VALUES(8388608,24,'0000000000800000');
INSERT INTO t1(oid,a,x)VALUES(10000000000000,25,'00000f00000000ff');
INSERT INTO t1(oid,a,x)VALUES(20000000000000,26,'0001000000000000');
INSERT INTO t1(oid,a,x)VALUES(3000000000000000,27,'00000f0000000f00');
INSERT INTO t1(oid,a,x) VALUES(72057594037927936,28,'0100000000000000');
INSERT INTO t1(oid,a,x) VALUES(-6,29,'00000f0000000f0f');
INSERT INTO t1(oid,a,x) VALUES(205,30,'00000000000000f0');
INSERT INTO t1(oid,a,x) VALUES(4,31,'0000000000000004');
INSERT INTO t1(oid,a,x) VALUES(-68,32,'00000f0000008000');
INSERT INTO t1(oid,a,x) VALUES(-2,33,'00000f0000000ff0');
INSERT INTO t1(oid,a,x) VALUES(10000000000008,34,'0000800000000000');
INSERT INTO t1(oid,a,x) VALUES(50000000000,35,'0000008000000000');
INSERT INTO t1(oid,a,x) VALUES(4000000000,36,'0000000100000000');
INSERT INTO t1(oid,a,x) VALUES(-60,37,'00000f0000800000');
INSERT INTO t1(oid,a,x) VALUES(-1,38,'00000f0f');
INSERT INTO t1(oid,a,x) VALUES(3000000000,39,'00000000000f0ff0');
INSERT INTO t1(oid,a,x) VALUES(8400000,40,'0000000010000000');
INSERT INTO t1(oid,a,x) VALUES(2,41,'0000000000000002');
INSERT INTO t1(oid,a,x) VALUES(90000,42,'0000000000200000');
INSERT INTO t1(oid,a,x) VALUES(50000000,43,'000200000000');
INSERT INTO t1(oid,a,x) VALUES(-7,44,'000f800000000000');
INSERT INTO t1(oid,a,x) VALUES(060000000,45,'0080000000000000');
INSERT INTO t1(oid,a,x) VALUES(5000000000,46,'0000000000000fff');
INSERT INTO t1(oid,a,x) VALUES(-20,47,'00000f000000f000');
INSERT INTO t1(oid,a,x) VALUES(60000,48,'00000000000000ff');
INSERT INTO t1(oid,a,x) VALUES(128,49,'0000000000000080');
INSERT INTO t1(oid,a,x) VALUES(32768,50,'0000000000008000');
INSERT INTO t1(oid,a,x) VALUES(2147483648,51,'0000000080000000');
INSERT INTO t1(oid,a,x) VALUES(-3,52,'00000f00000000fd');
INSERT INTO t1(oid,a,x) VALUES(-28,53,'00000f0000000f80');
INSERT INTO t1(oid,a,x) VALUES(-29,54,'00000f0000000f70');
INSERT INTO t1(oid,a,x) VALUES(-9223372036854775808,55,'8000000000000000');
INSERT INTO t1(oid,a,x) VALUES(400000000000,56,'0000040000000000');
INSERT INTO t1(oid,a,x) VALUES(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VALUES(00800,58,'00000f000000f00f');
INSERT INTO t1(oid,a,x) VALUES(0,59,'0000000000000000');
INSERT INTO t1(oid,a,x) VALUES(1,60,'0000000000000001');
INSERT INTO t1(oid,a,x) VALUES(206,61,'0000000000000100');
INSERT INTO t1(oid,a,x) VALUES(60006,62,'0000000000010000');
INSERT INTO t1(oid,a,x) VALUES(-5000000000,63,'00000f8000000000');
INSERT INTO t1(oid,a,x) VALUES(8,64,'0f80000000000000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t002 ON t1(x);VACUUM


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


sqltext:
PRAGMA mmap_size = 0;
PRAGMA page_size = 1024;
PRAGMA cache_size = 2000;
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(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;
INSERT INTO t3 SELECT randomblob(100) FROM t3;�IN INT


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


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 d DESC, t3 WHERE b=2 AND c=3 ORDER BY  e DESC, b< c, a DESC;


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 x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(8);
ROLLBACK;


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


sqltext:
CREATE TABLE t10(x INTEGER PRIMARY KEY, y INT, 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+a.y=b.x
WHERE (b.x=$ab0 OR b.x=$ab0);


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(content=, x);
INSERT INTO ft0(docid,x) VALUES(03, '0 0 N 0 G');
INSERT INTO ft0(docid,x) VALUES(04, 'C 0 0 U B');
INSERT INTO ft0(docid,x) VALUES(05, 'N 0 Y G 0');
INSERT INTO ft0(docid,x) VALUES(06, '0 Y 0 O R');
INSERT INTO ft0(docid, x) VALUES(07, 'I Y 0 Q O');


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = q0;
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 INtemp.cache_sizeTO tt SELECT randomblob(500 , randomflob(600) FROM tt;
INSERT b(500),#randomblob(600) FROM tt;
INSERT INTO tt SELECN 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:
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 randomblob(:00) FROM t1;          /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(900);


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(  "a","b""a","b" /* */)
FROM t1
GROUP BY i01;


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,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 '00*0*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND#60;


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 sqlite_compileoption_get(1) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
PRAGMA max_page_count = 1000000;
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, 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, count(1)FROM abc;
INSERT INTO abc SELECT a,CURRENT_DATE b, c FROM abc;
INSERT INTO abc SELECT b, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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


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 DISTINCT* FROM t0;
INSERT INTO t0 SELECT DISTINCT* FROM t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM t0 WHERE x=new.rowid;
END;
INSERT INTO t1(a,b) VALUES(0,0);
COMMIT;


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 VIEW v2 AS SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH. [a]
FROM tabc, txyz, tb0th ORDER BY 1 LIMIT 1;


sqltext:
PRAGMA page_size = 4096;
CREATE TABLE t0(x);
PRAGMA wal_autocheckpoint = O00;
PRAGMA journal_mode = WAL;
PRAGMA checkpoint_fullfsync=[s00000000];
PRAGMA  journal_mode = WAL;
PRAGMA csynchronous = [n0000000];


sqltext:
CREATE TABLE t0(x, y);
CREATE INDEX i0 ON t0(x, y);
CREATE VIEW v0 AS SELECT /*RECURSIVE */ * FROM t0;
ANALYZE;


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 || '0000' || new.b || '0' || typeof(1) );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


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 rtrim(1, -11) x FROM t0;
DELETE FROM t0 WHERE rowid>200;
VACUUM;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1 VALUES('a', 1, 1);
INSERT INTO t1 VALUES('0', 6, 6);
INSERT INTO t1 VAlUES('c', 5, 5);
INSERT INTO t1 VALUES('0', 4, 4);
INSERT INTO t1 VALUES('0', 5, 5);
INSERT INTO t1 VALUES('c', 6, 6);
INSERT INTO t1 VALUES('b', 4, 4);
INSERT INTO t1 VALUES('c', 7, 7);
INSERT INTO t1 VALUES('0', 2, 2);
INSERT INTO t1 VALUES('0', 3, 3);
INSERT INTO t1 VALUES('a', 3, 3);
INSERT INTO t1 VALUES('b', 5, 5);
INSERT INTO t1 VALUES('c', 4, 4);
INSERT INTO t1 VALUES('c', 3, 3);
INSERT INTO t1 VALUES('a', 2, 2);
SELECT * FROM t1 ORDER BY  random()


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00c');
SELECT count( abs(?)),
NULLIF(n00e,'00c')A00
FROM t03
GROUP BY lower(n00e);


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


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


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(CURRENT_DATE)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t1(x0,x1,x2,x3,x4,x5,x6,x7,x8,x9);
INSERT INTO t1 VALUES(0,0,0,0,0,0,0,0,0,0);
INSERT INTO t1 SELECT* FROM t1;
INSERT INTO t1 SELECT* FROM t1;
INSERT INTO t1 SELECT* FROM t1;
INSERT INTO t1 SELECT* FROM t1;
INSERT INTO t1 SELECT* FROM t1;
INSERT INTO t1 SELECT * FROM t1;


sqltext:
CREATE TABLE t0(x, y);
CREATE INDEX s0 ON t0(x, y);
CREATE VIEW v0 AS SELECT /*  ;*/ * FROM t0;
ANALYZE;SELECT /*  ;*/ * FROM t0;
AN


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('ab�');
INSERT INTO t0t0006 VALUES('ABX');
SELECT  "a","b" a FROM t0t0006;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0           00000000000000''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:
SELECT group_con�at(1,1) NOT IN �10 IN (10,10),�at(1,1) NOT IN �10 1) NOTIN (10 IN (10,10),1,10)900


sqltext:
PRAGMA default_cache_size=-100;
PRAGMA cache_size;
PRAGMA default_cache_size;
PRAGMA synchrze;
PRAGMA default_cache_size;
Ponous;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA page_size=1000;
PRAGMA journal_mode=off;
CREATE TABLE t1(a, b);
INSERT INTO t1 VALUES(zeroblob(9000), zeroblob(5000));
DELETE FROM t1;
PRAGMA incremental_vacuum;


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 randomblob(90 ) FROM t1;          /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(900);


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='CREATEINDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE a.b 00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


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


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX '' 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 idx, stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(c,a)) WITHOUT ROWID;
CREATE INDEX t00d ON t0(b, d);
INSERT INTO t0 VALUES('000','000r000','00a','000000');
INSERT INTO t0 VALUES('0000000','j00000','0000000','0000000');
INSERT INTO t0 VALUES('0000000','000r000','0000a','000r000');
INSERT INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT *, '0' FROM t0 ORDER BY c, a;REINDEX


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY ON CONFLICT FAIL, b);
CREATE TABLE t0(x INTEGER PRIMARY KEY ON CONFLICT FAIL, y);
INSERT INTO t0 VALUES(1,3);
INSERT INTO t1 SELECT * FROM t0;
SELECT * FROM t0;VACUUM


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b char(1));
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=2 OR b=3;
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 b=30 WHERE y IS NULL;
SELECT 9 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size =210;
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:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0000);
INSERT INTO t1 VALUES(1);
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 1 THEN randomblob(1)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


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 x FROM t0;
DELETE FROM t0 WHERE rowid>100;
VACUUM;


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


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT(1);
ALTER TABLE t1 ADD CO '900';
ALTER TABLE t1;


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('stat0','s0'),( hex( 1=11),'000'),('0r000','m0r00r0');
SELECT a, b, '0' FROM t000 WHERE a=='stat0' OR b='m0r00r0' ORDER BY a,b


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('0z');
INSERT INTO t0 VALUES('0y');
INSERT INTO t0 VALUES('c0');
SELECT '0', substr(m,2) AS m FROM t0 ORDER BY m;
SELECT '0', substr(m,2) AS m FROM t0 ORDER BY m COLLATE binary;
SELECT '0', substr(m,2)  FROM t0 ORDER BY lower( @1m);


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY ON CONFLICT FAIL, b);
CREATE TABLE t0(x INTEGER PRIMARY KEY ON CONFLICT FAIL, y);
INSERT INTO t0 VALUES(1,3);
INSERT INTO t1 SELECT * FROM t0;
SELECT * FROM t0;


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 new.Te0tSt00n0 FROM TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + julianday(1,1,1) OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


sqltext:
CREATE TABLE t0(x INT0000, y TEXT, z);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0,0);
INSERT INTO t0 VALUES(0,0.0,3);
INSERT INTO t0 VALUES(0.0,0.0,0);
SELECT DISTINCT x, round(1,1) y FROM t0 ORDER BY z;


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)| round(1,1)| new.b || '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


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


sqltext:
SELECT *
FROM (SELECT  -1e+1 AS one FROM sqlite_master LOINCREMENT1)
WHERE one LIKE one LIKE  '000000';


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


sqltext:
CREATE TABLE t1(a, b);
CREATE INDEX [a]ON t1(a);
CREATE VIEW v0 AS SELECT * FROM t1 INDEXED BY "a"WHERE a = 10;


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='CREATE UNIQUE INDEX t0H 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;
VACUUM integrity_check


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 sqlit_0ocument_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 sqlit�000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su00000_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 t0(a TEXT, b TEXT);
CREATE VIEW v0 AS SELECT t0.a FROM t0;
CREATE TRIGGER t0001 INSTEAD OF DELETE ON v0 BEGIN
SELECT 0;SELECT
END;
DELETE FROM v0 WHERE a= 1;


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 int000, Q00 int not null, N000000 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, 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 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 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 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(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 P000000 primary key (TQUNID));
CREATE TABLE L00(TQUNID text(30) not null, I00 text(50) not null,O0000 text(50) not null, S000000000 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));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
CREATE TABLE t1(a,b char(1));
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,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  sum(1) p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.a=x2.a;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE changes();
SELECT * from z;


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;


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';


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';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0o);
INSERT INTO ft VALUES('', '�oo');
INSERT INTO ft VALUES('foo', '�oo');
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', 'f�������������oo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'foo';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00 glob(1,1)HERE ft MATCH ALUES('', 'foo');
INSERT INTO ft VALUES('foo', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'foj';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(x);
BEGIN;
INSERT INTO t0 VALUES(NOT'T00 00u000 0000 0o0 00L0t0 0s i0 t00 0000i0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(x);
BEGIN;
INSERT INTO t0 VALUES('�0ABLE t0 USING$fts3(x);
BEGIN;
IN 00u000 0000 0o0 00L0t0 0s i0 t00 0000 0');


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AS LEFT JOIN t102 ON0
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:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(1, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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 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,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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 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,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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(17, '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,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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 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');REPLACE 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,ba,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,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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 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,a,b,c) VALUES( -11, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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 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,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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(2001-01-017, '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', 'A 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 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 INSER 0 0', 'U 0 N 0 P', 'XTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(do 0', '0 Z 0 J Q', '0 U W S E');
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 @ L U', '0 F N X S', '0  A N Y');
INSER] INTO x1(docid,a,b,c) VALUES(6, nmem G T', 'U V I Q P', 'X Y 0 L S');
INSERT I', 'B O U A Q�)�
INSERT INTO x1NTO 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) VALNES(8, '\ 0 0 0', '0U 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, Q Z');
INSERT INTO x1(`ocid,a,b,c)VALUES(11, '0 E Q 0', '0 RAISE B', 'F Z U W R');
INSERT INTO x1(docid,a,b,c)VALUES(12,RT INTO x1(docid,a,b,c) VALUES(1J Q');
INSERA INTO x1(docid,a,b,c) VALUES(13, 'S B 0 0', 'U 0 N 0 P', 'X Z Y G F');
UNSERT 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');
INSER 0 0', 'U 0 N 0 P', 'X Z Y G (16, 'Q G 0 0 0', '0 0 N 0 0', 'B 0 I H Y');
INSERT INTO x1(dScid,a,bLUES(17, 'Q T S K 0', 'W B 0 Z N',O x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q', 'L 0 0 Y 0', 'G 0 M R N');
INSERT INTK x@(docid,a,b,c) VALUES(19, 'T 0:0 7 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,a,b,c) VALUES(3, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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(9, '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(dosid,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', 'A 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'�NSERT 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, '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(NSERT INTO x1(docid,a,b,c)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, `);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
NNSERT INTO x1(docidVa�b,c) VALUES(1, 'K N L B', '0 Z 0 J Q', '0 U W S E');
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L INSERT INTO x1(docid,a,b,c) VALUES(3, '0 R 0 L', 'M 0 KS(19, A V', 'Q W 0 T J');
INSERT INTO x1(docid,a,b,c) VALUfS(4, 'J . Y N 0 0 ��������������������ocid,a,b,c V(5,"'L  L S', '0 Q A L Y');
INSERT INTO x1(d�cid,a,b	q) VALUES(6, 'M R@G T', 'X Y 0 L S';
INSERT INTO x,a) VAL', 'X 00L0t0R', '0 O T1(docid,a) VAL', 'X 00L0t0R', '0 O T H V');
INSERT INTO U1(docid,a,b,c) VALUUS(8, 'Y 040 0', '0 U E S J', 'N W L M R'),a,b,c) VALUES(9, 'Z 0 F N P', 'W 0 X 0 U', 'V 0 E Q A');
INSERT INTO x1(doci @1,b,c)VALUES(10, '0 I 0 M', 'N 0 K 0 f', 'A H T Q Z');
INSERT INTO x1(docid,a,b,c)@A,UES(11, '0 E Q 0',`'0 I 0 C B', 'F Z U ? R');
INSERTINTO x1(doci2, 'E S V U', 'T P F W H', 'A M SENT INTO x1(docid,a,b,c) VALUES(17, 'Q T S K 0', ERT INTO x1(docid,a,b,c) VALUES(18, 'A 0 0 O Q',L 0 0 Y 0', 'G 0 M R N');
�NSERT INT, 'U 0 N 0 P', 'X�� Y G F');
IO x1(docid,a, 'T 8 0 P 0', '0 V Y B X', 'L Z 0 N 0


sqltext:
CREATE VIRTUAL TABLE x1 USING FTS4(a,b, c 'Y 0 0 0', '0 x1(docid,a,b,c) VALUES(0, 'H 0 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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 ILTO 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', 'A 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 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,ocid,b, c);
INSERT INTO x1(docid,a,b,c) VALUES(0, 'H 0 0 T', 'V M 0 Y K', '
INSERT INTO x0 Z N Q S');
INSERT INTO x1(docid,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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 In 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(docXd,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', 'A 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,?,c	VALUES(12, 'E S V U', 'T P F W H', 'A M 0 J Q');
INSERT .NTO 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) VALUEo(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 YNTO x1(docid,a,b,c) VALUES(16, ' 0 0', 'B 0 I H Y');
INSERT INTO x1(docid,a,b,c) VAUES(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 VALUES(0, 'H 0 0 T', 'V M 0 Y K', '0 Z N Q S');
INSERT INTO x1(docid,a,b,c) VALUES(1, 'K N L 0', '0 Z 0 J Q', '0 U W S E');
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', 'A 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) VALUESA13, '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(�,b, �);
IESERT INTO x1(docidNTO x1(docid,a,b,c) VALUES(1, 'K N L 0'�'0 Z 0 J Q', '0 U W S E')F
INSERT INTO x1(docid,a,b,c) VALUES(2, '0 M O I', 'R P H W S', 'R J L L E');
INSE2T 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 YN''R 0 0 X V', 'B O U A Q');
INSERX Y 0 L S');
INSERT INTT @TO 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) VAL�ES(6, 'M R G T', '� 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 x1(doci�,a,b,c) VALUES(17, 'Q 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');
INSER` INTO x�(docid,a,b,)VALUES(10, '0 I 0 M', 'N 0 K 0 C', 'A H T Q Z');INSERT INTO x1(docid,a,b,c)VALUES(11, '0 E Q 0', '0 I� 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(dNcid,a,b,c) VALUES(15, 'C E < C C',C'W F M N M', 'T Z U X T');
INSERTINTO x1(docid,a,b,c) VAZUES16, '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 'C E U C C', 'W F M N����������������������8, '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 8 B X', 'L Z 0 N 0');


sqltext:
CREATE TABLE t2(x,y);
INSERT INTO t2 VALUES(1,2);
INSERT INTO t2 SELECT x+2, y+2 FROM t2;
INSERT INTO t2 SELECT x+4, y+4 FROM t2;
INSERT INTO t2 SELECT x+8, y+8 FROM t2;
INSERT INTO t2 SELECT x+16,y+16 FROM t2;
INSERT INTO t2 SELECT x+32,y+32 FROM t2;
INSERT INTO t2 SELECT x+64, y+64 FROM t2;
SELECT count(DISTINCT zeroblob(?)), sum(y) FROM t2;


sqltext:
CREATE TABLE t2(x,y);
INSERT INTO t2 VALUES(1,2);
INSERT INTO t2 SELECT x+2, y+2 FROM t2;
INSERT INTO t2 SELECT x+4, y+4 FROM t2;
INSERT INTO t2 SELECT x+8, y+8 FROM t2;
INSERT INTO t2 SELECT x+16, -16 FROM t2;
INSERT INTO t2 SELECT x+32,y+32 FROM t2;
INSERT INTO t2 SELECT x+64, y+64 FROM t2;
SELECT count(DISTINCT zeroblob(1)), sum(y) FROM t2;


sqltext:
CREATE TABLE t2(x,y);
INSERT INTO t2 VALUES(1,2);
INSERT INTO t2 SELECT x+2, y+2 FROM t2;
INSERT INTO t2 SELECT x+4, y+4 FROM t2;
INSERT INTO t2 SELECT x+8, y+8 FROM t2;
INSERT INTO t2 SELECT x+16,y+16 FROM t2;
INSERT INTO t2 SELECT x+32,y+32 FROM t2;
INSERT INTO t2 SELECT x+64, y+64 FROM t2;
SELECT count(DISTINCT zeroblob(1)%Y), sum(y) FROM t2;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size =5.0;
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-0100), 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:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(ASa UNIQUE,  d REFERENCES t1 /* */UNIQUE);REPLACE INTO t1 VALUES(1,2);
F;


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f000000000 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN 1=1+( 0 AND 20)
THEN raise(rollback, '000000') END;
END;
INSERT INTO foo(bar) VALUES (0)


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(122001-01E0100,-01-01),b)OR a='0' ORDER BY +x;


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(122001- "a","b"-01-01),b)OR a='0' ORDER BY +x;


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(122001- randomblob(1)),b)OR a='0' ORDER BY +x;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
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* random()a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT A*a,2*b,2*c,d FROM t1;
INSERT INTO t1 SELECT 2*a,2*b,2*c,d FROM t1;


sqltext:
CREATE TABLE t1(a char(1), b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
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* random()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;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES( randomblob(1)-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* random()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;


sqltext:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d IS NOT NULL;
INSERT INTO t1 VALUES(-1, -1, -1, NULL);EXPLAIN
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* random()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;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT lower(?), 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(M), 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 random(), 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-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(12001-01-01), substr(m,2,1) AS00 FROM t0 GROUP BY m ORDER BY 1, 2;


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,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(a,4) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]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,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,0,'000'||substr(c,4) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]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,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,1,'000'||substr(c,4) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]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,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,?) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]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,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, -16,'000'||substr(c,4) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]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,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, -14) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]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,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, - "a","b"||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;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a char(1) PRIMARY KEY, b char(1), 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,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.30 AND 60;


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT "a","b" x, * FROM t01
UNION ALL
SELECT x, y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT * FROM v0 WHERE x='0' ORDER BY y;


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 T DEFAULT  `a` DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100, typeof(1)), (100,5), (107,5);
SELECT a.x,Avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg(a.y) > avg(y));


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100, typeof(1)), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY a.y
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg(a.y) > avg(y));


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100, typeof(1)), (100,5), (-07,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x
HAVING avg(a.y) > avg(y));


sqltext:
ATTACH''AS nonamonameme;
ATTACH':memory:' AS e;
ATTACH':memory:' AS iinm;
ATTACH':memory:' AS inmee;
ATTACH':memory:' AS inme;
ATTACH':memory:' AS oname;
ATTACH':memory:' AS i


sqltext:
ATTACH''AS nonamonameme;
ATTACH':memory:' AS e;
ATTACH':memory:' AS iinm;
ATTACH':memory:' AS inmee;
ATTACH':memory:' AS inme;
ATTACH':memory:' AS oname;
ANALYZE:memory:' A


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


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


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 d COLLATE  a,b, b,  avg(1), a aC;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), sqlite_source_id() FROM t0 GROUP BY m ORDER BY 2, 2;


sqltext:
CREATE VIRTUAL TABLE t000s0 USING fts4aux(" sqlite_compileoption_get(1)0000'0'0000");
SELECT * FROM t000s0;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''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('a000e0',b)OR a='0' OR trim(B,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''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('a000e0',b)OR a='0' OR trim(C,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''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('a000e0',b)OR a='0' OR trim(B,C)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','1�000',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(B,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''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('a000e0',b)OR a='0' OR trim(B,?)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', ' bloba''b''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('a000e0',b)OR a='0' OR trim(B,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', ' time(1,1,1)a''b''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('a000e0',b)OR a='0' OR trim(B,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', ' sqlite_compileoption_get(1)a''b''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('a000e0',b)OR a='0' OR trim(B,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','2001-01-0100000',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(B,B)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''b''00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00�������������������000',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(B,B)


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob������������������������������Ѷ��������������(1000), ra(100));


sqltext:
PRAGMA page_size=1024;
CREATE TABLE t1(x INTEGER PRIMARY KEY, y);
INSERT INTO t1 VALUES(3,hex(randomblob(200)));
INSERT INTO t1 VALUES(2,hex(randomblob(200)));
INSERT INTO t1 VALUES(3,hex(randomblob(200)));
INSERT INTO t1 VALUES(4, hex(randomblob(200)));
SELECT count(*) FROM t1;


sqltext:
 /* */
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 new.Te0tSt00n0 FROM TempT000e LIMIT.1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('-');
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:
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 (P)=x2.a;
CREATE VIEW z AS
SELECT y1.*, y2. *FROM y AS y1, y AS y2 WHERE y1.q=y2.q;
SELECT * from z;


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'
JOIN t102 AS t2 ON(t2.i0=+++NOT++++++++++++++++++++ zeroblob(1));


sqltext:
PRAGMA synchronous = NORMAL;
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));
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 one;
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800)M�t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 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:
PRAGMA synchronous = NORMAL;
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));
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 one;
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800)M�t1;   /* 128 * t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 */
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT ra(800)<FROM t;


sqltext:
PRAGMA synchronous = NORMAL;
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));
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 one;
INSERT INTO t1 SELECT randomblob(800) FROM t1; INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* */
INSERT INTO t1 SELECT randomblob(800)M�t1;   /* 12ts3/
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT INTO t1 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 t3(a EXINTEGER 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  sqlite_compileoption_used(1),"b"COLLATE a DESC;


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(1)|  sqlite_compileoption_get(9)| '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


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(2001-01-011)|  sqlite_compileoption_get(1)| '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a char(1) PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(2,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;�INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
DELETE FROM t1 WHERE a=1;


sqltext:
CREATE TABLE t1(x, y DEFAULT(date(CURRENT_TIME)));
INSERT INTO t1(x)VALUES(1);
SELECT x, t1(x, y DEL(x, y DEAULT(tlength(y) FROM t1;


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 t0;
UPDATE [a]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:
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 t0;
UPDATE t0 SET y=y+1 WHERE x=new.rowid;
SELECT 000;
DELETE FROM [a]WHERE x=new.rowid;SELECT
END;
INSERT INTO t1(a,b) VALUES(0,0);SELECT
CO;


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 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;END


sqltext:
PRAGMA cache_size =-10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(900));
INSERT INTO t1 SELECT randomblob(92001-01E0100) 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 randomblob(00281-01-0100) FROM t1;      /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(900);


sqltext:
CREATE TABLE t0(a, b coalesce(1E1));
ALTER TABLE t0 ADD c REFERENCES t0(c)  ;
SELECT sql FROM sqlite_master WHERE tbl_name = 't0' AND type = 'table';


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'uTO00000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '000000000000000 ''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 [sill0 0 0a0e](a, b, c);
CREATE INDEX 'u0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX 'UNION0000000000 ''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 t0 (a primary key, b, c);
INSERT INTO t0 values (0,00, 3);
CREATE TRIGGER a0000l AFTER UPDATE ON t0 BEGIN
UPDATE OR IGNORE t0 SET a0=  "a"."b" = 00;
END;


sqltext:
CREATE TABLE t0 (a primary key, b, c);
INSERT INTO t0 values (0,00, 3);
CREATE TRIGGER a0000l AFTER UPDATE ON t0 BEGIN
UPDATE OR IGNORE [a]SET a0=  "a","b" = 00;
END;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT-x+1 FROM i LIMIT 5)
SELECT group_concat(1 || .1) x FROM i;


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.a FROM ((t0 JOIN t2 ON t0.a=t2.a) AS x JOIN t2x ON x.a=t2x.b -1) as00;


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


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(0000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(0000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob( [a]), sqlite_compileoption_get(1)ELETE FROM t1 WHERE rowid%0;


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


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 '[0'
JOIN t102 AS t2 ON(t2.i0< t1.i0 OR (t2.i0<t1.i0));


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM�i ORDER BY 1)
SELECT LIKE(1,1,?) x FROM i LIMIT 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM i ORDER BY 1)
SELECT LIKE(1,1,?) x FROM i LIMIT 90;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM i ORDER BY 1)
SELECT LIKE(1,1,?) x FROM i LIMIT 30;


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(402001-01-01, 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, sqlite_source_id()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;


sqltext:
CREATE TEMP TABLE t0001(a,b,c);
SELECT * FROM sqlite_temp_master WHERE sqlite_source_id()-sql GLOB '*[';


sqltext:
CREATE TEMP TABLE t0001(a,bDc);
SELECT * FROM sqlite_temp_master WHERE-sql GLOB '*[ sqlite_temp_master WHERE-sql G';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x, y);
INSERT INTO ft0 VALUES('a 0', 'c d');
INSERT INTO ft0 VALUES('e','c d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING f|s4aux(main, ft0);
SELECT* FROM aux0;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x, y);
INSERT INTO ft0 VALUES('a 0',-'c d');
INSERT INTO ft0 VALUES('e','c d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING fts4aux(main, ft0);
SELECT* FROM aux0;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x sqlite_compileoption_used(1)'a 0', 'c d');
INSERT INTO ft0 VALUES('e','c d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING fts4aux(main, ft0);
SELECT* FROM aux0;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x, y);
INSERT INTO ft0 VALUES(' @1', 'c d');
INSERT INTO ft0 VALUES('e','c d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING fts4aux(main, ft0);
SELECT* FROM aux0;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x, y);
INSERT INTO ft0 VALUES(' 1=1a 0', 'c d');
INSERT INTO ft0 VALUES('e','c d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING fts4aux(main, ft0);
SELECT* FROM aux0;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x, y);
INSERT INTO ft0 VALUES('a 0', 'c d');
INSERT INTO ft0 VALUES('e','c d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING fts4aux(main, ft0);
SELECT* FROM aux0;VACUUM


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,$d,e DESC, b, c, a,b, a,b


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


sqltext:
CREATE TABLE t000(a INvEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INY UNIQUE, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT 2 FROM t000, t001, t000, t001, t002, t002 


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 int000, Q00 int not null, N000000 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, 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));EXPLAIN
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 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 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 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));ANALYZE TABLE I0(O000 tex text(50) not null, R000000000 text0 null50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) no 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, I00000000000ext 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:
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 int000, Q00 int not null, N000000 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, 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));EXPLAIN
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 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, M 00 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 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));ANALYZE TABLE I0(O000 tex text(50) not null, R000000000 text0 null50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) no 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, I00000000000ext 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:
BEGIN;
CREATE TABLE A000(ISSUEID t "a","b"ot 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 int000, Q00 int not null, N000000 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, 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));EXPLAIN
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 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 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 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));ANALYZE TABLE I0(O000 tex text(50) not null, R000000000 text0 null50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) no 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, I00000000000ext 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:
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(CURRENT_TIMESTAMPt not null, N000000 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, 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));EXPLAIN
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 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 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 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));ANALYZE TABLE I0(O000 tex text(50) not null, R000000000 text0 null50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) no 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, I00000000000ext 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:
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 int000, Q00 int not null, N000000 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, 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));EXPLAIN
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 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 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 te);
CREAxt(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));ANALYZE TABLE I0(O000 tex text(50) not null, R000000000 text0 null50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) no 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, I00000000000ext 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:
DETACH printf('0%111111111q11S111111111�L11%0c0%%%%%%1�L11%0c0%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%','0%%%%%%%%%%','0');


sqltext:
DETACH printf('0%111111111q11S111111111�L11%0c0%%%%%%%%%%%110c111�L11%0c0%%%%%%%%%%%%%%%%%%%%%','0');


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


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 b, c, d,eDC;


sqltext:
CREATE TABLE t4(a,b int,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,b,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','6000000160000 40000 10000 2000 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 c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE d=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
PRAGMA amm=1;
CREATE TABLE t1(a, b);EXPLAIN
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t0(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t3(a);
CREATE INDEX x ON t1(b);
DROP TABLE t3;
PRAGMA int;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,0,'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, avg(1)| 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) BETWEEN [a]AND 1=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,0,'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, avg(1)| 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) BETWEEN [a]AND 1=1


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT glob(1,1) FROM i ORDER BY 1)
SELECT strftime(1,1,1,1) x FROM i LIMIT 1024


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(a,b);
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 MATCH a in ( a,b,"b");
IN


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a char400 PRIMARY KEY, b INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM ((t0 JOIN t2 ON-t0.a=t2.a) AS x JOIN t2x ON x.b=t2x.b) as00;


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('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(X) FROM t0a, t0b WHERE b=t0b.rowid GROUP BY randomblob(1)


sqltext:
CREATE TABLE t1(a, b, c);
CREATE TABLE t0(x PRIMARY KEY, y, z);
CREATE TRIGGER r0 AFTER INSERT ON t0 BEGIN
SELECT * FROM t0 WHERE 0 BETWEEN 00 AND 00;
END;
WITH d(x)AS(SELECT 1 UNION ALL SELECT x+1 AS n FROM d WHERE n<=100)
INSERT INTO t0 SELECT x,x*0, x*3 FROM d;


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 x+1 AS n FROM d WHERE n<=100)
INSERT INTO t0 SELECT x,x/0, x*3 FROM d;


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 x+1 AS n FROM d WHERE n<=100)
INSERT INTO t0 SELECT randomblob(1) x,x*0, x*3 FROM d;


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 x+1 AS n FROM d WHERE n<1020)
INSERT INTO t0 SELECT x,x*0, x*3 FROM d;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFA'900';
ALTER TABLE t1 ADD COLUMNULT REFERENCES'900';
ALTER TABLE t1 ADD COLUMN c REAL��


sqltext:
PRAGMA cache_size=10;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(randomblob(20000));VACUUM;
DELETE FROM t1;
INSERT INTO t1 VALUES(randomblob(95000));


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(c,b)
VALUES(5,'000'),(15,'000'),(25,'000'),(35,'000');
UPDATE t15 SET c=printf("0%d",b) WHERE c IS NULL;
SELECT a,b,c,'0'FROM t15 ORDER BY a;


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 c=printf("0%f",b) WHERE c IS NULL;
SELECT a,b,c,'0'FROM t15 ORDER BY a;


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 c=printf("0%d",b) WHERE c IS NULL;RELEASE a,b,c,'0'FROM t15 ORDER BY a;


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f000000000 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN NOT (SELECT~~~~~~~~~2001-01-01 BETWEEN 0 AND 20)
THEN raise(rollback, '000000') END;
END;
INSERT INTO foo(bar) VALUES (0);


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES(' -1b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,M) AS00 FROM t0 GROUP BY m


sqltext:
CREATE TABLE t0(x, y randomblob(1)UNIQUE);
INSERT INTO t0 VALUES('0ne','000');
SELECT * FROM t0 WHERE x='0ne';
PRAGMA integrity_check;


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INY KEY, q, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT 2 FROM  t000, t001,t000, t001, t000, t001, t002 , t001, t002WHERW t2 W


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS inmem;VACUUM;
CREATE TABLE noname.n00000(x);
CREATE TABLE inmem.i0000(y);
CREATE TABLE main.m000(z);ANALYZE;
SELECT name FROM noname.sqlite_master;
SELECT name FROM inmem.sqlite_master;ANALYZE


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t1(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);EXPLAIN
DROP TABLE t1;
PRAGMA integrity_check;
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t1(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);EXPLAIN
DROP TABLE t3;
PRAGMA integrity_check;
DROP TABLE t0;
VACUUM integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a, b);
CREATE INDEX i ON t1(a);
CREATE TABLE t0(a);
CREATE INDEX i0 ON t1(a);
CREATE TABLE t3(a);
CREATE INDEX i3 ON t0(a);
CREATE INDEX x ON t1(b);EXPLAIN
DROP TABLE t3;
PRAGMA integrity_check;EXPLAIN
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2(a, b);
CREATE VIEW a002 AS SELECT a, "a","b"AS m FROM t2 GROUP BY m;
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, b);
CREATE VIEW a002 AS SELECT a, "RIGHT"AS m FROM t2 GROUP 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:
PRAGMA auto_vacuum= 0X2LEal;CT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM-t1;
DELETE FROM t1 WHERE a=1;


sqltext:
CREATE TABLE t1(x, y DEFAULT( sqlite_source_id()));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('  -1)/* */now')));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;


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


sqltext:
PRAGMA synchronous = NORMAL;
PRAGMA page_size = 1024;
PRAGMA journal_mode = WAL;
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
PRAGMA wal_checkpoint;
INSERT INTO t1 VALUES(randomblob(800));
BEGIN;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   4 */
INSERT INTO t1 SELECT randomblob(802001-1E2010) FROM t1;   /*   8 */
INSERT INTO t1 SELECT randomblob(000) FROM t1;   /*  16 */
SAVEPOINT one;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*  32 *FROM t1;   /*  64/
(800) FROM t1;   /*  64 "/
INSERT INTO t1 SE\ECT randomblob(800) FROM t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /* 256 */
ROLLBACK TO one;
INSERT I7TO t1;


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 WHWHERE t0;


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 WHWHERE t0;


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 WHWHERE t0;


sqltext:
CREATE TABLE t000( a,ba 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 WHWHERE t0;


sqltext:
CREATE TABLE t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001( a,bp 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 WHWHERE t0;


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


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


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


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


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 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 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(990));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 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(990));
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;
BEGIN;
DELETE FROM t0 WHERE rowid%6;
PRAGMA incremental_vacuum(�);
ROLLBACK;


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 random() x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 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(990));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT sqlite_source_id() x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
CREATE TABLE   temp.n1(x, y); INSERT INTO temp.n1 VALUES('0000', '00');
CREATE TRIGGER temp.n0 AFTER INSERT ON n1 BEGIN SELECT 1; END;
CREATE INDEX   temp.n0 ON n1(x, y);VACUUM


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(93001-01-01)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


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(92401-01-01)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


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


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,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,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT-a+577777777772001-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,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,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a *77777777772001-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,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,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+577777777772001-01-017,6,'000'||substr(c,4) FROM t1 WHECURRENT_TIMESTAMP;
CREATE INDEX t0b ON t1(a);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX 'sqlite' ON [sill0 0 0a0e](c);x;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT changes() FROM i ORDER BY 1)
SELECT x FROM i LIMIT 2001-01-0110;


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 Re00T000e(Te0tSt00n0)
SELECT char(NULL
)tSt00n0 FROM TempT000e LIMIT�1;
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 INSERT ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char(2001-01-01
)tSt00n0 FROM TempT000e LIMIT�1;
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:
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('\0E0');


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��');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(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('\0E0');


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('\0E0');ANALYZE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacret�cs=1O t0 VALUES'0');
INSES('0');
fNSERT INDO t0 LALUES('0');
INSERT INT< t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t 8ALUES('0');
INSERT INTO 0 VALUES('0');
INSERT I@TO t0 V0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 fu000ve_diacritics=1');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSE:T INT#LU');
INSE:T INT#LUEES('0');7INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO f0 VALUES('0');
INSERT INTO t;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 '=1');
INSERT INTO t0 ;
INSERT INTO t0 VALUES('0')]
INSERT INTO t0 VALUE('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');t0 VALUES('0');
INS@RNATURALt0 VALUES(DELETEINSERT INTO t0 VALUES('0');
INSERT INTk t0 VALUES('\0E0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=,,,,,,,,ode61 'remove_diacritics=1');
INSERT INTUES('0');
INSERT INTO t0 VALUES('\0E0');


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 INt0 VALUES('0');
INSdRT INTO t0 VALUES('0');
INSERT INTO t0 V999999990E0');


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 'a*'LEFT
JOIN t102 AS t2 ON(t2.i0= t0.i0 OR (t0.i0<>500 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(t2.i0= t0.i0 OR 500 AND t0.i0=t2.i0) AND t0.i0=t1.i0));


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


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(1)=x2.a;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE  (1)=y2.q;
SELECT * from z;


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 char(1);
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE  (1)=y2.q;
SELECT * from z;


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(1)=x2.a -1;
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE  (1)=y2.q;
SELECT * from z;


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES( trim(1,1));
INSERT INTO t0 VALUES('0y');
INSERT INTO t0 VALUES('c0');
SELECT '0',$substr(m,2) IS m FROM t0 ORDER BY m;
SELECT '0', substr(m,2) IS m FROM t0 ORDER BY m COLLATE binary;
SELECT '0', substr(m,2)  FROM t0 ORDER BY lower(m);


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;
 SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, *
FROM tabc, txyz ORDEbc, txyz, tb0th ORDER BY@9 LIMIT 1;


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1(c) VALUES('0');
INSERT INTO t1(a)VALUES(10);
INSERT INTO t1(a) VALUES(NULL);
INSERT INTO t1(a) VALUES(22.0);
INSERT INTO t1(c) VALUES(x'000000');
CREATE INDEX i0 ON t1(c, b, c);
ANALYZE;
SELECT o00(se) FROM s000;


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=+-13 ORDER BY d DESC, e DESC, b, c, a DESC;


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= - -113 ORDER BY d DESC, e DESC, b, c, a DESC;


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 1 THEN randomblob(4)WHEN 2 THEN zeroblob(9)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


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(4)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1;


sqltext:
CREATE TABLE t4(a,b,c int,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 2000 600 100 40010');
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 h=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE h=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE TABLE t4(a,b,c int,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 2000 600 100 40010');
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 h=?;
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:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(62001-01-0100));
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;
BEGIN;
DELETE FROM t0 WHERE rowid%4;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(990));
INSERT INTO t0 VALUES(zeroblob(62001-01-0100));
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;
BEGIN;
DELETE FROM t0 WHERE rowid%6;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
CREATE TABLE t000(a INvEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INY KEY, q, r);
CREATE TABLE t002(x INTEGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT 2 FROM t000 t001, t000, t000, t001, t002 IR, t001, t002 WR


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 int000, Q00 int not null, N000000 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, 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 no| 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 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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
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 int000, Q00 int not null, N000000 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, 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 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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
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 int000, Q00 int not null, N000000 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, 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, U 0000000000 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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
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 int000, Q00 int not null, N000000 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, 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 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, U 0000000000 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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
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 int000, Q00 int not null, N000000 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, 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 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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
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 int000, Q00 int not null, N000000 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, 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 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 /* */F0000000(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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
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 int000, Q00 int not null, N000000 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, 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));EXPLAIN
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 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));ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A000000000000000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE P0(S00 int00l, S0000 int not null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) null, N0000 text, M00000 text(1) null, 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 P0000000(C000000 int null, S00000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M00000000(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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50) not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T0000(C00 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, RE000000000 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, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, D000000 text(20) null, A000000000 text(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00000 text(50) not null, L0000 text(200) not null, I00000000000 text not null, A00000000000000 text 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:
BEGIN;
CREATE TAHLE A000(ISSUEID text(5002ot null, OB0ECTID text(50) not null, PARTICIPANTID text(50) not null,E0000000000 int not null, constraint P000000 primary key (ISSUEID, OTEXTTID, ]ARTICIPANTID));
CREATE TABLE A00000000000000000(L0 int00, Q00 int not null, N000000 te t(50) not null, P00000000000000 text(50) null, ISSUEID�ext(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 teZt(50) not null, A0000000 uext(50) not null, Y00000000000 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,null, S00000000 text(30) no�n000000 text(200) not null, A0000000000@00000 int not null, R00000 int not nu, N000000000000 text(1) null, N0000000000000 text(1) null, NNTID0000 text(1) null, N0000000000000000 text(1, N00000000000000000 text(1) null, C00000000000000 text%1) not null, c~nstraiht P0000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000,S0000 int not n}@l, L00000000000000 text(50) not null, P000000 text(50)null, ISSUEID text(50) not null, OB0ECTID text(50) not null,R0000000000 int text(50) not null, A0000000 text(5%) noS null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L0000000 int00000, date(1,1,1)xt(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) 0000 text not null, E00000000 text null, A000000M0000000 text 00) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000K00(TQUNID te]t(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(10L) null, C00000000 text(100) null, C00000000000000 text(100) nul C000000000E text(100 not null, constraint P0000000000000 primary key (TQUNID));
CREE TABLE C000000000000000(C00000 int not null, L00�0000000000 text(50) not null, P000*0000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) n,t null, R000000Q000 int not null, C0000000000 �xt(50) not nullJ A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P000M TEXT0000, L000000 int00000, L0000000000000000 int00000, U000000000900000 text(300) null, L00 B000text null, constraint P00000000
00000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000text(20) not null, K000000000 text(100)not null, F000000000 ina00000, T00000000 int00000);
CREATE TABLE D000(F0N0000000 text(30) not null, V000000 intnot nuyl);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000000 text(300) �ot null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P00000}000000000000000 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 tMxt(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 ind00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREA datetime(1,1,1)ID text(30) not null, I@0 text(50) not null,E000 text(50) null, D0000000000 text(%00) null, D0000000000000000 int null,constraint P000 primary key (TQUNID) ;ANALYZETABLE E00000(T00000 null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int null, A00000000000>000000 text(20) null, A000000000000000000000 text(50) null, constraint P00000000000000 primary key (ISSUEID, OB0ECTID)int00l, S0000 int  int00000);
Cnot null, L000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R00 int not n�ll, C0000000000 text(50) not  ull, A0000000 text(50) not nu�l, C0000�00000 text(20) null, L0000000 text(20) null, U0000000 text(50) null, P0000 text(50) not null, T0000000000 text, M000000000000 text(1) nulY, N0000 text, M0H000 text(1) null, constraint P0 primary key (ISSUEID, OB0ECTID));
CREATE TDBLE P000(P00 text(5ot null, L0 text(300) not null, S00000000000 texk(50) nPt null, T00000 text(30) not null);n00b00E TABLE P00000000000000 text(300l, Stext(50) not null, OB0ECTID text(50) not null, R000000000 int not null, C0<00000000 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, L000000000000000 text(50) null, N000 text(100) not null, I0 text(100) null,constraint P0000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE M000l, 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,  not null, A0000000 text(50) not null, Ctext(50) nottext(20) nu\l, L000000000000000 te0000000 int null, P000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, P0000000000000 text(50) null, B000 text null, B�00G0000000 text(100) null, I000000000 text(1) null, T00000 text(50) not null, D0000000000 int not null, S0000000 text(50xt() not null, S00000000 text(30) not null, L0000000 text(200) not null, constraint P00000000000 primary key (EATE TA[[[[[[[[BLE T0000(C00 int nullISSUEID, OB0ECTID));
CREATE TABNE T0000(C00 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSU@ID text(50) not null, OB0ECTID text(50) not null, RE0 I000000000 text null, C0000000000 text(50)  P000E0000000000notTe0tSt00n000000 text(50) no��null, C00000000000dtext(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000E00000 text(300) null, L00000000000000D text(50) null, P000000000000 text(50) null, B000 tezt nul�, B00000000000000 text(100) null, I000000000null, A000000000 tex�(50) not null, T00000000000000 text null, R000000000 text(50) not null, T00 text(200) not nuhl, I00000000000 text not null, A00000000000000 text notext(1) null, D0000000000 int Lull, R0000000000 text(500) null, R00000000E int null, R000000000P text(300) null, constraint P0000000 primar� key (ISSUEID, OB0ECTID));
CREATE TABLE U0(U00 text(50) not null, U000000 text(100) not null, y key (IS0 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:
CREATE TABLE t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t5 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND b='000'), t0 WHERE strftime(?,1,1,1, '000');
IFSERT c='


sqltext:
CREATE TABLE t1(a,b,x);
CREATE TABLE t0(c,d,y);
CREATE INDEX t1b ON t1(b);
CREATE INDEX t0d ON t0(d);
ANALYZE sqlite_master;
INSERT INTO sqlite_stat1 VALUES('�1','t1b','10001-01-01 100');
INSERT INTO sqlite_stat1 VALUES('t0','t0d','100002001-01-01 500');
ANALYZE sqlite_master;
EXPLAIN QUERY PLAN SELECT * FROM t1, t0 WHERE d=b;


sqltext:
CREATE TABLE t1(a,b,x);
CREATE TABLE t0(c,d,y);
CREATE INDEX t1b ON t1(b);
CREATE INDEX t0d ON t0(d);
ANALYZE sqlite_master;
INSERT INTO sqlite_stat1 VALUES('t1','t1b','100002001-01-01 100');
INSERT INTO sqlite_stat1 VALUES('t0','t0d','100002001-01-01 500');
ANALYZE sqlite_master;
EXPLAIN QUERY PLAN SELECT * FROM t1; t0 WHERE d=b;


sqltext:
CREATE TABLE t1(a,b,x);
CREATE TABLE t0(c,d,y);
CREATE INDEX t1b ON t1(b);
CREATE INDEX t0d ON t0(d);
REINDEX sqlite_master;
INSERT INTO sqlite_stat1 VALUES('t1','t1b','100');


sqltext:
CREATE TABLE t1(a,b,x);
CREATE TABLE t0(c,d,y);
CREATE INDEX t1b ON t1(b);
CREATE INDEX t0d ON t0(d);
ANALYZE sqlite_master;
INSERT INTO sqlite_stat1 VALUES('t1','t1b',' unicode(1)1-01 100');
INSERT INTO sqlite_stat1 VALUES('t0','t0d','100002001-01-01 500');
ANALYZE sqlite_master;
EXPLAIN QUERY PLAN SELECT * FROM t1, t0 WHERE d=b;


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 sqlite_compileoption_used(1) y FROM (SELECT oid='00000'y) )
FROM ( SELECT * FROM t1 ) AS x;


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 y FROM (SELECT oid='00000'y) )
FROM ( SELECT * FROM t1 ) AS x;END


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


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM�t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob( [a]), sqlite_compileoption_get(9)ELETE FROM t1 WHERE rowid%2;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM�t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob( [a]), sqlite_compileoption_get(?)ELETE FROM t1 WHERE rowid%2;


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM�t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob( [a]), sqlite_compileoption_get(1)ELETE FROM t1 WHERE rowid%2;REINDEX


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 OFFSETR (t0.i0< time(1,1,1)>500 AND t0.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 t1.i0 GLOB CURRENT_TIMESTAMPime(1,1,1)>500 AND t0.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 t1.i0 GLOB ' [a]a0' OR (t0.i0< time(1,1,1)>500 AND t0.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 t1.i0 GLOB'' OR (t0.i0< time(1,1,1)>500 AND t0.i0=t1.i0));


sqltext:
CREATE TABLE pp(a UNIQUE, b, c, PRIMARY KEY(b, c)) WITHOUT rowid;REINDEX TABLE cc(d, e, f UNIQUE, FOREIGN KEY(d, e) REFERENCES p0);
INSERT INTO pp VALUES(1, 2, 3);
INSERT INTO cc VALUES(2, 3, 1);


sqltext:
CREATE TABLE pp(a UNIQUE, b, c, PRIMARY KEY(b, c)) WITHOUT rowid;
CREATE TABLE cc(d, e, f UNIQUE, FOREIGN KEY(d, e) REFERENCES p0);REPLACE INTO pp VALUES(1, 2, 3);
INSERT INTO cc VALUES(2, 3, 1);


sqltext:
CREATE TABLE t1( a,ba,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','1߃| ');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a BETWEEN 3 AND 8 ORDER BY a,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','1߃| ');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a BETWEEN 3 AND 8 ORDER BY a,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(tbl,idx,stat)VALUES('t1','t1a','116l '),('t1','t1b','1߃| ');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a BETWEEN 3 AND 8 ORDER BY a,b


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 VALUES('00NSERT INTO t0TABLE t03(n00e);
IN3 VALUES (NULc');
SELECT count( typeof(1)),
 group_concat(1,1)A00
FROM t03
GROUP BY lower(n00e);


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT /*�*/$x<1 FROM i ORDER BY 1)
SELECT /* */ x FROM i LIMIT 10;


sqltext:
CREATE TABLE t1(a TEXP COLLATE BINARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSERT INTO t1 VALUES(5.4e208,'5.4e-08');
SELECT typeof(a)- a, typeof(b), b FROM t1;


sqltext:
CREATE TABLE t1(a T,XT COLLATE BINARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSERT INTO t1 VALUES(5.4e208,'5.4e-08');
SELECT typeof(a)- a, typeof(b), b FROM t1;


sqltext:
CREATE TABLE t1(a TEXT COLLATE BINARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSERT INTO t1 VALUES(5.4e208,'5.4e208');
SELECT typeof(a)- a, typeof(b), b FROM t1;


sqltext:
CREATE TABLE t1(a TEXT COLLATE BINARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSERT INTO t1 VALUES(5.4e208,'5.4e-08');
SELECT typeof(a)- a& typeof(b), b FROM t1;


sqltext:
CREATE TABLE t1(a TEXT COLLADETACHARY);
ALTER TABLE t1 ADD COLUMN b INT0000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSERT INTO t1 VALUES(5.4e208,'5.4e-08');
SELECT typeof(a)- a, typeof(b), b FROM t1;


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('000000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE 8 LIKE '���' ESCAPE '�';


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('h');
INSERT INTO t0 VALUES('H00000');
SELECT 1, x FROM t0 WHERE x LIKE '%h%';
SELECT 2, x FROM t0 WHERE 8 LIKE '%��' ESCAPE '�';


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES($400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max(0%02, total(1))
FROM t1
GROUP BY i01;


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 =NOT datetime(1,1,1)


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 =NOT-'000.';EXPLAIN
COMMIT;


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, FOREIGN KEY(x�y) REFERENCES t0000(a,b));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, FOREIGN KEY(x,y) REFERENCES t0000(a,b));
INSERT INTO t0e02 VALUES(300,100,200);
UPDATE t0e01 set a = 200 where a / 100;
SELECT* FROM t0e01, t0e02;


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, FOREIGN KEY(x,y) REFERENCES t0000(a,b));
INSERT INTO t0e02 VALUES(300,100,200);
UPDATE t0e01 set a = oid where a = 100;
2;


sqltext:
CREATE TABLE messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000s COLLATE NOCASE, commen, 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 s000e_0ocument_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)�ANALYZE 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 s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su OU sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATENTEGER 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 messa0es(W00 INTEGER PRIMARY KEY AUTOINCREMENT, messa0e_id, document_id BLOB, i00, remote_id INT0000, sender INT0000, sub0ect0000000, sub0ect INT0000s COLLATE NOCASE, commen, 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 char(1) 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 s000e_0ocument_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);ANALYZE 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 s00000000000000000000 ON sub0ects(sub0ect);
CREATE INDEX su OU sub0ects(normali0ed_sub0ect);
CREATE TABLE addresses (R00 INTEGER PRIMARY KEY, address COLLATENTEGER 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:
PRAGMA avacuum= tal;
PRAGMA page_size = 1000;
CREATE TABLE t1(a�INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(220015012001501-01-01,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
DELETE FROM t1 


sqltext:
PRAGMA avacuum= tal;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(220015012001501-01-01,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(5 || 0)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
DELETE FROM t1 


sqltext:
PRAGMA avacuum= tal;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(220015012001501-01-01,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(2001-01-0150)FROM t1;
DELETE FROM t1 


sqltext:
PRAGMA avacuum= tal;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES(1,randomblob(2500));
INSERT INTO t1 VALUES(220015001-01,randomblob(50));
INSERT INTO t1 SELECT NULL,ra INTO t1 SELECT NULL,randomblo�(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INomblob(50)FROM t1;
DELETE FROM t1 


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























0 ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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

6




















  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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

















6




  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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


-



















  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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








-













  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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






















  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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



















  ;/* */now')));
INSERT INTO t1(x)VALUES(1);
SELE1;


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(.2001,01-01),b)OR a='0' ORDER BY +x;


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(.2001,01-01),b)OR  sqlite_version();


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(.2001,01-01),b)OR a='0' ORDER BY sqlite_version() +x;


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT000D DEFAULT '90�';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';EXPLAIN
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�';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT '9e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';EXPLAIN
UPDATE t1 SET x=c+1;
SELECT* FROM t1;


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(b,a)) WITHOUT ROWID;
CREATE INDEX t00d ON t0(d, d);REPLACE INTO t0 VALUES('000','000r000','00a','000000');REPLACE INTO t0 VALUES('0000000','j00000','0000000','0000000');
INSERT INTO t0 VALUES('0000000','000r000','0000a','000r000');
INSERT INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT *, '0' FROM t0 ORDER BY c, a;


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(b,a)) WITHOUT ROWID;
CREATE INDEX t00d ON t0(b, d);REPLACE INTO t0 VALUES('000','000r000','00a','000000');REPLACE INTO t0 VALUES('0000000','j00000','0000000','0000000');
INSERT INTO t0 VALUES('0000000','000r000','0000a','000r000');
INSERT INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT 2, '0' FROM t0 ORDER BY c, a;


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(b,a)) WITHOUT ROWID;
CREATE INDEX t00d ON t0(b, d);REPLACE INTO t0 VALUES('000','000r000','00a','000000');REPLACE INTO t0 VALUES('0000000','j00000','0000000','0000000');REPLACE INTO t0 VALUES('0000000','000r000','0000a','000r000');
INSERT INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT *, '0' FROM t0 ORDER BY c, a;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE a(i0 INT0000);
INSERT INTO a VALUES(1);
INSERT INTO a VALUES(2);
INSERT INTO a VALUES(3);
CREATE TABLE b(i0 INT0000);
INSERT INTO b VALUES(NULL);
INSERT INTO b VALUES(3);
INSERT INTO b VALUES(4);
INSERT INTO b VALUES(5);
COMMIT;
SELECT  total(1)-01-01 a WHERE i0 NOT IN (SELECT "a","a" b);


sqltext:
BEGIN TRANSACTION;
CREATE TABLE a(i0 INT0000);
INSERT INTO a VALUES(1);
INSERT INTO a VALUES(2);
INSERT INTO a VALUES(3);
CREATE TABLE b(i0 INT0000);
INSERT INTO b VALUES(NULL);
INSERT INTO b VALUES(3);
INSERT INTO b VALUES(4);
INSERT INTO b VALUES(5);
COMMIT;
SELECT @1ROM2001-01-012001-01-01 a WHERE i0 NOT IN (SELECT "a","a" b);


sqltext:
CREATE TABLE t1(a sqliteoption_used(1));
CREATE VIEW v0 AS SELECT *  OM t1 INDEXED BY `a`WHERE a = 10;


sqltext:
CREATE TABLE t0(x,y DEFAULT-4.3, z DEFAULT-x'0A00');
INSERT INTO t0 DEFAULT VALUES;
SELECT * FROM t0;


sqltext:
CREATE TABLE t0(x,y DEF "a","b", z DEFAULT-x'0000');
INSERT INTO t0 DEFAULT VALUES;
SELECT * FROM t0;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x �NTEGER 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.y=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( @1y) FROM t1 ORDER BY x;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x �NTEGER 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, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length( "a") FROM t1 ORDER BY x;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x �NTEGER 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, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(42001-01-0100));
SELECT x, length( @1y) FROM t1 ORDER BY x;


sqltext:
PRAGMA page_size=512;
CREATE TABLE t1(x �NTEGER 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 SELECT x+1;
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( @1y) FROM t1 ORDER BY x;


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��00',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr('a0�0e0',b)OR a='0' OR trim(1,B)


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��00',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)MATCH'0' OR trim(1,B)


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��00',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=oid OR trim(1,B)


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a�COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES('aCONSTRAINT__________________________X');
SELECT DISTINCT "a","b" a FROM t0t0006;


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


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;
INSERT 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';
COMMIT;


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;
INSERT 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:
CREATE TABLE x0(a CHECK(  (1) ), b);
CREATE TABLE t0(a, b, CHECK( a||b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO x0 SELECT * FROM x0;


sqltext:
CREATE TABLE x0(a CHECK(  (1)NOTNULL ), b);
CREATE TABLE t0(a, b, CHECK( a||b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 SELECT * FROM x0;


sqltext:
CREATE TABLE x0(a CHECK(  (1) ), b);
CREATE TABLE t0(a, b, CHECK( a| 1=1|b ));
INSERT INTO x0 VALUES(1, 'x0');
INSERT INTO x0 VALUES(1, 'y0');
INSERT INTO t0 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);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1(tbl,idx,stat)VALUES('t1','t1a','�2000'),('t1','t1b','10000');
ANALYZE sqlite_master;
SELECT*,'0'FROM t1 WHERE a BETWEEN 3 AND 8 ORDER BY c;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a000, notindexed=poi);
INSERT INTO t2 VALUES(.00,'x x x');
INSERT INTO t2 VALUES(X'0000', '0 0 0');
INSERT INTO t2 VALUES(NULL, '0 0 0');
INSERT INTO t2 VALUES(100.2,'0 0');
INSERT INTO t2 VALUES('0', '0 0 0');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi,=a000, notindexed=poi);
INSERT INTO t2 VALUES(000,'x x x');
INSERT INTO t2 VALUES(X'0000', '0 0 0');
INSERT INTO t2 VALUES(NULL, '0 0 0');
INSERT INTO t2 VALUES(100.2,'0 0');
INSERT INTO t2 VALUES('0', '0 0 0');


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1 (docid, c) VALUES (1, 'T00 0 te00');
INSERT INTO t1(docid,c) VALUES (2, 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'T0is i0 0 test');
DELETE FROM t1


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1 (docid, c) VALUES (1, 'T00 0 te00');
INSERT INTO t1(docid,c) VALUES (2, 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'T0is i0 0 test');
DELETE FROM t1 WHERE �=1; -


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1 (docid, c) VALUES (1, 'T00 0 te00');
INSERT INTO t1(docid,c) VALUES (2, 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'T0is i0 0 test');
DELETE FROM t1 WHERE+1=1; --0000
INSERT INTO t1(docid, c) VALUES (1, '0 t000');


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1 (docid, c) VALUES (1,  zeroblob(1));
INSERT INTO t1(docid,c) VALUES (2, 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'T0is i0 0 test');
DELETE FROM t1 WHERE 1=1; --0000
INSERT INTO t1(docid, c) VALUES (1, '0 t000');


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c a,b);
INSERT INTO t1 (docid, c) VALUES (1, 'T00 0 te00');
INSERT INTO t1(docid,c) VALUES (2, 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'T0is i0 0 test');
DELETE FROM t1 WHERE 1=1; --0000
INSERT INTO t1(docid, c) VALUES (1, '0 t000');


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1 (docid, c) VALUES (1, 'T00 0 te00');
INSERT INTO t1(docid,c) VALUES (2, 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'T0is i0 0 test');
DELETE FROM t1 WHERE 1=1; --0000
DELETE FROM t1 WHERE 1=1;VALUES (1, '0 t000');


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'0�', 'a''00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00��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:
CREATE TABLE t0(x TEXT UNIQUE, y TEXT UNIQUE, z);
INSERT INTO t0 VALUES('000','000','0');
SELECT DISTINCT* FROM t0 WHERE (z='000' OR y='000') AND z ISNULL N


sqltext:
CREATE TABLE t0(x TEXT UNIQUE, y TEXT UNIQUE, z);
INSERT INTO t0 VALUES('000','000','0');
SELECT DISTINCT? FROM t0 WHERE (x='000' OR y='000') AND z ISNULL N


sqltext:
CREATE TABLE t0(x TEXT UNIQUE, y TEXT UNIQUE, z UNIQUE, z);
IN);INTO t0T DISTINCT* FROM t0 WHERE (x='000' OR y='000') AND z ISNULL N


sqltext:
CREATE TABLE t0(x TEXT UNIQUT, y TEXT UNIQlE, z);
INSERT INTO t0 VALUES('000','000','0');
SELECT DISTINCT* FROM t0 WHERE (x='000' OR y='000') AND z ISNULL N


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


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


sqltext:
CREATE VIRTUAL TABLE terms USING fts4aux(t0);
SELECT term, documents, occurrences FROM terms WHERE col = oid;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2( [a]a, b, FOREIGN KEY(a, a) REFERENCES t1 ON DELETE CASCADE);REPLACE INTO t1 VALUES(1,2);REPLACE INTO t1 VALUES(1, 2)�


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES (NULL);
INSERT INTO t03 SELECT count(),
 group_concat(1,1)A00
FROM t03
GROUP BY zeroblob(1);


sqltext:
CREATE TEMP TABLE t0001(aӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??????0????????����00';


sqltext:
CREATE TEMP TABLE t0001(aӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*?*????0?????????TE000';


sqltext:
CREATE TABLE ""("" UNIQUE, x CHAR blob);
CREATE TABLE t2(x);
INSERT INTO ""("") VALUES(1);
INSERT INTO t2 VALUES(2);
SELECT * FROM "", t2;VACUUM


sqltext:
CREATE TABLE ""("" char(1) UNIQUE, x CHAR(100));
CREATE TABLE t2(x);
INSERT INTO ""("") VALUES(1);
INSERT INTO t2 VALUES(2);
SELECT * FROM "", t2;VACUUM


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT upper( random() -11)FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
WITH i AS ( VALUES(1) UNION ALL SELECT upper( random() -11) i ORDER BY 1)
SELECT x FROM i LIMIT 10;


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS inmem;REINDEX
CREATE TABLE noname.n00000(x';
 inmem.i0000(y);
CREATE TABLE main.m000(z);
COMMIT;
SELECT name FROM noname.sqlite_master;
SELECT name FROM inmem.sqlite_master;


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) SELECT('000');
INSERT INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES(NOT'0000');
SELECT * FROM t0000 ORDER BY a;


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES(NOT'000');
INSERT INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000000');
INSERT INTO t0000(b) VALUES('00');
END;
INSERT INTO t0000(b) VALUES(NOT'0000');
SELECT * FROM t0000 ORDER BY a;


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='?E Tt"';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


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='TE Tt"';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_chec`


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=' || t"';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


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='T "a""';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


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='TE  @1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


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='CRa)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='TE Tt"';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PRAGMA integrity_check


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


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,'�00' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,0) 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+577777777777,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,'�00' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB '�0*';
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+577777777777,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,'�00' || 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,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a*577777777777,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,'�00' || 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,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+577777777777,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0�00*';
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,'0�00');
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, '0800');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o00�0');
INSERT INTO t1 SELECT a+1,2,'�00' || 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,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+577777777777,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
A FRO


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a �nt, 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 IN (SELECT a FROM t1 WHERE a<1.);ANALYZE
DROP IN


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(1.0,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY+a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x%Y
HAVING avg(a.y) > avg(y));


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
WHERE BY+a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x%Y
HAVING avg(a.y) > avg(y));


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY+a.x
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x%Y
HAVING avg( @1) > avg(y));


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,4), (107,3), (100,5), (107,5);
SELECT a.x,avg(y)FROM t34 AS a
GROUP BY+a.x%Y
HAVING NOT EXISTS( SELECT b.x, avg(b.y)
FROM t34  b
GROUP BY x%Y
HAVING avg(a.y) > avg(y));


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


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


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


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


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


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t���OR��6(CURRENT_TIMESTAMPPRIMARY Y);
INSERT INTO t0t VALS(


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t���RIGHT��6(CURRENT_TIMESTAMPPRIMARY Y);
INSERT INTO t0t VALS(


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''0000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00000000?000000 000' 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) syat FROM sqlite_stat1 ORDER BY 2, 002;


sqltext:
CREATE	TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '000000000000000 000' 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 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 t5(a,b,c,d,e,f,UNIQUE(a,b,c,d,e,f),UNIQUE(a,b,c,d,e,f	);
I(5,10000);
INSERT INTO t5 VALUES(2,3,4,5,6,20000);REINDEX


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


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


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE �0(y DEFAULT 10 REFERENCES t1(x) ON DELETE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t1 ON DELETE SET NULL);REPLACE INTO t1 VALUES( ?113);
INSERT INTO t0 VALUES(13);
INS


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x INTEGER PRIMARY KEY);
CREATE TABLE t0(y DEFAULT 10 REFERENCES t1(x) ON DELETE SET DEFAULT);
CREATE TABLE t3(y REFERENCES t0 ON DELETE SET NULL);REPLACE INTO t1 VALUES( ?113);
INSERT INTO t0 VALUES(13);
INS


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 (2001.01-011,A) ORDER BY b;


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4 -1);
SELECT c FROM t1 WHERE char (2001-01-011,A) ORDER BY 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, '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 c= /* */a BETWEEN 30 AND 60;


