# xsql

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 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]AND '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, '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:
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:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,  total(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:
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=+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,  avg(1), c, 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(" load_extension(1,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,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','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(B,?)


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'AUTOINCREMENTa''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 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 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 */
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;   /* 1SERT 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:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a char(1) PRIMARY KEY,OF 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:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2( a,ba, b, FOREIGN KEY(a, b) REFERENCES t1 ON DELETE CASCADE);REPLACE INTO t1 VALUES(2001-01-011,2);
INSERT INTO t2 VALUES(1, 2);


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:
CREATE TABLE t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3( [a], d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 ORDER BY b, c, b, b, c, d, e, f,E;


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:
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 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 t000(a INTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p INY KEY, q, r);
CREATE TABLE t002(x INTdGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT 2%Y FROM  t000, t001,t000, t001, t000, t001, t002 WH�RE t2 W


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT-x+1 FROM i LIMIT 2001-01-015)
SELECT group_concat(1.1) x FROM i;


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


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:
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< t0.i0 OR (t2.i0<t0.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:
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:
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,'000'||substr(c,4) FROM t1 WHECURRENT_TIMESTAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


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


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('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 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, 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);EXPLAIN
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:
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:
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 t0(a);
CREATE INDEX x ON t1(b);
DROP TABLE t0;
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:
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, 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:
PRAGMA max_page_count = 1000000;
CREATE TABLE abc(a, b, c);
INSERT INTO abc VALUES(1,82, 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 avg(1)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 FROM abc;
INSERT INTO abc SELECT avg(1) b, a, zeroblob(1) c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
CREATE TABLE t0(c INTEGER PRIMARY KEY, d TEXT COLLATE nocase);
INSERT INTO t0 VALUES(10, 'fuzz');
SELECT 1 FROM t0 WHERE'0000' IN (d);  
SELECT 2 FROM t0 WHERE NOT-0000' IN (d);  --00000
SELECT 4 FROM t0 WHERE d IN (Z');00


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:
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 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:
PRAGMA cache_size=10;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(randomblob(20000));VACUUM;
DELETE FROM t1;
INSERT INTO t1 VALUES(randomblob(05000));


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;
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;
SELECT random() a,b,c,'0'FROM t15 ORDER BY a;


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,M) AS00 FROM t0 GROUP BY mOR


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:
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;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:
PRAGMA auto_vacuum= 0X2LCT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM-t1;
DELETE FROM t1 WHERE a=1;


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 c,INT0000, b INT0000, b INT0000);
INL;


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 avg(1)CURRENT_TIMESTAMP, tb0tH.x, *
FROM tabc, txyz ORDEbc, txyz, tb0th ORDER BY 9 LIMIT 1;


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-102010) 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,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 INTEGER PRIMARY KEY, q, r);
CREATE TABLE t002( a,bx 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 YNTEGER PRIMARY KEY, b, c);
CREATE TABLE t001(p 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 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 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 short_column_names=OFF;
PRAGMA full_column_names=OFF;
CREATE VIEW v0 AS SELECT sqlite_compileoption_used(1) t000 ORDER BY 1 LIMIT 1;


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE ���RENAMERECURSIVEOR0006(a RIMARY KEY);
INSERT INTO t0VALUES('ES\'


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 avg(1), txyZ.x, datetime(1,1,1)x, *
FROM /* */ txyz, tb0th ORDER BY 9 LIMIT 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,0) 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+577777-77772001-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 URRENT_TIMESTAMP;
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+ -11,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:
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( "a","b"
)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');�IN VALUES( 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');


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_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 'remove_diacritics=1'�;
INSERT INTTO 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 t);


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 #remove_diacritics=1');
IN INTO t0 VALUES('0');
IN INTO t0 VALUES('0');
IN INTO t0 VALUES('0
);
IN


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 VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1');
INSERT INTO t0 VALUES('0������������������������');
INSERT INTO t


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 WHERE a in ( random(),2,4,8);"b""b");10)


sqltext:
CREATE TABLE t3(a EXINTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c,e DESC, b,  e DESC, b, D,  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 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 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 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= -+3 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(c,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 g=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=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(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%7;
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, P0000000000000Mint00000, 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 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, 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 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,constra sqlite_compileoption_used(1));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:
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('t1','t1b','10001-01-01 100');
INSERT INTO sqlite_stat1 VALUES('t0','t0d','100002001-01-01 500');
ANALYZE sqlite_master;
0XPLAI


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 sql1 VALUES('t11b','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 t0(a,b,c int,d,e, PRIMARY KEY(a,b,c,e,c,d,b,c,c,e,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


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= typeof(1)?;


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;


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(A)ELETE FROM t1 WHERE rowid%2;


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 CROSS
LEFT JOIN tON t1.i0t1.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 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 ' [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:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT /* */$x<1 FROM a.b 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 TEXT COLLATE'�000 COLLATE NOCASE;
INSERT INTO t1 VALUES(1,'-2');
INSER8');
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 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  /* */(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('000000');
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), mATTACHax(0e02, 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-'000.';EXPLAIN
COMMIT;


sqltext:
BEGIN;
CREATE TABLE n00be0s(oidRIM "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.';
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));
INSERT INTO t0e02 VALUES(300,100,200);
UPDATE t0e01 set a = 200 where a / 100;
SELECT* FROM t0e01, t0e02;


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(5 || 0)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 +2 daysNULL,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:
CREATE TABLE t1(x, y DEFAULT(datetime('



�


















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


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


-



















  ;/* */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('









-












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


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






















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


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


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=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:
PRAGMA foreign_keys = ON;
CREATE TABLE t1(ASCASa UNIQUE, b);
CREATE TABLE t2(c, d REFERENCES t1(ASCa));REPLACE INTO t2 VALUES(1,2);
F;


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');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:
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 *,CURRENT_TIMESTAMP '0' FROM t0 ORDER BY c, a;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''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 ifnull(1,1) idx;


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 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 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('a00�e0',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:
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:
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 /* */(SELECT  "a","b"A,1,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


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


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','92000'),('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);
I 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,  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:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', 'a''00',1);
INSERT INTO t1 VALUES(2,'00','��������4all�������������������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 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 t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE �2(a, b);
CREATE VIEW a002 AS SELECT a, sum(b) 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 (1,2%Y);


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(a)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b,c,a, b,c,d,e);
000000


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 TABLE t0(a,b,c,d,e, PRIMARY KEY(c)) WITHOUT ROWID;
CREATE INDEX t0a ON t0(b,c,a, a, b,c,d,e)b


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


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 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 �ritema=ON;
UPDATE sqlite_master SET sql='CRa)'
WHERE name='t1a';
UP


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?????????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 ""(""UNIQUE UNIQUE, x CHAR(100));
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:
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:
SELECT DISTINCT*
FROM (SELECT "a","b"AS one FROM sqlite_master LIMIT 1 OFFSET 1)
WHERE oid LIKE '000000';


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 �ritema=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='?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='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:
CREATE TABLE t1(a,b);
CREATE INDEX RENAMEt1a 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 �OLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' -1');
INSERT INTO t0t0006 VALUES('ABX');
SELECT DISTINCT sqlite_compileoption_get(A)/a FROM t0t0006;


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' +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 '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+577777777/77,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,C) 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 LIKE '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,'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


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:
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(0e0) > 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


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 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(20e0201-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 encoding=UTF16be;
CREATE TABLE t0t�����6(CURRENT_TIMESTAMPPRIMARY Y);
INSERT INTO t0t VALS(


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


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


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,C) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 3. AND 60;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX '�0000000''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 [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0:0000000000000 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 [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 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,a,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 t1(x, y DEFAULT(datetime('2001-01-01002')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


sqltext:
CREATE TABLE t0(a,b,c,d,e, PR load_extension(1,1));
SELECT DISTINCT* FROM t0 WHERE a=? AND b;
SELECT DISTINCT* FROM t0 


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


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


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


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 GROUP BY "a","b";
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0 ORDER BY 1;


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 GROUP BY "a","r";
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0 ORDER BY 1;


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 GROUP BY  "a","b""a","b";
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0 ORDER BY 1;


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 GROUP BY "a",0e0;
SELECT* FROM De00Ta0le INTERSECT SELECT * FROM De00V0e0 ORDER BY 1;


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


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


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


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


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


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'utom0000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:0000000000000''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 idx;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f000�000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:0000000000000''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 '00:0000000000000''00000' ON 


sqltext:
CREATE TABLE t5(a TEXT�PRIMARY KEY, b V00CHAR(500)UNIQUE) WITHOUT ROWID;
INSERT INTO t5 VALUES('00000','0000').
ount(*) FROM t5;


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


sqltext:
CREATE TABLE abc(a� b, c);
CREATE TABLE abc0000000(a, b, c);
CREATE TEMP TRIGGER BEFORE INSERT ON abc BEGIN
INSERT INTO abc0000000(a, b, c) VALUES(new.c, new.b, new.c);
END;
INSERT INTO abc VALUES(0, 0, 3);
SELECT* FROM abc0000000;


sqltext:
CREATE TABLE abc(a, b, c);
CREATE TABLE abc0000000(a, b, c);
CREATE TEMP TRIGGER BEFORE INSERT ON abc BEGIN
INSERT INTO abc0000000(a, b, c) VALUES(new.c, new.b, new.c);
END;
INSERT INTO abc SELECT* FROM abc0000000;


sqltext:
CREATE TABLE t102 (i0 �EXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t102 
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 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t102 
JOIN t102 AS t2 ON(t2.i0=+t2.i0 OR (t0.i0<>500 AND t2.i0=t1.i0));


sqltext:
PRAGMA page_siAL;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA wal_autocheckpoint =�100;
PRAGMA journal_size_limit = 1000.;


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. -01) AS00 FROM t0 GROUP BY CURRENT_TIME,oid


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, "a") AS00 FROM t0 GROUP BY CURRENT_TIME,oid


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, -01) AS00 FROM t0 GROUP BY CURRENT_TIME,0e0


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| julianday(1,1,1)  * '+' || 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(1)| julianday(1,1,1)  * '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);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| julianday(1,1,1)  *  @1 || 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);
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)|NOT julianday(1,1,1)  * '0' || changes() );
END;
CREATE TABLE t2(a);
INSERT INTO t2 VALUES(0), (2), (0);
UPDATE t0 SET b= changes();


sqltext:
CREATE TABLE t10(x �NTEGER 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< @1
WHERE (b.x<$ab0 OR b.y<$ab0);


sqltext:
CREATE TABLE t10(x �NTEGER PRIMARY KEY, y INT, z CHAR(1888888888888888888888888888800));
CREATE INDEX t000 ON t10(y)TE TABLE t10(x �NTEG
SELECT a.x, b.x
FROM t10 AS a JOIN t10 CS b ON a.y<b.x
WHERE (b.x<$ab0 OR b.y<$ab0);


sqltext:
#ATTSEPEcc�ccccccccccc$�q\[;
#cc�ccccccccccc$�q\[;
#;
#T�;
#T�a.b/(y���m0s0000I%������;
#T�a.b/(y�amY;�������� @�);


sqltext:
#ATTSE\E@�ccccccccccG$��m;
# R������cacccdc�FOREIG2m;
#T�a���������cc[cccccFORNm;m;
a.b����@���


sqltext:
#ATTS varcgar(1cccccc$�amY;
#T�adcc$�amY;
#T�ad/(�YYy1,1)%;�E aJb/(y������TTS varcgar(1cccccc$�amY;
#T����������amY;
#T�a�);


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


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


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='CREATE7777777777777777777777777777777? UNIQUE INDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA w�itama=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE 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='CREATE77777777777777777777777777777777 UNIQUE INDEX t00 ON@00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA w�itama=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX `a` 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='CREATE777777777777777777777777 UNIQUE INDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA w�itama=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


sqltext:
CREATE TABLE 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='CREATE77777777777777777777777777777777 UNIQUE INDEX t00 ON 00 @1'
WHERE name='t1a';
UPDATE sqlite_master SET sql='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA w�itama=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


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


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


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


sqltext:
WITH i(x) AS ( VALUES(12001-01-01) UNION ALL SELECT 1=1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT  06


sqltext:
CREATE TABLE t15(a �NTEGER PRIMARY KEY, b);
INSERT INTO t15(a,a)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%X",a) WHERE c IS NULL;
SELECT a,b,c,'0'FROM t15 ORDER BY a;


sqltext:
CREATE TABLE t15(a �NTEGER 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% ",a) WHERE c IS NULL;
SELECT a,b,c,'0'FROM t15 ORDER BY a;


sqltext:
CREATE TABLE t1(a, b);
CREATE INDEX i1 ON t1(a);
CREATE VIEW v0 AS SELECT * FROM(t1 INDEXED BY i) WH


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,x)VALUES(3,4);
DROP TABLE IF EXISTS t;
CREATE TABLE t3 AS
SELECT a MATCH coalesce(y,a) AS q FROM t1 LEFT JOIN t2 ON a= sqlite_compileoption_get(q)ORDER BY q;


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-8,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,'01000000');
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(2000000000,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 O


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= t0.i0 AND(t0.oid=500 AND t2.i0=t1.i0));


sqltext:
PRAGMA max_page_count =-02.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;
RT INTO abc SELECT a||b||c, b||c||a, c||a||b FROM abc;
IO abc SELECT b, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count =0X2.0, c||a||b FROM abcbc(a, b, c);
INSERT INTO abc V[LUES(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 abc SELECT b, a, c FROM abc;
INSERT IN�O abc SELECT c, b, a FROM abc;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t00');�INSa00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0000'MATCH'sai000 A s0o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet w e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 �i0000000 t00000 and');
INSERT INTO t2 VAIUES('W000r000 to 0a00 JOIN0t');
INSERT INTO t2 VALUES('Si00-l00y-2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VAUES('0u0 0 p00 w000 0a00 f0r a b090 o0');
INSERT INTO  r00 th0 h00');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10eptember 0h0 wi00 d00 tu0000 an0');
InSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 f000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and ~0a00 wa00 f00 t00 win0');
INSERT INTOt0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i02 VA E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
IN�ER����������������������T INTO t2 VALUES('to 0000$0000 0 f00 m0000 to N000 fleet');
INSER0h0 0000, 00e00 0e');
INS RT IN@O t2 VALUES('000 000000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUS('o00000. 0000 000000 0e r000000 t00 h0);
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('00 02 0i0000000 t00000 and');
INSERT VALUES('');
INSERT INTO t2 VALUCS('0a00(0u00000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTb t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUE);'0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT I\TO t2 VALUAd00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0��� 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t04 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
IhSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S000040. W000000 0000 m0���������000');
INSERT INTO t2 VALUES('to00000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('04O t2 VALUES('to 0h0 00 20 0 0as0 o0');
INSERT INTO t2 fALUES('o00000. 000 000000 0e r000000 t00 h0000SERT INTO t2 VALUES('000 00000o0 0a00''s r00000 f000 t00 ���0 );


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('<0 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT�NTO t2 VALUES('WVALUES('Si00-l00y-su0-Somme and 0000''s fleet sai0� A s?o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet wa0 r00 s00 0t');
INSERT I0 SeptembeNTO t2 VALUES('Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 V�S('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0+s�i 0a0 00 E000000 00 0e000000');t2 V
INSERTINTO t2 VALUE0l00. A sto00 b000 u0 and S('0a00(0u00000 o0 00 Se0000000D William t000 m00/);
INSERT INTO t2 V9LUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INSERTINTO t2 VALUESINTO t2 VALIES('0u0 0(p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0j00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000fan0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to Ga0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V000003sur-Somme and a0T INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 0
INSERT INTO t2 VALUE0 S00000000. W000000 0000 m0000=);
INSERT INTO t2 VALUES('to 000000002 0 f00 m0000 to 0h0 0000, 00e00 0e');
 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a0''s r00000 f000 t00 n00000');


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1%2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 �n0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and�00');
INSERT INTO t2 VALUES('flee� wa0 r000 to 0a00 s00 0t');
INSERT INTO t2 VALUES('Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e000000');
INSERT VNTO t2 VALUES('0a00(0u00000 of 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f0________________________________0 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT I�TO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT I0 up and�0NTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00��������������T INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 .00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES(' f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 wn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet wQ0 r000 to 0a00 s00 0t');
INSERT INTO t2 VALUES('Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e000000');
INSERT INTO t2 VALUES('0a00(0u00000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0800 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 w w00 he');
INSERT INTOINSERT INTO tf0r a b000 o0');
INSERT INTO t2 2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('fleet was f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUE00-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S"0000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='0''0 0le0t 0l8���� sto00 b1,2,3');
INSERT INTO t2 VALUES('00002 S0000 and');
INSERT INTO t2 VALU%S('W00reces fleet sai000 A s0o00 0l002 VALUES(Si00-l0y-su000 to 0a0  s0 0t');
INSERT INTO t2 VALUES(Si00-lmme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 sub0ectsHTember t00 Nor)0R fleet');
INSERT INTO t2 VALUES('0iN se0 sai 0a0 00 E000000 � 0e000000');
INSERT 0000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a0�, a f00 m0000Vo 0����000, w00 he');
INSERT INeO t2 VA�('0u0 0 p00 w000 0a00 f0r a b00 o0');
INSERT INTO t2 VALVE���S('0p00. 0r00 the0 he r0� th0 h000 VALUES('and wa00 f00 0ol0''s 0u00 0rL0 0h0 nort0.');
INSERT INTO t2 VALUES('00 10 September 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l80. A sto00 b000 u0 and 0he');
INSERT INTO e2 VA 00is20e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a0< ha00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 2* S00 t0e N000 fleet');
INS�INTO t2 VALUES('000 i0 E00 a0 0000');
INSER��INTO t2 VALUES@00(0s00) o0 20 S00000000. W000000 0000 m0000');~~~~~~~
INSERT INTO t2 VAlUES('to *000000 0 f00 m0000 to 0h0 0000,�00e00 0');
INSERT INTO t2 VALUES('000 0 00000 !000 0a0����f03 00as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 0000000e r000000 t01 h000000000');
INSERT INTO t2 VALUES('000 0�0 0o0 0a00''s r00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='555555555555555555555555555551,2,3');
INSERT INTO t2 VALUES('00 02 S00 0h0 vn0 0i0000000 t00000 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t00');
INSERT INTO t2 VALUES('fleet wa0 r000 to 0a00 s00 0t');
INSERT INTO t2 VALUES('Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0se0 sai 0a0 00 E000000 00 0e000000');
INSERT INTO  2 VALUES('0a00(0u00000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');
INSERT INTO t2 VALUES('and wa00 f00 0ol0''s 0u00 0r00 0h0 nort0.');
INSERT INTO t2 VALUES�'00 eptember 0h0 wi00 d00 tu0000 an0');
INSERT INTO t2 VALUES('Wi00000''0 0le0t 0l00. A sto00 b000 u0 an e');
INSERT INTO t2 VALUES('fleet was f000 to 0M0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 o 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000);
INSERT INTO t2 VALUES2'000 0000 0o0 0a00''s r00000 f000 t0@n00000';


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


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


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


sqltext:
CREATE TABLE t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x);
INSERT INTO t12b(x, a,bd,x,x,x,x,x) SELECT DISTINCT* FROM t12a12b;


sqltext:
CREATE TABLE t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x);
INSERT INTO t12b(x,rowid,x,x,x,x,wid,x,x,x) SELECT DISTINCT* F


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


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(72001-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 8 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(7200&-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:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(72001-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:
PRAGMA page_size= 512;
PRAGMA auto_vacuum = incremental;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );�INSERT 


sqltext:
PRAGMA page_size= 512;
PRAGMA auto_vacuum = incremental;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES( randomblob(12* (512-4)) );
INSERT INTO t1 VALUES( randomblob(1 * (512-4)) );
INSERT INTO t1 VALUES( randomblob(2 * (500-4)) );
INSERT INTO t1 VALUES( randomblob(110 * (512-4)) );
INSERT INTO t1 VALUES(randomblob(3 * (5-4)) );
DELETE FROM t1 WHERE rowid= 3;
PRAGMA incremental_vacuum = 2;
DELETE FROM t1W


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
CREATE VIEW v0 AS SELECT glob(1,1) "a","b"IN t0;
CREATE TRIGGER t0001 INSTEAD OF DELETE ON t0 BEGIN
SELv0


sqltext:
CREATE TABLE t0(a TEXT, b TEXT);
CREATE VIEW v0 AS SELECT glob(1,1)LIMIT "a","b"IN t0;
CREATE TRIGGER t0001 INSTEAD OF DELETE ON v0 BEGIN
SELECT 0;
END;
DELETE FROM v0


sqltext:
CREATE TABLE t5(a,b,c,d,e,f,UNIQUE(a,b,c,d));
INSERT INTO t5 VALUES(1,1,1,?,1,10000);
INSERT INTO t5 VALUES(2,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 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);REINDEX TABLE sub0ects (W00 INTEGER PRIMARY KEY, sub0ect COLLATE RTRIM, nor000000 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:
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( 102), sqlite_compileoption_get(?)ELETE FROM t1 WHERE rowid%23


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


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


sqltext:
CREATE TABLE t4(a,b int,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600160000 40000 10000 2000 60� 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE d=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 t0(x TEXT UNIQUE, y TEXT UNIQUE, z);
INSERT INTO t0 VALUES('000','000','0');
SELECT * FROM t0 WHERE (x='000' OR y='000') AND z <= NOT NULL;


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 SELECT ('0'IN t102 );
SELECT * FROM t102 AS t0
LEFT JOIN t102  N tES ('0'I


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x ON x2 WHERE x1.a=x2.a;
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE y1.q= strftime(1,1,1,1)m z;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokeni�e=unicode61 "separators=aB");
INSs4aux(t0);
SELECT * FROM t0aux;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokeniz�=unicode61 "separators=aB");
INSs4aux(t0);
SELECT * FROM t0aux;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBt0r sqlite_compileoption_used(1)one0000A0');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0);
SELECT * FROM t0aux;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");EXPLAIN
INSERT INTO t0 VALUES('oneatwoBt0r00');
INSERT INTO t0 VALUES('one0000A0');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0);
SELECT * FROM t0aux;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('r00');
INSERT INTO t0�VALUES('one0000A0');
CREATECVIRTUAL TABLE t0aux USING fts4aux(t0);
SELECT * FROM t0aux;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('ome����������������������atwoBt0rVe0����');
CREATE VIRTUAL TABL��t0aux USING fts4aux(t0);ELECT * FROM t0aux;


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


-



















 

















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


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























 



























 













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


sqltext:
PRAGMA auto_vacuum=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 t3(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:
PRAGMA auto_vacuum=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 t3(a);
CREATE INDEX x ON t1(b);EXPLAIN
DROP TABLE t3;
PRAGMA integrity_check;
DROP TABLE t0;
PRAGMA integrity_check;
DROP TABLE t1;;EXPLAIN
DROP TABLE t3;
P


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


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


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


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


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


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


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,_ROGHT)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
NDEX t1a ON tER BY c;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,_ROWHT)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
NDEX t1a ON tER BY c;


sqltext:
CREATE TABLE t1(a,b,c);
INSERT INTO t1(a,b,_RowiT)
VALUES(1,2,3),(7,8,9),(4,5,6),(10,1,10),(4,8,10),(1,10,100);
NDEX t1a ON tER BY c;


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


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


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


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


sqltext:
SELECT  1000000%00000300000101000000%00800000060060000100101000040%008000060000000000006000101000000%00800004000000000008000060000;


sqltext:
SELECT  1000000%00000300000101000000%00800000060060000101000000%0080000006000101000000%00800006000000000101000000%00800006000000008000060000;


sqltext:
SELECT  1000000%0=000101000000%00800008000060101000000%00800000060060000101000000%008000000=000101000000%0000;


sqltext:
SELECT  1000000%00000300000101000000%0080000006000101000000%008000060000060060000101000000%0080000006000101000000%00800006000000000008000060000;


sqltext:
SELECT  1000000%0000030000010100000000060060000101000000%00800000060000006000101000000%00800006000000000008000060000;


sqltext:
SELECT  1000000%00000300000101000000%00800000060060001000000%0080000006000101000000101000000%00800000060001010000000008000060000;


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


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


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


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


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


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


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


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER d0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER last_inser|_rowid(r6;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER d0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER la|t_insert_rowid(r6;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER d0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER  /* */FORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER last_insert_rowid(r6;


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER t21 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER d0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER CURRENT_TIMESTAMPlast_insert_rowid(r6;


sqltext:
CREATE TABLE test(c0l0 TEXT PRIMARY KEY);
INSERT INTO test(c0l0)values('a');
INSERT INTO test(c0l0)values('b');
INSERT INTO test(c0l0)values('c');
CREATE TABLE test2(c0l0 TEXT PRIMARY KEY);
INSERT INTO test2(c0l0)values('a');
INSERT INTO test2(c0l0)values('b');
INSERT INTO test2(c0l0) values('c');
SELECT*FROM test t0 LEFT OUTER JOIN test2 t2
WHERE randomblob(1) +t2.c0l0 IS random()LIKE NULL;


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


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


sqltext:
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT);
CREATE TABLE t2(a INTEGER PRIMARY KEY, a�TEXT);
INSERT INTO t1 VALUES(1,'ab0');
INSERT INTO t1 VALUES(2,'000');
INSERT INTO t2 VALUES(1,'ab0');
INSERT INTO t2 VALUES(2,'000');
SELECT * FROM t2 NATURAL JOIN t2;


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, tb0th ORDER BY 1 LIMIT "a","b" 1;


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, sqlite_source_id() 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, total_changes()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,999999999999999999999999999999 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, total_changes()b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


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


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


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER INSERT ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT000e LIMIT.1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
IN INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER INSERT 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


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('0  /* */ @1avg(1)es')));
INSERT INTO t1(x)VALUES(1);
INSERT INTO t1(x)VALUES(1);


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


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


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


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


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


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


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


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


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


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


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','00',1);
INSERT INTO t1 VALUES(2,'00','e0',5);
INSERT INTO t1 VALUES(3,'000','00000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr( char( a,b
),b)OR a-'�' 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( a,b
),b)OR a-CURRENT_DATE +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( a,b
),b)OR a-' -10' 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( a,b
),b)OR a-'RENAME0' ORDER BY +x;


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


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


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


sqltext:
CREATE TABLE t1000(x);
CREATE TRIGGER r000 INSERT ON t1000 BEGIN
INSERT INTO t1000 SELECT-y FROM (SELECT new.x y);
END;EXPLAIN
INSERT INTO t1000 VALUES(1);


sqltext:
CREATE TABLE t0a(a,b);
CREATE TABLE t0b(x);EXPLAIN
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 ORDER BY a;


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auY=O00;
PRAGMA synchronous=N00 00;
PRAGMA pagMA journal_mode=TRUNC;
PRAGMA journal_mode=TRUNCAT 2);


sqltext:
CREATE TABLE t1(x);
INSERT INTO t1 VALUES( julianday(1,1,1)),( '0000'),(NULL);
SELECT quote(x)FROM t1 ORDER BY x;
SELECT name FROM sqlite_master;


sqltext:
CREATE TABLE t1( a,oa,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(922337*036854775800,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(40000000000,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');
INSERTSERT INTO t1(oid,a,x)VALUES(200,15,'00000000000fINSERT 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 INDE


sqltext:
WITH i(x) AS ( VALUES(12001-01-01) UNION ALL SELECT x+1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 30;


sqltext:
WITH i(x) AS ( VALUES(12001-01-01) UNION ALL SELECT x+1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
CREATE TABLE t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY  "a","b",0e0,.2;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX '0e000000'' 0000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0E00000000000000''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 idx;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX '0e000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0E00000000000000''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 VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH NULL;


sqltext:
CREATE TABLE t1(x INTEGER PRIMARY KEY, y, z);
CREATE TABLE t2(a, b);
CREATE VIEW a002 AS SELECT a, sum(b) 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 (A,2,3);


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='CREA 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO sqli|%_


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


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


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','80000',90);
INSERT INTO t1 VALUES(4,'0','0',2);
INSERT INTO t1 VALUES(5,'00','0',2000);
SELECT x FROM t1 WHERE c=instr( char( a,b,-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( a, char(1)),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( a, "a","b"),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( a -1,b,-01-01),b)OR a='0' ORDER BY +x;


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


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


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


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 changes();
SELECT  @1p, y2.p FROM y AS y1, y  AS y1, y AS y2 Wz;


sqltext:
PRAGMA cache_size=10;
CREATE TABLE t1(x,y);
INSERT INTO t1 VALUES(1,randomblob(000000));
INSERT INTO t1 VALUES(2,randomblob(10000));
INSERT INTO t1 VALUES(3,randomblob(20000));
INSERT INTO t1 VALUES(4,randomblob(10000));
SELECT x, length(y) FROM t1 ORDER BY rowid;


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


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000,INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000 AFTER UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT char(1)tSt00n0 FROM TempT000e LIMIT 9;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 MATCH Te0tID=1 OR Te0tId=2;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


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


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.c, *
FROM tabc, txyz, tb0th GROUP BY 3 LIMIT 1;


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


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


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


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','e������0',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='0' OR trim(1,A)


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


sqltext:
CREATE TABLE t0000(aCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
VALUES('000');REPLACE INTO t0000(b) VALUES('000');
END;
CREATE TRIGGER t000000 AFTER UPDATE 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 t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x);
INSERT INTO t12b(x�ߞ�bd,x,x,x,x,��bd,x,x,xx) SELECT * FROM t12a;
SE


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);REPLACE INTO t000 VALUES('s','s0'),('00000','000'),('0r000','m0r00'),('0r000','0rr0');
SELECT a, b, '0' FROM t000 W='m0


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


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


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


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


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD ORCOLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT-' -19e99';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT-' -19e99';
ALTER 1 


sqltext:
ATTACH''AS nonamonameme;
ATTACH':memory:' AS inm;
ATTACH':memory:' AS inmee;
ATTACH':memory:' AS inme;
ATTACH':memory:' AS oname;
ANALYZE;me:' A


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 group_concat(1,1)LIKE EXISTS (SELECT oid='0'y) )
FROM ( SELECT @1FROM t1 )x;


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


sqltext:
CREATE VIRTUAL TABLE rt USING rtree(i0, x0, x2);EXPLAIN
INSERT INTO rt VALUES(1, 2 ,3);
SELECT * FROM rt;


sqltext:
CREATE TABLE t01(x, y);
CREATE TABLE t02(x, y);
CREATE VIEW v0 as
SELECT time(1,1,1) x, y FROM t01
UNION ALL
SELECT x,NOT y FROM t02;
CREATE INDEX t000 ON t01(x);
CREATE INDEX t00x ON t02(x);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM v0 WCO ORDER BY y;


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 * 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 ?13;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1 b=3


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=~~~~~~~~~~~~~~~~~~~~~~~2 OR ?13;
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= /* */~~~~~~~~~~~~~~2 OR ?1 b=3


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 ?13;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1 b=3


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON NOT(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 ?13;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON a=2 AND b=3;
SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1 b=3


sqltext:
CREATE TABLE t03(n00e);
INSERT INTO t03 VALUES ( "a");
INSERT INTO t03 VALUES('00c');
SELECT count( sqlite_source_id()),
NULLIF(n00e,NOT'00c')A00
FROM t03
GROUP BY lower(n00e);


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2(a,Bb, FOREIGN KEY(a,  a,bb) REFERENCES t1 ON UPDATE CASCADE);;


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2(a, b, FOREIGN KEY(a,  a, a,bbb) REFERENCES t1 ON UPDATE CASCADE);;


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


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


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


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


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(b,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','000010 160000 40000�10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROM t4 WHERE f=6;
SELECT i FROM t4 WHERE g=7;
SELECT i FROM t4 WHERE h=8;


sqltext:
CREATE TABLE t0(x INT0000, y TEXT, z);
INSERT INTO t0 VALUES(0,0,8);
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 GROUP BY z;


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 || 011) y FROM t0 GROUP BY z;


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


sqltext:
BEGIN;
CREATE TABLE n00be0s(a DEFAULT 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 NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid< a = '0000';
CT;


sqltext:
BEGIN;
CREATE TABLE n00be0s(a DEFAULT  -1, 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, a = '0000';
CT;


sqltext:
BEGIN;
CREATE TABLE n00be0s(a DEFAULT 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 NULL FROM n00be0s;
INSERT INTO n00be0s(oid) SELECT NULL FROM n00be0s;
UPDATE n00be0s set a= oid, a =CURRENT_TIME


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX i1 ON t1(c,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 replace(1, -11,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


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 replace(1,A-11,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


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 replace(1, -11,1)AMP10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


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


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT substr(1,1, "a") FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


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


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


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* FROM a WHERE@i0 NOT IN (SELECT "a"FROM a,b,"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* FROM a WHERE i0 NOT IN (SELECT zeroblob(1) "a"FROM a,b,"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* FROM a WHERE i0 NOT IN (SELECT group_concat(1,1) "a"FROM a,b,"b");


sqltext:
CREATE VIRTUAL TABLE t1 USING fts4;
CREATE TABLE t0ext(a� b);
CREATE VIRTUAL TABLE t0 USING fts4(content=t0ext);
CREATE VIRTUAL TABLE t1000 USING fts4aux(t0);
CREATE VIRTUAL TABLE t0au0 USING fts4aux(t0);


sqltext:
CREATE VIRTUAL TABLE t1 USING fts4;
CREATE TABLE t0ext(a, b);
CREATE VIRTUAL TABLE t0 USING fts4(content=t0ext);
CREATE VIRTUAL TABLE t1000 USING fts4u


sqltext:
CREATE VIRTUAL TABLE t1 USING fts4 (1);
CREATE TABLE t0ext(a, b);
CREATE VIRTUAL TABLE t0 USING fts4(content=t0ext);
CREATE VIRTUAL TABLE t1000 USING fts4aux(t0);
CREATE VIRTUAL TABLE t0au0 USING fts4aux(t0);


sqltext:
CREATE VIRTUAL TABLE t1 USING fts4;
CREATE TABLE t0ext(a, b);
CREATE VIRTUAL TABLE t0 USING fts4(content=t0ext);
CREATE VIRTUAL TABLE t1000 USING fts4aux(t0);
CREATE VIRTUAL TABLE t0au0 USING fts4aux(t0);VACUUM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts4;
CREATE TABLE t0ext(a, b);
CREATE VIRTUAL TABLE t0 USING fts4(content=t0ext);
CREATE VIRTUAL TABLE t1000 USING fts4aux(t0);
CREATE VIRTUAL TABLE t0au0 USING fts4aux(t0);ANALYZE


sqltext:
CREATE TABLE t000(c000 INT0000);
CREATE TABLE t002(c000 INT0000);
SELECT a,b a,b0.* ,ROM,t000 NATURAL JO


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


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


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(A,CURRENT_DATE);
IFSERT c='


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(A,1, trim(1, -11));
IFSERT c='


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 DESC,d DESC, e DESC, b, "a","b"COLLATE a DESC;


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 d DESC,d DESC, e DESC, b, "a","b"COLLATE "a","b"


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 d DESC,d DESC, e DESC, b, "a","b"COLLATE rtrim(1,C;


sqltext:
CREATE TABLE t6(x INT0NT0000);
INSERT INTO t6 VALUES(1000);
INSERT INTO t6 VALUES(1);
INSERT INTO t6 VALUES(1<<70);
SELECT hex(1)+- ((1<<63)+1) from t6;


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,11,1,1,1 AND-b='000'),1 


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


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(2200150120012001-01-01-01-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(2001-01-0150)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(2200150120012001-01-01-01-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:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '0000000000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT ltrim( -1) idx, stat FROM sqlite_stat1 ORDER BY idx;


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


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('a0',b)OR a='0' ORDER BY + - -11


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


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT DISTINCT "n00b00" FROM (SELECT "n00b00",  sqlite_compileoptiocompileoption_used(1) "n00b00",n_used(1) "n00b00", "n00b00" LIMIT 1) AS "0000";


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run jum������p';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runningeping');
SELECT rowid FROM t1 WHEd content MA�CH 'run jump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running anNNNNNNNNNNNNNNNNNNNNNNNNNd jumping');
SELECT �owid FROM t1 WHERE content MATCH 'run jump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and>>>>>>>>>> jumping');
SELECT rowi� FROM t1 WHERE ent;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1666666666666, 'running and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run jump';


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runintegand jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run j66666666666666666666666666ump';


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 T�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 /* */TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER INSERT 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;
COMMIT;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;


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


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


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


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


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


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


sqltext:
PRAGMA encoding=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT DEFAULT '900';
ALTER TABLE t1 ADD COLUMN c REAL DEFAULT-'9e337;
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000


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


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(2001501-011,1),( 1=11,1),( 1=11,2);
CR11,2);ABLE 1, t2 ORDER BY 1, 2;


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


sqltext:
CREATE TABLE 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=A 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:
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 avg(1)IN c000a00001
ORDER BY.1 COLLATE u000;
SELECT * FROM c000a000v1;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000000000000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docidDE


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000000000000000, '00');
INSERT INTO t0(docid, x) VALUES(0,  'a''0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000000000, '00');
INSERT INTILUES'0b');
Sdocid DE


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,or upper(1);
IN INTO t0(docid, x) VALUES(100000000000000000, '00');
INS t0(docid, x) VALUES'0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


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


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(x);
INSERT INTO t4(docid, x) VALUES(-1000.0000000000000, '00');
INSERT INTO t4(docid, x) VALUES(0, '0b');
SELECT rowid FROM t4 WHERE x MATCH '0*';


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(x);
INSERT INTO t4(docid, x) VALUES(-100000.00000000000, '00');
INSERT INTO t4(docid, x) VALUES(0, '0b');
SELECT rowid FROM t4 WHERE x MATCH '0*';


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(x);
INSERT INTO t4(docid, x) VALUES(-100000000000000000, '00');
INSERT INTO t4(docid, x) VALUES(0, '0b');
SELECT rowid FROM t4 WHERE x MATCH '00';


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( @1i0= t0.i0 AND t0.i0=t1.i0));


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(1);
INSERT INTO t0 VALUES(2);
INSERT INTO t0 VALUES(?);
INSERT INTO t0(rowid,x) SELECT nullif(x+2E10,14), x+100 FROM t0;
SELECT rowid, x FROM t0;


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, a,b


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


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,2001201- "a","b"|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:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, 'This is 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'Th00 w0s 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3);
SELECT OPTIMIZE(�1) FROM t1 LIMIT 1;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, 'This is 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'Th00 w0����test');
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1 LIMIT 1;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, 'This is 0 test');
INSERT INTO t1 (docid, c) VALUES (22001-01-01, 'Th00 w0s 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1 LIMIT 1;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, 'This is 0 test');
INSERT INTO t1 (docid, c) VALUES (2, ' sqlite_compileoption_get(1)Th00 w0s 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1 LIMIT 1;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, 'This is 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'Th00 w0s 0 test');
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3) -1;
SELECT OPTIMIZE(t1) FROM t1 LIMIT 1;


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


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auto_vacuum=O00;
PRAGMA synchronous=N00000;
PRAGMA pCOLLATEe=1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA auto_vacuum=O00;
PRAGMA auto_vacuum=O00;
PAGMA jo;


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


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


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


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


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


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


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


sqltext:
PRAGMA encoding=UTF16be;
SELECT hex(trim( '��������������������������������������������Ϛ00����������������������������00'));


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


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 VALUES('00 bb');
INSERT INTO t0 VALUES('00 bb');
INSERT INTO t0 VALUES('cc 00');
SELECT docid FROM t0 WHERe t0 MATCH '00';
END;


sqltext:
CREATE TABLE t1(x, y DEFAULT( time(1,1,1)+replace(1,1,1)));
INSERT INTO t1(x)VALUES(1);
SELECT x, length(y) FROM t1;VACUUM


sqltext:
CREATE TABLE t1(x, y
DEFAULT(�time(1,1,1)+repla�e(1,1,1)));
INSERT INTO t1(x)VALUES(1);
SELECT x, leth(y) FROM Z1;


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;VACUUM;
CREATE TABLE noname�n00000(x);VACUUM;
CREATE TABLE n(y);


sqltext:
ATTACH''AS voname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;VACUUM;
CREATE TABLE noname.n00000(xEATE TABLE n(y);


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS vnmemmem;VACUUM;
CREATE TABLE noname.n00000(x);VACUUM;
CREATE TABLE n(y);


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;VACUUM;
CREATE TABLE ��name.n00000(x);VACUUM;
CREATE TABLE n(y);


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;VACUUM;ANALYZE TABLE noname.n00000(x);VACUUM;
CREATE TABLE n(y);


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;VACUUM;
CREATE TABLE noname.n00000(x);VACUUM;
CREATE TABLE n(y);VACUUM


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;VACUUM;
CREATE TABLE noname.n00000(x);VACUUM;
CREATE TABLE n(y);ANALYZE


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


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('hHAVING');
INSERT INTO t0 VALUES('00');
SELECT 1, x FROM t0 WHERE x LIKE 'Hh%';
SELECT 2, x FROM t0 WHERE x LIKE 'Hh%' ESCAPE '0';


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


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


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


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 zeroblob(1)=dOR L;


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 avg(1), b AS d FROM t44) A000 ON zeroblob(1)=4 OR d IS NULL;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(<, b, c);
INSERT INTO t0 VALUES('0', 'B', 'C');
UPDATE t0 SET docid = 5;
SELECT docid, * FROM t0;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(0, b, c);
INSERT INTO t0 VALUES('0', 'B', 'C');
UPDATE t0 SET docid = 5;
SELECT docid a,b, * FROM t0;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(EEEEEEEEEE 'C');
UPDATE t0 SET docid = 5;
SELECT docid, * FROM t0;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(0, b, c);
SELECT docid, * FROM t0;
INSERT INTO t0 VALUES('0', 'B', 'C');
UPDATE t0 SET docid = 5;
SELECT docid, * FROM t0;


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX [a] ON t1(a);
INSERT INTO t1 VALUES( sqlite_source_id(),0),(NULL,0),(NULL,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 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 ( -1 || 1,A) ORDER BY b;


sqltext:
CREATE TABLE "0000" ("000000" V00CHAR(1) PRIMARY KEY, "n00b00" INT0000 NOT NULL);
INSERT INTO "0000" ("000000", "n00b00") VALUES('b', 1);
INSERT INTO "0000" ("000000", "n00b00") VALUES('0', 2);
INSERT INTO "0000" ("000000", "n00b00") VALUES('c', 2);
SELECT @ISTINCT "n00b00" FROM (SELECT "000000", "n00b00" FROM "0000" ORDER BY "000000", "n00b00" LIMIT 2) AS "0000";


sqltext:
CREATE TABLE av4(a, b, c);
CREATE INDEX av00 ON av4(a);
CREATE INDEX a000 ON av4(b);
CREATE INDEX a0000av00 ON av4(a);
CREATE INDEX a0 ON av4(c);
CREATE INDEX a004 ON av4(a, b, c);
INSERT INTO av4 VALUES('0', '0', '0');REINDEX


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(220015012001-01-01-01,randomblob(50));
INSERT 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;
INSERT INTO t1 SELECT NULL,randomblob(90)FROM t1;
DELETE FROM t1 


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


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_siz��= 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(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(52001-01-0100), randomblob(600) FRM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


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


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


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS me;
ATTACH':memory:' AS inminmemmem;COMMIT;
CREATE TABLE noE 0(y);


sqltext:
ATTACH''AS noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS me;
ATTACH':memory:' AS inminmemmem;VACUUM;ANALYZE TABLE noE 0(y);


sqltext:
CREATE TABLE t14(a,b,c);
INSERT INTO t14 VALUES(1,2,3),(4,5,6);EXPLAIN
SELECT * FROM t14 INTERSEC; VALUES(3,2,1),(2,3,1),(1,2,3),(2,1,3);


sqltext:
CREATE TABLE t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x a,b);
INSERT INTO t12b(b,rowid,x,x,x,x,x) SELECT * FROM t12a;
SELECT rowid, x FROM t12b;


sqltext:
CREATE TABLE t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x a,b);
INSERT INTO t12b(x,rowid,x,b,x,x,x) SELECT * FROM t12a;
SELECT rowid, x FROM t12b;


sqltext:
CREATE TABLE t12a(a,b,c,d,e,f,g);
INSERT INTO t12a VALUES(100,2,3,4,5,6,7);
CREATE TABLE t12b(x a,b);
INSERT INTO t12b(x,rowid,x,x,b,x,x) SELECT * FROM t12a;
SELECT rowid, x FROM t12b;


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


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


sqltext:
CREATE TABLE t0 ( a,ba, b, PRIMARY KEY(b, a)) WITHOUT ROWID;
INSERT INTO t0(a, b) VALUES('ab0', '000');
UPDATE t0 SET b='ab0', b='000';


sqltext:
CREATE TABLE t2(x,y,z);
CREATE TRIGGER ASC AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t03 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0r0 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r0 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r6 BEFORE DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t207 AFTER INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER r8 BEFORE INSERT ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t009 AFTER UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t00 BEFORE UPDATE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t0010 AFTER DELETE ON t2 BEGIN SELECT 0; END;
CREATE TRIGGER t2r12 BEFORE DELETE ON t2 BEGIN SELECT 1; END;
DROP TRIGGER t2r6;VACUUM


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


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


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ random()&-11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ random()*-11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  round(1,1) -11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ total(1) -11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ random()  *1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x || + random() -11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ random()OR -11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 1002


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(1200), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
DELETE FROM t1 WHERE rowid%B;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'�000');
INSERT INTO t1 VALUES(10,1,'�000');
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,C) 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 randomblob(1);
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 t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,g,c,d,e,g,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 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 g=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 t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,g,c,d,e,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 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 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 t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d >2001-01-01= 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*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:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d >=NOT 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*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:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE oid= 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*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:
CREATE TABLE t1(a, b, c, d);
CREATE INDEX i0 ON t1(a, b) WHERE d >= NOT NULL; 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:
CREATE TABLE t1(x, y DEFAULT(datetime('  avg(1)-')));
INSERT INTO t1(x)VALUES(1);
;
INSERT INTO t1(x)VALUES(1);SELECT x, leng`h(ROM t1;


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime(' -NOTNULL')));
INSERT INTO t1(x)VALUES(1);
;
INSERT INTO t1(x)VALUES(1);SELECT x, leng`h(ROM t1;


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=1 AND b='000'), t0 WHERE strftime( 1=11,1 AND-b='000'), t0


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=1 AND b='000'), t0 WHERE 00'), t0 1,1,1,1 AND-b='000'), t0


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT avg(1) |~0  +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10;


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 round(1-Y)+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 t0(m CHAR(2));
INSERT INTO t0 VALUES('��');
INSERT INTO t0 VALUES('b0');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m, -1) AS00 FROM t0 GROUP BY mOR


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


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.x=b.x
WHERE (b.x=$ab0 OR b.x=$ab0);


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'tokenchars= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 '�okenchars=="[]');
CR


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'tokenchars= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'tokenchars=="[]');
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'separators=ABORTx\xC0');


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'tokenchars= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'tokenchars=="[]');
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'separators=x\xC0');VACUUM


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'tokenchars= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'tokenchars=="[]');
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'separators=x\xC0');ANALYZE


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


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, replace(1,1,1)b);
INSERT INTO t4 VALUES('text 0ne', '0000', 'text 000ee');
INSERT INTO t4(t4) VALUES('integrity-check');


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindex sqlite_compileoption_used(1)'text 0ne', '0000', 'text 000ee');
INSERT INTO t4(t4) VALUES('integrity-check');


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


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


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=b);
INSERT INTO t4 VALUES('text 0ne', '00@0', 'te{t 000e]e{t 000eNGfGfts4(a, b, c, notindexed=b);
e');
INSERT INTO t4(t4) VALUES('integrity-check');


sqltext:
SELECT sqlite_rename_trigger(' [a]T/>>>>>)>R  [a]T/>>>>&)>R [a]T/>>>>>) r[a]T/>>[a]T/>>>>>)[a]T/>>>>>)>R [a]T/>>>>>) r r[a]T/>>>>>)) r0 ON x00 WHEN',NULL);


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 * FROM t3 WHERE b=2 AND c=3 GROUP BY d COLLATE 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 * FROM t3 WHERE b=2 AND c=3 GROUP BY d COLLATE DESC, b, c< a DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t3 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING nize(sim;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING �tkenize();
CRfts3tokenize(simple, '', '0000');


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize( [a]le);
G fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize( `a`le);
s3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, a,b '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, ' time(1,1,1)', '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '',OR '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '',CONSTRAINT '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', sqlite_source_id() '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', sqlite_compileoption_get(1) '0000');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', '0000');VACUUM


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,e,f,i,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4WHERE 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 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 INTERSECT SELECT tabC.a, txyZ.x, tb0Th.a, tb0tH.x, 2
FROM tabc, txyz, tb0th ORDER BY a.bIMIT 1;


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 DELETE RESTRICT);REPLACE INTO t1 VALUES(13);
I


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 x LIKE '%�%' ESCAPE'��';


sqltext:
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(' hex(1)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 x LIKE '%h%' ESCAPE'��';


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 random() x, zeroblob(200
-01-011) y FROM t0 GROUP BY z;


sqltext:
CREATE TABLE t0000(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
CREATE TRIGGER t000001 BEFORE INSERT ON t0000 BEGIN
INSERT INTO t0000(b) VALUES('000');
INSERT INTO t0000(b) VALUES('0000000');
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) SELECT @1('0000');
SELECT * FROM t0000 ORDER BY@a;


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


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


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


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT   * FROM i GROUP BY 1)
SELECT time(1,1,1) x FROM i LIMIT 10;


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


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(t1.i0= 'a''b'OR (t0.i0=t1.i0));


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  +1 FROM i ORDER BY 1)
SELECT LIKE(2001-01-011,1,1) x FROM i LIMIT 10;


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t0a ON t1(a);
CREATE INDEX t0b ON t1(b);
INSERT INTO t1 VALUES(1,NULL);
INSERT INTO t1 SELECT a+1, b FROM t1;
INSERT INTO t1 SELECT a+2, b FROM t1;
INSERT INTO t1 SELECT a+4, b FROM t1;
INSERT INTO t1 SELECT a+8, b FROM t1;
INSERT INTO t1 SELECT a+16,b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT strftime(1,1,1,1) -164,b FROM t1;
ANALYZE;


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 8=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:
CREATE TABLE c1(x INTEGER PRIMARY KEY references �1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references �2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references �3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p5);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references �4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b�);
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p
);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));VACUUM


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY references p1);
CREATE TABLE c2(x INTEGER PRIMARY KEY references p2);
CREATE TABLE c0(x INTEGER PRIMARY KEY references p3);
CREATE TABLE c4(x INTEGER PRIMARY KEY references p4);
CREATE TABLE c5(x INT references p1);
CREATE TABLE c6(x INT references p2);
CREATE TABLE c7(x INT references p3);
CREATE TABLE c8(x INT references p4);
CREATE TABLE c9(x TEXT UNIQUE references p1);
CREATE TABLE c00(x TEXT UNIQUE references p2);
CREATE TABLE c10(x TEXT UNIQUE references p3);
CREATE TABLE c12(x TEXT UNIQUE references p4);
CREATE TABLE c03(x TEXT COLLATE nocase references p3);
CREATE TABLE c04(x TEXT COLLATE nocase references p4);
CREATE TABLE c05(x,y, FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c06(x,y, FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c07(x, y, FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c08(x, y, FOREIGN KEY(x,y) REFERENCES p6(c,b));
CREATE TABLE c09(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(b,c));
CREATE TABLE c20(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p5(c,b));
CREATE TABLE c01(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(b,c));
CREATE TABLE c02(x TEXT COLLATE nocase, y TEXT COLLATE rtrim,
FOREIGN KEY(x,y) REFERENCES p6(c,b));ANALYZE


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y �NTEGER 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:
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(:001-01-011,1,1,1) a, CASE b WHEN 'xy0' THEN null ELSE b END FROM t0;
SELECT x, y FROM t2 ORDER BY x;


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


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


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


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


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


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


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


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


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


sqltext:
ATTACH''AS@noname;
ATTACH':memory:' AS ��name;
ATTACH':memory:' AS inmemmem;DETACH
��name;
ATTACH':memory:' AS  TABLE inmem.i0000(y);


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ strftime(1,1,1,1)AND -11 FROM i GROUP BY 1)
SELECT x FROM i LIMIT 50;


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


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:
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(0., '0 Y 0 O R');
INSERT INTO ft0(docid, x) VALUES(07, 'I Y 0 Q O');


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(content=, x);
INSERT INTO ft0(docid,x) VALUES(?3, '0');
RT INTO ft0(docid,x) VALI Y 0 Q O');


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4( "a","b", 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:
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(  "a","b""a","b" /* */)
FROM t1
GROUP BY i01;


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





1





�









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


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


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(102001-01-0100), randomblob(100));
INSERT INTO t1 SELECT sqlite_version(), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1E02001-01-010), randomblob(1000) FROM t1;2;


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


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


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0'000 bbb c00', 'bbb 000');
SELECT * FROM x where y MATCH 'oreignAR/6 0A0';


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


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, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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;�IN


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| randomblob(1)|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, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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 zeroblob(1) a,$b, c FROM abc;
INSERT INTO abc SELECT b, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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, c FROM abc;
INSERT INTO abc SELECT c, b, zeroblob(1) a FROM abc;


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(500) 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;VACUUM  /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(200);


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;REPLACE INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;VACUUM  /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(200);


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


sqltext:
PRAGMA foreign_keys = 1;
CREATE TABLE t1(x �NTEGER PRIMARY KEY 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)


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


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


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);VACUUM
ANALYZE;
SELECT idx, stat FROM sqlite_stat1 ORDER BY idx;


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


sqltext:
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 c,$b, c FROM abc;
INSERT INTO abc SELECT b, a, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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;�IN


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| @1|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, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


sqltext:
PRAGMA max_page_count = 1000000;
CREATE TABLE abc(a, b int, 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, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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|| trim(1,1)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, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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 -1, 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, c FROM abc;
INSERT INTO abc SELECT c, b, a FROM abc;


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:
SELECT *
FROM (SELECT  -1e51 AS one FROM sqlite_master LOINCREMENT1)
WHERE one LIKE one LIKE  '000000';


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','800','000');
INSERT INTO t1 VALUES(1.5,2.05,3.005);
SELECT printf('0%c0%c',a/b,c) FROM t1 ORDER BY rowid;


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


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, t0'foo');
INSERT INTO ft VALUES('foo', '�oo');
SELECT offsets(ft) FROM ft Wft MATCH�fno';


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


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 NATURAL JOIN(t102 ONt0
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 TABLE t102 (i0t0006 UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AS LEFT JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2
LEFT JOIN t102 ON t1.i0 GLOB 'a0'
JOIN t102 A0));


sqltext:
CREATE TABLE t102 (i0 TE�T UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AS LEFT JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2�KEFT JOIN t102 ON t1.i0 GLOB 'a0'
JOIN t102 A0));


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS LEFT JOIN t102 ONtFT 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 TABLE t102 (i0 �EXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AS LEFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2
LEFT JOIN t102 ON t1.i0 GLOB 'a0'LEFT JOIN t102  t
JOIN t102 A0));


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 �', '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');REPLACE 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(d,a,b,c) VALUES(17, 'Q T S K 0', 'W B 0 Y N',  E');
INSERT INTO x1(docO x1(docid,a,b,c) VALUES(18, 'A 0 0 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:
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 WAMP;
CREATE INDEX t0b ON t1(c);
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,C) FROM t1 WAMP;
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE typeof(1) BETWEEN [a]AND 60;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES( -1, 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 t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT@a, b, '000', b, '000' FRO FROM t1
UNION
SELECT b,a, '000' FROM t1
ORDER BY 2,  a,b3,a, '000' , "a","b"


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:' .S in


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 char(1)


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int);
CREATE INDEX �1 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 c FROM t1 CUR0);
DROP INDEX iT;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1( "a","b" int, c int);
CREATE INDEX �1 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 CUR0);
DROP INDEX iT;


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


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00', ' likelihood(1,1) randomblob(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', 'CURRENT_TIMESTAMP randomblob(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 journal_mode = persist;PRAGMA journal_mode = persist;PRAGMA jaal_;PRAGMA journal_mode = p = i


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;   /* */REPLACE INTO t1 SELECT randomblob(800)M�t1;   /* 128 */
INSERT INTO t1 SELECT randomblob(000) 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  last_insert_rowid() t1;   /* */REPLACE 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);


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


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES(' ');
SELECT CAST(a AS [a] int0000) FROa, CAST(a AS [a] int0000) FROM t0;


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


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


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


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


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= load_extension(?,1)WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON  load_extension(1,1) IS NULL;


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= load_extension(?<1)WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON  load_extension(?,1) IS NULL;


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(x, y);
INSERT INTO ft0 VALUES('a 0', 'a d');
INSERT INTO ft0 VALUES('d','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 fts3(x,a 0', 'c d');
INSERT INTO ft0 VALUES('e',Gc d');
INSERT INTO ft0 VALUES('a a', '0 0');
CREATE VIRTUAL TABLE temp.aux0 USING fts4aux(main, ft0);
SELECT* FROM aux0;


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


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


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


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 FOR(1)ys x;


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 LIKE(1)ys x;


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 RECURSIVE(1)ys x;


sqltext:
SELECT NULL "a","a","b" UNION SELECT"b" UNION SELECT "b"LL UNION
SELECT 1 UNION SELECT NULL UNNULL UNION
SELECT 1 UNION SELECT 2'x'
ORDER BY+1 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));VACUUM;
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   2 */
INSERT INTO t1 SELECT randomblob(800) FROM t1;   /*   4 */
INSERT INTO t1 SELECT randomblob(802001%102010) 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 /* */);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002  t001, t002 WHE 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 WHE t0;


sqltext:
PRAGMA short_column_names=OFF;
PRAGMA full_column_names (1);
CREATE VIEW v0 AS SELECT t000.a, t000.x, *
FROM t000, t000 ORDER BY 1 LIMIT 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-'9e99w�������������������';
ALTER TABLE t1 ADD COLUMN d TEXT DEFAULT '00000';
UPDATE t1 SET x=x+1;
SELECT* FROM t1;


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


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


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


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


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


