# 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,2) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+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(0,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(102001-01-01,1,'0000');
INSERT INTO t1 VALUES(20,1,'od00');
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, 'o0.0');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'+'|~substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+577777777772001-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 30 AND 60;


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1' sqlite_compileoptio._get(1));
IN VALUES( VALUES('\0E0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1'""""""""""""ileoption_get(1));
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 V������');
INSERT INTO t0 VALUES('0');
INSEWT;
I


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');
INSEWT;
I


sqltext:
SELECT 1.000<000.0000-00<00000<0<00<0<000.00<0<00<0<000.0600<000.06060000600<000.0606000000-00<00000<0<000.06<000.0600<000.0606000000-00 >=00000


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


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 (SELECT                                 "a", "a",2,4,8);10)


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


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 3,�,a, '000'COLLATE'000', b, ' b, '000


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 3,3,a, '000', 3;a,


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
GROUP BY 3<3,a, '000', 3,a, '000', b, ' b, '000


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
GROUP BY 3,3,?, '000', 3,a, '000', b, ' b, '000


sqltext:
CREATE TABLE t1(a, b, c);
INSERT INTO t1(_) VALUES('0');000');
CREATE INDEX i0 ON t1(c, b, c);
ANALYZE;
SELECT o00(se) FROM s000;


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(5)LIKE '000' END
FROM t1 ORDER BY 1;


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);
INSERT 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 ISNULL
2;


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','6000000160000 40000 10000 2000 600 100 4001�');
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,i,e,f,g,h);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','6000000160000 40000 10000 2000 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 t5(a, b);
CREATE TABLE t0(c, d);
INSERT INTO t0 VALUES(1, '000');
INSERT INTO t0 VALUES('abc', '00000');
SELECT * FROM (SELECT * FROM t5 WHERE a=1 AND b='000'), t0 WHERE strftime(1,CURRENT_DATE);
IFSc='


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(a,b,c,e,c,d,b,c,d,e,e));
SELECT DISTINCT* 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 [a] WHERE [a] AND b=? AND c=? AND d=? AND e=?;


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0
LEFT JOIN t102  t1 ON t0.i0 GLOB '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 t0.i0 GLOB '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  "a" OR (t0.i0< time(1,1,1)&500 AND t0.i0=t1.i0));


sqltext:
CREATE TABLE pp(a UNIQUE, b, c, PRIMARY KEY(a, c)) WITHOUT rowid+
CREATE0);
INSERT INTO pp VALUES(1, 2, 3);
INSERT INTO cc VALUES(2, 3, 


sqltext:
CREATE TABLE pp(a UNIQUE, b, c, PRIMARY KEY(a, c)) WITHOUT rowid;
CREATE 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);VACUUM


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  upper(1) FROM i ORDER BY 1)
SELECT /* */ x FROM i LIMIT 775


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 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 2 FROM t91 LEFT JOIN t92 ON@a=2 || b= load_extension(1<1)WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=20 AND b=3 WHERE y IS NULL;


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


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(0e02,  (1),"b")
FROM t1
GROUP BY i01;


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(0e02,  "a","b")
FROM t1
GROUP BY 002;


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:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 /* */JOIN t102  t1 ON t1.i0 GLOB 'a0'
JOIN t102 AS t2 ON(t2.i0= t0.i0 AND(t2.oid>500 AND t2.i0=t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 /* */JOIN t102  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:
CREATE TABLE t1(x, y DEFAULT(eatetime('



�


















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


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


�


















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


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


�


















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


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

















6


 total(1)

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


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

-0es

















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


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
































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


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


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(c,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 *, '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 '0: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 unicode(1) idx, date(1,idx) stat FROM sqlite_stat1 ORDER BY idx;


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<1.;
CREATE TRIGGER FTER INSERT ON �1 WHEN new.x=74 BEGIN
DE


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/1.;
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length( @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&1.;
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length( @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%Y<1.;
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length( @1y) FROM t1 ORDER BY x;


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_master;
S


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, notindexed=p00, a000, notindexed=p00, notindexed=poi);
INSERT,'0 �);
INSERT INTO t2 VALUES('0', '0 0 0');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, notindexed=pa0 a000, notindexed=p00, notindexed=poi);
IN
INSERT INTO t2 VALUES('0', '0 0 0');


sqltext:
CREATE TABLE t0(x TEXT UNIQUT, y TEXT UNIQlE, z);
INSERT INTO t0 VALUES('000','000','0');
SELECT DISTINCT* FROM t0 WHERE (8='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 y ISNULL N


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


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


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


sqltext:
PRAGMA foreign_keys =NO;
CREATE TABLE t1(x, y, PRIMARY KEY(x, y));
CREATE TABLE t2( [a]a, b, FOREIGN KEY(a, a) REFERENCES t1 ON @ELE;


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


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_check


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t0006(a COLLATE nocase PRIMARY KEY);
INSERT INTO t0t0006 VALUES(' sqlit�_compileoption_used(1) -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,'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:
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 || 777777777,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(a);
A


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


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(a int, b int, c int sqlite_compileoption_get(1));
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT a FROM t1 WHERE a>1.);ANALYZE
DROP IN


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


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, -13,'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,C,'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 3. AND 60;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '000000000000000 D00' 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_stat1O


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '-00000000000000 D00' 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 '000000000000000 DA0' 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  'a''b''f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '000000000000000 D00' 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 '000000000000000 D00' 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)OR stat FROM sqlite_stat1 ORDER BY 002;


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


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


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


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


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


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE char (2001,0 || 1,A) ORDER BY b;


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(1,2,3),(2,3,4);
SELECT c FROM t1 WHERE char (2001,01-011,A) OR random()


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


sqltext:
CREATE TABLE t0(a,b,c int,d,e, PRIMARY KEY(a,b,d,e,a,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,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,a,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,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,d,b,c,d,e,c,d,e,e,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=? AND d=?8AND e=?;


sqltext:
CREATE TABLE t0(a,b,c,dc int,d,e, PRIMARY KEY(a,b,d,e,c,d,b,e,c,d,b,c,d,e,c,d,d,b,c,d,e,c,d,e,e,e));
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,d,b,c,d,e,c,d,e,e,c,d,b,c,d,e,c,d,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 [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00-8000000000''00000' ON [sill0 0 0a0e](c);
INSERT INTO [sill0 0 0a0e] VALUES(1, 2, 3);
INSERT INTO [sill0 0 0a0e] VALUES(4, 5, 6);
ANALYZE;
SELECT idx, date(1,idx) stat FROM sqlite_stat1 ORDER BY idx;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00 zeroblob(1)00000000000''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 t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 
JOIN t102 ON t0.i0 IN t102 
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 ON t1.i0 IN t102 
JOIN t102 �S 
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 ON t1.i0 IN t102 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t1 /* */IN t102 A0=t1);


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 �1 ON DELETE SET NULL);REPLACE INTO t1 VALUES(13);REPLACE INTO t1 VALUES(13)


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


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


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


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


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-1,1,'00000f000000');
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,5,'0S(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VA00000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t002 O


sqltext:
CREATE TABLE t1(a,x);
INSERT INTO t1(oid,a,x)VALUES(-9,1,'00000f000000');
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(600002001-01-0100,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,5,'0S(10000000000,57,'0000000000000ff0');
INSERT INTO t1(oid,a,x) VA00000');
CREATE INDEX t000 ON t1(a);
CREATE INDEX t002 O


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


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


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


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


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 �a00 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');
INS%RT 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('Wa00000''0 0le0t 0l00. A sto00 b000 u0 and 0he');
INSERT INTO t2 VALUES('f
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�S0000 fleet');
INSERT INTO 0 an000 00"0e000000');
INSER t2  00 Se0000000. William t000 m00');
INSERT I^TO t2 LUES('to 0a000 he'000''0 0le0t 0�00RT INTO t2 VALUES('. A st);
INSERT INTO t2 VALUES('0u 0p. W0000000 w000 0f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 the0 he r00 th0 h000');�HNSERT INTO t2 VALUES('Knd wa00 f00 0ol0');
0u00 0r00 0h0 nort0.');
INSERT INTO  VALUES('00 10 Septe}ber 0h0 wi00 d00 tu0000 an0');
INSERT INT
0u00 0LUES('Wi00000''0 0fe0t 0l00. A sto00 b000 u0 and 0he')
INSERT INTO t2 VALUES('fleet was f00: to 0a0e 0e0 00');
QNSERT INTO t2 VALUES('Sain0-V0000F-sur-Somme and a0a00 wH00 f00 t00 win0');
I0h0 020 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i�E00 a0 0000');
INSERT INTO t2 VBLUES('0000(0s00) o0 20 S00000000. W000000 0000 m0000')�SERT INTO t2 VALUES('to 000000000 0 f0 m0000 to 0h0 �000, 00e00 0e');
INSERT INUO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as�');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e rUES('fleet was f000 t');
IERT INTO t2 VALUES('000 0000 0o0 0a00''s r0000::::0 f000 n0$ n00000


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES('0000');
INSERT INTO tRT 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,23');
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-�u0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('td 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 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


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


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


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


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


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER UPDATE ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe 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=1 OR Te0tId=2;
Id=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER UPDATE ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te+++++++++++++++++++++++++++++ 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:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<oBtύ00');
INSERT INTO t0 VALUE���ne0000A0');
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('one������0r00');
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 " "a"rators= "a","b"aB");
INSERT );
SELECT * FROM t0aux;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators= sqlite_compileoption_used(1)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= sqlitWWWWWWWWWWWWWWWWWWWWWWWWWWWWWe_compileoption_used(1)aB");
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 @NT 


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


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


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoB�Ϫ������������������������������ne0002A0');
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('oneatwoBt0�����������������������������̪ne0002A0');
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('oneatwoBt0�������������������������������ne0002A0');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0);
SELECT * FfOM


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 02001-01-01005-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 0005-01-0,1002


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


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a,INTEGER PRIMARb,I,TEGER Y KEY, b INT0000);
CREATE TABLE t2x (b,I,TEGER PRIMARY KEY);
SELECT t0. *FROM ((t0 JOIN t2 ON t0.a=t2.b) AS x JOIN t2x ON x.b=t2x.b) as00;


sqltext:
CREATE TABLE t0 (a INTEGER PRIMRIMARb,I,TEGER Y KEY, b INARY KEY);
CREATE TABLE t2 (a,INTEGER PRIMARb,I,TEGER Y KEY, b INT0000);
CREATE TABLE t2x (b,I,TEGER PRIMARY KEY);
SELECT t0.a FROM ((t0 JOIN t2 ON t0.a=t2.b) AS x JOIN t2x ON x.b=t2x.b) as00;


sqltext:
SELECT  1000000%00000300000101000000%0080000006000101000000%008000060000060060000101000000%0080000006000101000000%0080000600000000000800 060


sqltext:
SELECT  1000000%00000300000101000000%0080000006000101000000%00800 || 0060000060060000101000000%0080000006000101000000%00800006000000000008000060000;


sqltext:
SELECT  1000000%00000300000101000000%008000000600010%008000%008000060000060060000101000000%00800000060001001000000%008000000600010%0081000000%00800006000000000008000060000;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '000000000000000e+2 days' 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='CREATEINDEX t00 ON 00(a)'
WHERE name='t1a';
UPDATE sqlite_master SET sql= 'X''�&�CREATE�TABLE 00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


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


sqltext:
SELECT *
FROM (t0), (t0), (t0,((((((((((((((((((((t0, ( a,bt0), �tE), (t0)a�bt0), �tE), (t0)
W((((((((((hE), (t0)
WH),


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 WHERE(SELECT a,b= "a","b") )
FROM ( SELECT * FROM t1 ) AS x;


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


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
GROUP BY 2, 3,a, '000' , 2, 3, total(1), "a","b"


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
GROUP BY 2, oid, '000' , 2, 3,a, '000' , "a","b"


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


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


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


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


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('    (1)@1avg(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 abs(1)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 avg(1) c FROM 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 abs(1)IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);EXPLAIN
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);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);REPLACE 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);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(ROWid,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);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT hex(1) 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);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT round(1,1) 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);
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, round(1,1) 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 t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT zeroblob(1)id,2001-01-01 c FROM t1o0d


sqltext:
CREATE TABLE t1(a, b, c, d);EXPLAIN
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* count(1)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) OR "";


sqltext:
SELECT  1000000%0000<0000006000000000%00000006006000001000000%0000006000000000%00000006006000010000003000060000;


sqltext:
SELECT  1000000%000000000006000000000%00000006006000001000000001000000%0000006000000000%0000%0000006000000000%00000006006000010000003000060000;


sqltext:
#;��);
#
#CFY���(X
#C)unicode61o
#;�);[[[[[[[
#
#CFY���(X
#C);
#;);[[
##GA]� quot(1	�([[[[
#
#CFY���(X
#C);
���;
#C)#;�@;[[[[[[[[[
#CA�#;�);[[[[[[[
#;@


sqltext:
#;��);
#
#CA]����();
#CA]���#;�);
#CA]�(� ��(;#C);
#;�);
#CA]��((;
#CCASCADE(;
#


sqltext:
#;��);�#
#
#
#CA]��CA]���);�#
#
#
#CA]��CA]���);�#
#
#
#CA]��CA��(;��(;�(;
 
#
#
#C�(;#


sqltext:
#;����CAR���(6
#');#CA]��(;
#;
#;�;�);
#��(;
#;�)d
#CA]���A]����(;
#C);
#;�);
#CA]��((;
#;
#;
#;�);
#��(;
#


sqltext:
#;��);
#
#CA]���(;
#C);
#;�;
#C
#C);
#;�);
#�(;
#C);
#;�);
#CA]��((;
#
#CA]���(;
#C);
#;�);
#C#CA]��(;
#


sqltext:
#;��);
#C);
#;�)�(;
#C);
#;�);C);
#;�);
#CA]�(;
#C);
#;�);
#CA]��((;
#CA]��();
#;�)�(;
#C);;#


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


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


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


sqltext:
CREATE TABLE t0(m CHAR(2));
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 VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '� ';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '2001-01-01�"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH'�"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH'�""OR';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts4 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '" glob(1,1)"';


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


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


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


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(10201-01-8100));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%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(80201-01-0100));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%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(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 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(14201-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-6100));
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-9100));
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:
CREATE VIRTUAL TABLE t0 USING fts3(a, b, c);
INSERT INTO t0(a, b, c) VALUES('one t0ree four', ' "a","b"', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fts3(a, b, c);
INSERT INTO t0two';


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 c MATCH REPLACE(a, b, c);
INSERT INTO t0two';


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


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


sqltext:
CREATE TABLE t2(a INT, b TEXT, c BLOB, d REAL);
CREATE INDEX i0 ON t2(a ASC, b DESC, c ASC);
CREATE INDEX i4 ON t2(b DESC, a ASC, d DESC);
INSERT INTO t2 VALUES(1,'o00',x'00',1.0);
INSERT INTO t2 VALUES(2,'two',x'32',2);
INSERT INTO t2 VALUES(3,'0',x'00',3);
INSERT INTO t2 VALUES(4,'u',x'00A0A000',4);
INSERT INTO t2 VALUES(5,'f000',x'0000000000',5.0);
INSERT INTO t2 VALUES(6,'x',x'00',6);
INSERT INTO t2 VALUES(2,'two',x'3200',2.1);
INSERT INTO t2 VALUES(2,'w',x'00',2.0);
INSERT INTO t2 VALUES(2,NULL,NULL,3);
SELECT count(B) FROM t2;


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+ ?005WHERE@x=new.a;
INSERT OR IGNORE INTO l00 VALUES(new.a,00);
END;
INS


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
PRAGMA page_size=0000;
PRAGMA cache_size=00;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
DELETE FROM t0 WHERE rowid>102;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" ORDER BY   "a","b""a","b",  "a","b" LIMIT 1)�IS "";


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


sqltext:
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(randomblob(100));
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100)M�t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(100) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(102001%015010) FROM t1;
CREATE INDEX i0 ON t1(x);REINDEX


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 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 " "FROM a,b 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 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 sqlite_source_id() "a"FROM a,b a,b,"b");


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


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


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES(12001-01-01,2,3),(2,3,4);
SELECT c FROM t1 WHERE char (12001,01-01,A) OR changes()


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


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 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 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 t3(a EXINTEGER�PRIMARY KEY, b, c, d, e, f);EXPLAIN
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 VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning and juTABLE');
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, '�unning 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, '�unni)))))))))))))))))))))))))))))))ng and jumping');
SELECT rowid FROM t1OUTERE content MATCH 'run jump';


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'r_nning a�t 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, 'ruyning and jBYping');
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, 'ruyning UES(1umping');
SELECT row^d 


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 /* */-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- "a","b"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, 'running and jumping');
SELECT rowid FROM t1 WHERE content MATCH 'ru  jump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'FULing 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, 'DEFERRQBLEd 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, 'rRE��NCES 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, 'rREFERENCES jumpingREFERENCES');
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, 'runA%YLYZEd 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, 'runninAUTOINCREMENT');
SELECT rowid FROM t1 WHERE content MATCH 'runAUTOINCREMENT jump';


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(contntent, tokenizp porteent, tokenizp porter);
INSERT INTe t1(rowid, c�ntent) VALUES(1, 'rt1aing and jumping');
SELECT rowid FROM t1 WHERE content M-TCH 'run CURRENT_TIMEjuup';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'r2001-01-01unning and���ping');
SwiOM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running aness�ping');
Swid FROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruLEINTOUSING fts3(cning 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, 'running and jllllllllllllllll2001-01-01lllllllllllllumping');
SELECT rowid FROM


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'COLLATE WHERE conte');
SELECT rowid FROM t1 WHERE conte[p';


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


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


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='CREAT� TABLE!00(a NOT NULLCURRENT_TIMESTAMPt1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t10;
PR


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


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 �2r0 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 �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 �2r0 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 d2


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(1000.0000000000000, '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(1000000000.0000000, '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(100000000000.00000, '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(10000000000000.000, '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, '0b');
SELECT rowid FROM t0 WHERE x MATCH '00' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(1 -100000000000000, '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, '0b');
SELECT rowid FROM t0 WHERE x MATCH  'a''0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000.00000000000, '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(10000000.000000000, '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(100000000000.00000, '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=DES,);
INd, 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(1000.0000000000000, '2001-01-0100');
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(100000000000.00000, '2001-01-0100');
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, '00201-01-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(100000.00000000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '2001-01-010b');
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(10000000.000000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '2001-01-010b');
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.0000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '2001-01-010b');
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, ' sqlite_compileoption_get(1)');
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  'a''0*' ORDER BY docid DESC;


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  'a''b''0*' ORDER BY docid DESC;


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 ' min(1,1)0*' ORDER BY docid DESC;


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


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


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


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


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


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


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( zeroblob(9))| 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 |  sqlite_compileoption_get(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( zeroblob(12001-01-01))| new.b || '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,2010201- " ","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, 'Ph00 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;VACUUM


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1,CURRENT_TIMESTAMP);
INSERT INTO t1 (docid, c) VALUES (2, 'Th00 w0s 0 test');
INSERT INTO t1(docid, c) VALUES (3, '2001-01-01test');
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, strftime(1,1,1,1));
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE $ocid 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 (32001-01-01, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1LIMIT 1;


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


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts4(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 (32001-01-01, 'This is 0 test');
DELETE FROM t1 WHERE docid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1 LIMIT 1;


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


sqltext:
#EGIN;
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  'a''b''00';
END;


sqltext:
BEGIN;
CREATE VIRTUAL TABLE t0 USING fts4(order=desc);
INSERT INTO t0 SELECT('00 bb');
INSERT INTO t0 SELECT('00 bc');
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('bb cc');
INSERT INTO t0 VALUES('cc 00');
SELECT docid FROM t0 WHERE t0 MATCH  'a''0 strftime(1,1,1,1)0';
END;


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(0, b, c);
INSERT INTO t0 VALUES('', '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 = sqlite_compileoption_get(1)


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


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


sqltext:
CREATE TABLE av4(a, b, c);
CREATE INDEX av00 ON av4(a);
CREATE INDEX a000 ON av4(b);
CREATE INDEX a00000 ON av4(c);
CREATE INDEX a004 ON av4( /* */c);
INSERT INTO av4 VALUES('0', '0', '0');REINDEX rtrim(1


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


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


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


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


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


sqltext:
ATTACH''AS nooname;
ATTACH':memory:' AS ��naname;
ATTACH':memory:' AS ��name;
ATTACH'�memory:' AS me;
ATTACH':memory:' AS inminmemmem;COMMIT;
CREATE TABLE noE 0


sqltext:
ATTACH''AS nooname;
ATTACH':memory:' AS ��naname;
ATTACH':memory:' AS ��name;
ATTACH'�me:' AS me;
ATTACH':memory:' AS inminmemmem;VACUUM;REINDEX TABLE n


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


sqltext:
CREATE TABLE t0 ( a,ba, b, PRI);
UPDATE t0 SET b='ab0', b='0
INSERT INTO t0(a, b) VALUES('ab0', '000');
UPDATE t0 SET b='ab0', b='000';


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x+ random() - 1=111 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10/2


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(9000), 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:
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:
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(9200), randomblob(1000) FROM t1;
INSERT INTO t1 SELECT randomblob(1000), randomblob(1000) FROM t1;
DELETE FROM t1 WHERE rowid%B;


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


sqltext:
PRAGMA auto_vacuum = incremental;
PRAGMA journal_mode = DELETE;
CREATE TABLE t1(a PRIMARY KEY, b);
INSERT INTO t1 VALUES(randomblob(1000), randomblob(100));EXPLAIN
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:
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(102001-01-0100), randomblob(1000) FROM t1;
DELETE FROM t1 WHERE rowid%B;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(i,g,c,e,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 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(i,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 102 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(m CHAR(2));
INSERT INTO t0 VALUES('00');
INSERT INTO t0 VALUES(' -');
INSERT INTO t0 VALUES('c0');
SELECT count(*), substr(m,2,1) AS00 FROM t0 GROUP BY m OR round(1,M);


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=b);
INSERT INTO t4 VALUES('te��ne', '0000', 't%xt 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', 't%xtCURRENT_TIMESTAMP 000ee');
INSERT INTO t4(t4) VALUES('integrity-check');


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=b);
INSERT INTO t4 VALUES('teCURRENT_TIMESTAMPxt 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('texCURRENT_TIMESTAMPt 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('t avg(1)ext 0ne', '0000', 'tex�000ee');
INSERT INTO t4(t4) VALUES('integrity-check');


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=b);
INSERT INTO t4 VALUES(' total_changes()text 0ne', '0000', 'text 0L TABLE t4 USING fts4(a, b, c, n00ee');
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', 't sqlite_compileoption_get(1)ext 0L TABLE t4 USING fts4(a, b, c, n00ee');
INSERT iNTO t4(t4) VALUES('integrity-check');


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(, b, c, notindexed=a, b, c, nota, b, c, notindexed=a, b, c, notindexed=bb);
0C0ee');
INSERT INTO t4(t4) VALUES('inty-check');


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '', '00� @10');


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


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


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


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


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,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 * 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 x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE likely(1);
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE y1.q<y2.q;
SELECT * from z x1, z 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 AS x2 WHERE changes();
CREATE VIEW z AS
SELECT y1.p, y2.p FROM y AS y1, y AS y2 WHERE y1.q<y2.q;
SELECT * from z x1, z 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 AS x2 WHERE x1.a<x2.a;
CREATE VIEW z AS
SELECT y1.p, y2. *FROM y AS y1, y AS y2 WHERE y1.q<y2.q;
SELECT * from z x1, z 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 AS x2 WHERE x1.a<x2.a;
CREATE VIEW z AS
SELECT y1.p "a","b", y2.p FROM y AS y1, y AS y2 WHERE y1.q<y2.q;
SELECT * from z x1, z A;


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES( 'a''b'' 0 c d e');
INSERT INTO ft0 VALUES('f 0 b c d');
SELECT snippet(ft0, '0', '0', '', -1, 5) 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


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  sqlite_compileoption_used(1)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 REPLACE(ft0, julianday(1,1,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', '', substr(1,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', '', "a", lower(1)) FROM ft0 WHERE ft0 MATCH 'c';


sqltext:
CREATE TABLE t14(a,b,c);
INSERT INTO t14 VALUES(1,2,3),(4,5,6) INTERSECT VALUES( lower(8888E81),3,1),(NOT total(1),1,3);


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


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


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 1002


sqltext:
CREATE TABLE c1(x INTEGER PRIMARY KEY CONSTRAINT 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));ANALYZE TABLE ocase, y TEX(x,y) REFERENCES p6(c,b));


sqltext:
CREATE VIRTUAL TABLE x0 USING fts4(0, b);
INSERT INTO x0 VALUES('0 b c', 'd +2 dayse f');
INSERT INTO x0 SELECT DISTINCT* 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 DISTINCT* FROM x0;
INSERT INTO x0 SELECT DISTINCT* 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 DISTINCT* FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;
INSERT INTO x0 SELECT * FROM x0;VACUUM


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4(content=ft0);
INS(03, '0 0 N 0 G');
INSERT INTO ft0(docid,x) VALUES(04, 'C 0 0 U B');�IN0 Q 


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  -1R/ -100';


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 "a"/6 0"0';


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


sqltext:
PRAGMA cache_size = 10;
CREATE TABLE t1(x PRIMARY KEY);
INSERT INTO t1 VALUES(randomblob(940));
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(700) 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(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(500) FROM t1;
INSERT INTO t1 SELECT randomblob(940) 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  /* ows */
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(500) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;
INSERT INTO t1 SELECT randomblob(950) FROM t1;
INSERT INTO t1 SELECT randomblob(900) FROM t1;VACUUM  /* 64 rows */
BEGIN;
UPDATE t1 SET x = randomblob(200);


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


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


sqltext:
CREATE VIRTUAL TABLE ft USING fts3( >=, t0o);
INSERT INTO ft VALUES('', 'foo');
INSERT INTO ft VALUES('foo', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'fo :"o';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3( >=, t0o);
INSERT INTO ft VALUES('', 'foo');
INSERT INTO ft VALUES('fo @1o', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'fo :1o';


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


sqltext:
CREATE TABLE t102 (i  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));


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'LEFT JOIN t102  t
JOIN t102 A0));


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


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


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b�,NT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM (((t2 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, b�INT0000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM (((t2 JOIN t2 ON t0.a<t2.a) ASt0 JOIN t2 ON t0.a<t2.a) AS x JOIN t2  ON x.b=t2x.b) as00;


sqltext:
CREATE TABLE t0 (a INTEGER PRIMARY KEY);
CREATE TABLE t2 (a INTEGER PRIMARY KEY, b�1020000);
CREATE TABLE t2x (b INTEGER PRIMARY KEY);
SELECT t0.a FROM (((t2 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 t3(a INTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, c, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE b=2 AND c=3 GROUP BY b, c, b, a, c, d, e< f,E;


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


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


sqltext:
CREATE TABLE t3(a INTFGER 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 PLAN
SE


sqltext:
CREATE TABLE x(QUERYa,q);
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x AS x2 USING  (q)=HERE y1.q=y2.q;
SELECT * from


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


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


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


sqltext:
SELECT NULL "a","b" UNION SELECT "b"TL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY a.bys x;


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


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


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


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


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


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, t000 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�IN,EGER PRIMARY KEY, y, z);
EXPLAIN QUERY PLAN
SELECT DISTINCT* FROM t000, t001, t002  t001, t002 WHE t0;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,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+57777E-77 || 01-01-017,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CR 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 NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10200/-01-01,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || 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 BETWEEN 30 AND 60;


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(102001-01-01,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || 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 BETWEEN 30 AND 60;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('0');
INSERT INTO t0 VALUES('���0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=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');
INSEWT;
I


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=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');
INSEWT;
I


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


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


sqltext:
SELECT 1.000606000000-00<00000<0<000-00<?<00<0<000.060600000<0<000-0<?<00<0<000.060600000<000<?<00<0<000.0606000000-00<00000<0<000.060000


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0
LEFT LEKE 'a0'
JOIN t102 AS);


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


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 /* */(SELECT a,b, "a",2,4,8);10)


sqltext:
CREATE TABLE t3(a EXINTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b /* */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, a DESC, f,  e DESC, b, c, a DESC;


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', 3,a,3'000', b, ' b, '000' FR


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


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


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


sqltext:
CREATE TABLE t0(a,b,c,d, PRIMARY KEY(c,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');REPLACE INTO t0 VALUES('00000c','00000','0000000','000000');
SELECT *, '0' FROM t0 ORDER BY c, a;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a, a000, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi);
INSERT,'0 �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi,a0 a000, notindexed=p00 a0 a000, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi);
INSERT,'0 �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a0 a000, notindexed=p00, notindexed=xed=00, notindexed=p00, no00, notindexed=p00, notindexed=poi);
INSERT,'0 �);
exe;


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c,;
INSERT INTO t1 (docid, c) VALUES (1,  time(1,1,1));
IN=ERT INTO t1(docid,c) VALU0t0006 'T00t w00 0 test');
INSERT INTO t1(docid, c) VALUES (3, julianday(1,1,1));
DELETE FROM t1 WHERE 1=1; --0000
INSERT INTO t1(docid, c) VALUES (1, '0 t000');


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


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


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


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


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


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


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//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:
BEGIN TRANSACTION;
CREATE TABLE t1(a �nt char(1), b int, c int);
CREATE INDEX i1 ON t1(a,a);
INSERT INTO t1 VALUES(1,1,9);
INSERT INTO t1 VALUES(2,4,8);
INSERT INTO t1 VALUES(3,9,7);
INSERT INTO t1 VALUES(6,6,4);
UPDATE t1 SET b=a WHERE a in (10,12,20);
INSERT INTO t1 SELECT*FROM t1
WHERE a IN (SELECT a FROM t1 WHERE a>1.);ANALYZE
DROP IN


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


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


sqltext:
PRAGMA auto_vacuum= incremental;
PRAGMA page_size = 1000;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b);
INSERT INTO t1 VALUES( 5112001-01-01,randomblob(2500));
INSERT INTO t1 VALUES(?,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT [a]L,randomblob(2001-01-0150)FROM t1;
INSERT INTO t1 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( 5112001-01-01,randomblob(2500));
INSERT INTO t1 VALUES(?,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob(50)FRO;REPLACE INTO t1 SELECT NULL,randomblob(2001-01-0150)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(2001-01-0150)FROM t1;
DELETE FROM t1 WHERE a=1;


sqltext:
SELECT sqlite_rename_trigger(' ><AT0 ||||||||||||||||||||||||||||||||TRUGGEI b0 <=AT0 TWHEN',NULL);


sqltext:
SELECT sqlite_rename_trigger(' ><AT0 TRUGGEI b0 <=AT0 TWHE�����������������������������N',NULL);


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, -13,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+3,4,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o0*';
INSERT INTO t1 SELECT a+4,5,'0'||substr(c,4) FROM t1 WHERE c GLOB 'o00*';
INSERT INTO t1 SELECT a+5,6,'000'||substr(c,4) FROM t1 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;
SELECT c FROM t1 WHERE b=3 AND a BETWEEN 3. AND 6 ||.0;


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


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


sqltext:
CREATE TABLE t1(a, b, c, PRIMARY KEY(a,b)) WITHOUT rowid;
INSERT INTO t1 VALUES( quote(1),3,4);
SELECT c FROM t1 WHERE char (2001,01-011,A) OR random()


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


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,d,b,c,d,e,c,d,e,e,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00:0�00000000''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 t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t2.i0 IN  (1) 
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 DISTINCT* FROM t102 AS t0 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 ISNULL) );


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


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


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 �1 ON DELETE SET NULL);;
INSERT INTO t1 SELECT(13)


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


sqltext:
PRAGMA page_sidL;
PRAGMA wal_autocheckpoint == WAL;
PRAGMA journal_size_limit = 10.;
PRAGMA journal_size_limit = 10.0 ;


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


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x sqlite_compileoption_get(1));
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b | lower(1)| julianday(1,1,1) | sqlite_version()| '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 INU� z CHAR(900));
CREATE INDEX t000 ON t10(y);
EXPLAIN QUERY PLAN
SELECT total(1)
FROM t10 AS a JOIN t10 AS b ON a.y<b.x
WHERE (b.x<$ab0 OR b.y<$ab0);


sqltext:
CREATE TABLE t10(x �NTEGER PRIMARY KEY, y INU� z CHAR(100));
CREATE INDEX t000 ON t10(y);
EXPLAIN QUERY PLAN
SELECT total(1)
FROM t10 AS a JOIN t10 AS b ON a.y=b.x
WHERE (b.x<$ab0 OR b.y<$ab0);


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


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


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1 1=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 t0 sqlite_compileoption_used(1)leet 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,1=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 t0 sqlite_compileoption_used(1)leet 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1 1=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 t0 sqlite_compileoption_used(1)leet 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(' total(1)ai 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1 10es2,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 t0 sqlite_compileoption_used(1)leet 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,1');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileoption_used(1)leet 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileoption_used(1)leet wa0 r000 to 0a00 s00 0 sqlite_compileoption_used(1)i00-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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


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


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a","b""";
SELECT DISTINCT "a","b""""a""(SELECT count(*E TABLM t0) WHERE a==0;


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


sqltext:
CREATE TABLE t000(c0,�,I,T0000);
CREATE TABLE t002(c000 INT0000);
SELECT c000,* FROM t000 NATURAL JOIN t002 AS c000;


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


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


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBBt̍t̍00');
INSERT ECT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oeatwoBbϽ����������������������ѽ�����000000A0');
CREATE VIRTUAL TABLE t0auxUx;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB������ח����������������������������������");
INSERT @NT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB���������������������������������������������������������������������������");
INSERT @NT 


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwo��0ꪪ����������������������������ne0002A0');
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('oneatwoBt0ꪪ�������������������t���������ne0002A0');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)O


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBt0ꪪ��������������������������������������������������������ne0002A0');
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('oneatwoBT0ꪪ�����˪��������������������ux00002A0');
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('oneatwoBt0ꪪ�������������������������������������������������������������������������������ne0002A0');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0);
SELECT * FROM t0aux;


sqltext:
CREATE TABLE t000(a PRIMARY KEY, b) WITHOUT rowid;
CREATE INDEX t0000 ON t000(a);
INSERT INTO t000 VALUES('s','s0'),( substr(1,1,1)-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 '000000000000000e+2 days' 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_stat1O


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


sqltext:
SELECT *
FROM (t0E, ( ( t05, (t0, ( a,b0), �tE05, (t0, t0), �tE05, (t0, ( a,bt0), �tE), (t0)a,bt0), �bt0), �tE), (�0)a,bt0)E), (t0)
WH),


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), t0, ( a,bt0), �tE),t0), (n0,t05, (t0, ( a,bt0), �tE), (tP)a,b�0), �bt0), �tE), (t0)a,bt0)E), (t0)
WH),


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


sqltext:
CREATE TABLE t1(x, y DEFAULT(datetime('2001-01-01  ')));
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 -0 IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1RE


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 -1IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1RE


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


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts4(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE abs(C)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 fts4(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE abs(1)IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t;o0d;
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 fts4(c);
INSERT INTO t1(docid,c)VALUES( -11,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE abs(1)IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(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 fts4(c);
INSERT INTO t1(docid,c)VALUES(1,'i0 0 test');
INSERT INTO t1 (docid, c) VALUES (2, 'T000 w0s 0 te00');
INSERT INTO t1(docid,c)VALUES(3, 'T0is i0 0 test');
DELETE FROM t1 WHERE abs(1)IN (1,3);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO CURRENT_TIMESTAMPt1o0d;
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 <= ( @1);
DROP TABLE IF EXISTS t;
ALTER TABLE t1 RENAME TO t1o0d;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid,c) SELECT docid, c FROM t1o0d;
DROP TABLE t1o0d;


sqltext:
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);
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, zeroblob(1) 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);
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, zeroblob(1) c FROM t1o0d;
DROP TABLE t1


sqltext:
#;��)heck);n(;
#C
#C);�);
#�(;t���RO������;
#��FRO������;
#���A]���(;
#C
#C);
#;�);
#�(;
#C
#C);
#;�;#


sqltext:
#;��)Hheckpua�A]��A;
#C);ntFRO������;
#���A]���(;
#C
#C;
#C
#C);
#;�);
#�(;
#C
#C);
#;�);
#�(;
#C
#C);
#;�;#


sqltext:
#;����E�eckpwa�A]�our(;
#C);jm�
#
#C�;
#
#C);jm�
# 
#C�;
#
#C�USIVE;
#�(A
#
#A�;
#
#C���#


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


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


sqltext:
#REATE TABLE t1(a, b);
PRAGMA auacuuY=O00;
PRAGMA synchronous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA journal_000;
PRAGMA page_size=1000;
ode=TRUN;);


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '  ';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '""a","b""�';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' @1');
SELECT * FROM t0st WHERE k00000d MATCH '" strftime(1,1,1,1) blob"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH ' min(1,1)e(1,1,1,1) blob"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(�,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" glob(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" glob*1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" glob(,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH'�" glob(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" glob glob(1,1)(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,�,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" time(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" time(1,1,1) time(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '" t " t strftime(1,1,1,1)ime(1,1,1)strftime(1,1,1,1)ime(1,1,1)"';


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT+x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.a= (1);
SELECT DISTINCT @1p, y2.p FROM y AS y1, y  AS y1, y AS y2 Wz;


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(14201E01-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(70201-01-9100));
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:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,c,d,b,c,a,b,c,d,b,b,e,d,c,e,b,c,a,b,c,d,b,c,e,d,c,e));
SELECT DISTINCT* 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,e,c,d,b,c,e,d,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=? AND e=?;


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 c MATCH 'G  -13(a, b, c);
-NSERT INTO t0two';


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 c MATCH 'G fts3(a,  -1c);
-NSERT INTO t0two';


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 c MATCH 'G fts3(a, b, -1;
-NSERT INTO t0two';


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 c MATCH 'G fts3(a, b, c);
INSERT INTO o*two';


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=20 OR~~~~~~~~~~~~~~~2 OR ?1OR b=3


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


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


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


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 " "FROM a,b,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 randomblob(1) "a"FROM a,b,a,b,"b");


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning and juTABLE');
SELECT rowid FROM t1 WHERE content MATCH 'runTABLE';


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


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenze ent, tokenze porter);
INSERTrowid FROM t1 WH;ES(1, '�unning and jumping'�;
STCHp';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning and jum>>>>+++++++++++++++++++++++++++++>>>>X>>>>ping');
SELECT rowi����00 t1 WHERE content MATCH 'run �ump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unn,  "a","b" porter);
INSERT ing and jdmping');
SELECT rowGd FnOM jump';


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


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


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runnEE cEEEEEEEEEEEE t1 WHERE coEEEEEEEEEEEEEEEE t1 WHERE cEEEEEEEEEEEE t1 WHERE cog at0e01mping');
SELECT rowid n ju


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running ant jggROM t1 WHERE content MATing GntERE content MATing Gnt jumping');
CCH 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running ant jggggggggggggggggggggggggROM t1 Wning ant ent MATing Gnt jumping');
CCH 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '%Yyness 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, 'ruyness aruyness and jumping');
SELEnd jumping');
SELECT rowid FROM t1 WHERE content MATCH 'run jump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize'''''''''''''''''' porte'''''''''''''''''' porter);
INSERT INTO t1FROM 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 jumpiCS(1, ng');
SELECT rowid FROM t1 WHERE content MATCH 'ru  jump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'NOTNULL aNOTNULLing');
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, 'FULLing aNOTNULLing');
SELECT rowid FROM t1 WHERE content MATCH 'DEFERRED';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'FULLing aNOTNULLi FULLing aNOTNULLing');
SELECTng');
SELECT rowid FROM t1 WHERE contentCTng');
SELECT ro;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DEFERRQBLEd jumREATE VIRTUAL TRBLE t1 USINping');
SELECT rowid Ft1 Wjump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'TRANSACTYON jACTION');
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, 'TRANSACTIOU CTIOU jumping');
 ro


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'TRANSACTIOU jumpingCTIOU j');
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, 'TRANSACTION jACTION');
SELECT rowid FROM t1 WHERE content MATCH 'ruACTION';


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


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rREFCROSSES jVALUES');
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, 'rREFCROSSES jumpinROSSES jumping');
SROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runANeeeeed 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, 'runAN%YYXEd 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, 'runAN%YYZN%YYZEd |umping');
CTd 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'runAN%YYZEd jumping%YYZEd jumping');
SELE');
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, 'runANAL decimal(ted)YZEd 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, 'runninAUTOINCREMENT');
SELECT rowid FROM t1 WHERE content MATCH 'runAUTOINCREMENT jumpAUTOINCREMENT';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rCURRENT_TIMESTAMPunni total(1)RRENT_TIMESTAMPjumping');
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 CURRENT_TIMESTAMPand jumping');
SELECT rowid FROM t1 WHERE content MATCH 'CURRENT_TIMESTAMPrun CURRENT_TIMEjump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruLE t1 USI ftsM(cningNG ftsM(cning 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, ' sqlite_compileoption_ge sqlite_compileoption_get(1)llllllllllllllllllumping');
SELECT rowid FROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jlll�ll;
INSERT INTO t1(rolllRENAMEllllllllumpi\g');
SELECT rowid FROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jlll�ll;
INSERT INTO t1r);
INSERT INTO t1(rowid, contg');
SELECT rowid FROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jllllllllllllllLEd sum(1)Gllllumping');


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'rujlllllYYYYYYYYYYYYYYYYYYYY;YYYYYYYY');
SELECT rowid FR


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(10000000000000.000, '02001-01-010');
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(1000.0000000000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '02001-01-01b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC,order=DESC);
INSERT INE x) VALUES(100000.00000000000, '00');
INS�RT 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(10000000.000000000, '00');
INSERT INTO t0(docid, x) VALUES(?, '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(10000000.000000000, '02001-01-010');
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(1000.0000000000000, '0 a,b-01-010');
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(100000000, '002001-0B-02001-0B-01');
INSERT INTO t0(docid, x) VALUES(0, '0b');
SELECT rowid FROM t0 WHERE x MATCH '0*' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order�DESC);
INSERT INTO t0(docid, x) VALUES(100000.00000000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '2001-01-010b');
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(102001-01-01000000, '00');
INSERT INTO t0(docid, x) VALUES(0, '2001-01-010b');
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, y) VA min(1,1)2001-02001-01-011-010b');
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, '2001-01-010b');
SELECT rowid FROM t0 WHERE x MATCH '0*2001-00-01' ORDER BY docid DESC;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(x,order=DESC);
INSERT INTO t0(docid, x) VALUES(1000000000, ' s sqlite_source_id()qlite_compileoption_get(1)');
Sdocid DE


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,c,c,d,e));
SELECT * FROM t0 WHERE a=? AND b=? AND c=E AND d=? AND e= strftime(1e031,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, '�000');
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,9010201- "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 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,9030201- "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, strftime(1,1,1,1));
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE $ocid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1LIMIT 1;


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


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


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


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


sqltext:
ATTACH''AS nooname;
ATTACH':memory:' AS ��naname;
ATTACH':memory:' AS ��name;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;
ATTACH':memory:' AS inminmemmem;COMMIT;
CREATE TABLE noE 0


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


sqltext:
CREATE TABLE t0 ( a,ba, b, PRI);
UPDATE t0 SET b='ab0';
UPDATE t0 SET b='ab0', b=', b='0
INSERT INTO t0(a, b) VALUES('ab0', '000');
UPDATE t0 SET b='ab0', b='000';


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


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


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'separators= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'tokenchars=Bݤ�');
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'separators=x\xC0');


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'separators= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'separators=�ݤ�');
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'separators=x\xC0');


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple, '',VIEW '00�RENAME0');


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d c');
INSERT INTO ft0 VALUES('f 0 c c d');
SELECT snippet(ft0,  sqlite_source_id()) 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 c c d');
SELECT snippet(ft0, '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 c c d');
SELECT snippet(ft0, '0', '0', '', -1, 1) FROM ft0 WHERE ft0 MATCH 0e0;


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


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d e');
INSERT INTO ft0 VALUES('f 0 b c a,b d');
SELECT snippet(ft0, '0', '0', '', -1, 5) FROM ft0 WHERE ft0 MATCH  'a''b''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', '', substr(1,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', '', "a", lower(1)) FROM ft0 WHERE ft0 MATCH 'c';


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


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bbb c0RT INTO x VALUES(C000 bbb c0', '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  -1R/ -b  -1R/ 100';


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 OR - min(1,1)1R/6 000';


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


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


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��000,bbb REGEXP'bbb 000');
SELECT * FRoM x where y MATCH 'bbb NEAR46 000 VIRTPAL TABLEbbb NEAR46 000 VIRTUAL TABLE x  x USING fts4(y,';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bbb c00', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb NEA x USING fts4(-------�----------;
SELECT * FROM x where y MAT---y,0R/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 NEA x --------------------USING fts4(------------------;
SELECT * FROM x where y MAT---y,0R/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 NEA x USING fts4(--------------FROM x where y MAT---y,0R/----;
SELECT * FROM x where y MAT---y,0R/6 000';


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bbb c00', 'bA x USING fts4(y,0R/6 0bb 000');
SELECT * FROM x where y MATCH 'bbbbbb .EA x USING fts4(y,0R/6 00 .EA x USING fts4(y,0R/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 'bbbbbb .EA x USING fts4(y,0R/6 00^^^^^^^^^^^^^^^s4(y,0R/6 000';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bE x USINbb c00', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb NEA x USING    �         00';


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


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(940) 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(100);


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


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 /* */JOIN t102 ON t2.i0 GLOB 'a0'
JOIN t102 A0));


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


sqltext:
CREATE TABLE t102 (Aunicode61 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 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'LEFT
JOIN t102 AS t2
LEFT JOIN t102 ON t1.i0 GLOB 'a0'LEFT JOIN(t102  t
JOIN t102 A0));


sqltext:
CREATE TABLE t102 (i0 BEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS LEFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 AS tANDEFT JOIN t102 ON t1.i0 GLOB 'a0'LEFT JOIN t102  t
JOIN t102 A0));


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:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT quote(1)p, char(1) q FROM x AS x1, x AS x2 WHERE NOT (P)=x2.a;
CREATE VIEW z AS
SELECT ALL*, y2.p FROM y AS y1, y AS y2 WHERE y1.q=y2.q;
SELECT * from z;


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) Ft1; INSERT INTO t1 SELECT randomblob(800)  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(+00) FROM t1;   /* *PRIM�t1;   /* 1* 296 */
ROLLBACK TO
one;
INSERT INTO t1 SALECT t;


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 b, c< b, b, c, d, e,$f,E;


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


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


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


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


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


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


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


sqltext:
SELECT 199999990 EXCEPT SELECT 9=99999990 EXCEPT SELECT 9=99999999999=99999990 EXCEPT SELECT 9=999999999999.99999996


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


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


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


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


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


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


sqltext:
SELECT NULL="a","b"
ORDER BY m0r0 UTL UNION
SELECT 1 UNION SELECT NULL UNION
SELECT 1 UNION SELECT 2 NNULL UNION
SELECT 1 UNION SELECT 2 AS 'x'
ORDER BY m0r00r0;


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


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


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


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


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


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(10,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'000' || substr(c,4) FROM t1;
INSERT INTO t1 SELECT a+2,3,'0'||substr(c,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+57777E-77772001-0E-017,6,'000'|@substr(c,4) FROM t1 WHERE c GLOB '0000*';
CR 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 NRIMARY KEY, b, c);
INSERT INTO t1 VALUES(1,1,'0000');
INSERT INTO t1 VALUES(102001-01-01,1,'0000');
INSERT INTO t1 VALUES(20,1,'o000');
INSERT INTO t1 VALUES(3,1,'0000');
INSERT INTO t1 VALUES(40, 1, 'o000');
INSERT INTO t1 VALUES(50, 1, 'o000');
INSERT INTO t1 VALUES(60, 1, '0000');
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80, 1, 'o000');
INSERT INTO t1 VALUES(90, 1, 'o0000');
INSERT INTO t1 SELECT a+1,2,'p0' || 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+577775777772001-01-017,6,'000'||substr(c,4) FROM t1 WHECURRENT_TIMESTAMP;
CREATE INDEX t0b ON t1(a);
ANALYZE;
SELECT(c FROM t1 BETWEEN 30 AND 60;


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1'""separators=leoption_get( "a","b"1));
IN VALUES('\0E0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=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');
INSEWT;
I


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('�������������');
INSERT INTO t0 VALUES('0');
INSEWT;
I


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


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


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 (SELECT a,b, a,b,2,4,8 a,b)


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  upper(1) FROM i ORDER BY 1)
SELECT /* */ x FROM i LIMIT 10 ,7;


sqltext:
CREATE TEMP TABLE t��ϫ����������������������������������������(a,b,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*[E�00';


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


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


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%Y,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<1.;
CREATE TRIGGER r0�AFTER INSERT ON t1 WHEN new.x=74 BEGIN
DELETE FROM t1;
INSERT INTO t1 VALUES(05, randomblob(400));
INSERT INTO t1 VALUES(06, randomblob(400));
END;
INSERT INTO t1 VALUES(74,randomblob(400));
SELECT x, length( oid) FROM t1 ORDER BY+2 days


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(@oi, a0 a000, notindexed=p00, notindexed=00, no total(1)p00, notindexed=poi);
INSERT,'0 �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(@oi, a0 a000, notindexed=p00, notindexed=00, no sqlite_compileoption_get(1));
INSERT,'0 �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(@oi, a0 a000, notindexed=p00, notin0, notindexed=p00, notindexed=dexed=00, notindexed=p00, notindexed=poi);
INSERT, �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(@oi, a0 a000, notindexed=p00, notindexed=00, oi, a0 a000, notindexed=p00, n);
INSERT,'0 �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(@oi, a0 a000, notindexed=p00, notindexed=00, notindexed=p00,00, notindexed=00,  notindexed=poi);
INSERT,'0 �);
exe;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a0 a,00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE e2 USING fts4(p00, noti000, notindexed=p00, notindexed=00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a0 a000, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi, a0 a000, not0, notindexed=poi);


sqltext:
CREATE TABLE t0(x TEXT UNIQUT, y TEXT UNIQHHHHHHHHHHHHHHHHHHHHHHH�HHHHHH'000','000','0');
SELECT DISTINCT* FROM t0 WHERE (8='000' OR y='000') AND y ISNULL N


sqltext:
CREATE TEMP TABLE t�001(aӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[����000';


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


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


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


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


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


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t����VIEW��(CURRENT_TIMESTAMPPRIMARY Y);
INSERT INTO t0t VAL


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00:7000000000''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 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00:0�00000000''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 t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 
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 DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 
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=t0.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT? FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 
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 DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN t102 
JOIN t102 AS t2 ON sqlite_compileoption_get(1) AND t2.i0=t1.i0));


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


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


sqltext:
CREATE TABLE t10(x �NTEGER PRIMARY KEY, y INU� z CHAR(900));
CREATE INDEX t000 ON t10(y)�
EXa.y<b.x
WHERE (b.x<$ab0 OR b.y<$ab0);


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


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


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


sqltext:
CREATE TABLE t000(c0,�,I,T0000);
CREATE TABLE t002(c000 INT0000);
SELECT c000,* FROM t000 NATURAL JOIN t000 AS c000;


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


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


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


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER UPDATE ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe 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=1 OR Te0tId<2;
Id=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
BEGIN;
CREATE TABLE Re00T000e(T00000 INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TABLE TempT000e(Te0tID INTEGER PRIMARY KEY, Te0tSt00n0 TEXT);
CREATE TEMP TRIGGER t000000000�AFTER UPDATE ON TempT000e BEGIN
INSERT INTO TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe 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=1 OR Te0tId=6;
Te0tId=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBBt̍tatwoBBt̍t̍00');
INSERT IN 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=tB");
INSERT INTO t0 VALUES('oneatwo�tύ00');
INSERT INTO t0 VALUES('one0��Ͼ0eatwo�tύ00');
RTBLE t0


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBt���������������=���������������00');
INSERT INTO t0 VALUES('one0000A0');
&R


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=2001-01-01t0 V����NTO t0 VAGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG����������������00');
INSERT INTO t0 VALUES('one0000A0');
CREATE VIRTUAL TABLE t0au00bSING fts4aux"t0);


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aBRT INTO t0 V����NTO t0 VAGGGGGGGGGGGGGGGGGGGGGGGGGGGGGG���S t0;
CREATE VIRTUAL TABLE t�������������00');
INSERT INTO t0 VALUES('one0000A0');
CREATE VIRTUAL TABLE t0au00bSING fGGGGGGGGGGGGGGGGG���S t0;
CREAts4aux"t0);


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


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB�I�����I����𹹹���ع���������������");�IN 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBt�ꪪ�������������������t���������ne0002A0');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)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'NATURAL
JOIN t102 AS tFT JOIN t102  ON( unlikely(10<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'NATURAL
JOIN t102 AS tFT JOIN t102  ON( unlikely(10=t1.i0));


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


sqltext:
SELECT *
FROM (t0), ( ( t�5, (t0, (t05,B)t0, ( t05,tE),t0), (t0, (t05,B)t0, ( t05, (t0, ( a,bt0), �tE), (t0)a,bt0), �bt0), �tE), (t0)a,bt0)E), (t0)
WH),


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), �tE),t0), (t0, (t05, (t0, ( t05, (t0, ( a,bt0), �tEt05, (t0, ( (((((((((((a,bt0), �tE),t0)), (t0)a,bt001 �bt0), �tE), (t0), �bt0), �tE)0,


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), �tE),t0), (t0, (t05, (t0, ( t05, (tt0), �tEt05, (t0, (  (t0, ( a,bt0), �tE)���������,t0)), (t0)a,bt0), �bt0), �tE), (t0), �bt0), �tE)0,


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), �tE),t0), (t0,bt0), �bt0), �t05, (t0, ( a,bt0), �tE), (t,t0), (t0,bt0), �bt0), �t05, (t0)a, �tE), (t0)f,bt0)E), (t0)
WH),


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


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


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


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


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 t1R


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 < 'a''b';
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 t0( a,ba,b,c,d,e, P a,bR UNIQUE,be, PRIMARY KEY(a,b,c,d,a,b,c)) WITHOUT ROWID;REINDEX INDEX


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


sqltext:
#REATE printf(1,1) b);
PRAGMA auacuuY=O00;
PRAGMA synchronous=NO00;
PRAGMA synchronous=N000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA journal_mode=TRU00;
PRAGMA synchronous=NO00;
PRA


sqltext:
#REATE prindf(1,1) b);
PRAGMA auacuuY=O00;
PRAGMA synchronou =NO00;
PRAGMA synchronous=N000USIVE;
PRAGMA journal_mode=TR;
PRAGMA lockingEmode=EXCLUSIVE;
PRAGMA journal_mode=TRUNC;
PRAGMA journal_mode=TRUN;);


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob strftime(1,1,1,1)(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" 1=1 glob(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' glob(1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" strftime(1,1,1,1) 1=1 glob(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('  1=1(1,1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" time*1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,1,1 1=1');
SELECT * FROM t0st WHERE k00000d MATCH '" time*1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,1,1) time(1,1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH '" time*1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' strftime(1,1,1,1) time(1,1,1 1=1');
SELECT * FROM t0st WHERE k00000d MATCH '" time(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,1,1 1=1');
SELECT * FROM t0st WHERE k00000d MATCH '" time @1(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('000');
SELECT * FROM t0st WHERE k00000d MATCH '" t(1,1,1,1)ime(1,1,1 strfti1,L,1 strftime(1,1,1,1)imeme(1,1,1,1ti1,1,1 strftime(1,1,1,1)im)ime(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('0,1,1 strftime(1,1,1,1)00');
SELECT * FROM t0st WHERE k00000d MATCH '" t(1,1,1,1)ime(1,1,1 strftime(1,1,1,1)ime(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES ('00e(1,1,1 wtrftime(1,1,10');
SELECT * FROM t0st WHERE k00000d MATCH '" t(1,1,1,1)ime(1,1,1 wtrftime(1,1,1,1)ime(1,1,1)"';


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


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


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


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


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(a INT0 sqlite_compileoption_used(1));
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(1);
INSERT INTO t1 VALUES(2);
INSERT INTO t1 VALUES(3);
INSERT INTO t1 VALUES(1);
CREATE TABLE t2(x);
INSERT INTO t2
SELECT DISTINCT
CASE a WHEN A THEN randomblob(20001E01-01)WHEN 2 THEN zeroblob(5)ELSE '000' END
FROM t1;
SELECT quote(x) FROM t2 ORDER BY 1=1


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(:eroblob(900));
INSERT INTO t0 VALUES(zeroblob(10201-01-2100));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%3;
PRAGMA incremental_vacuum(�);
ROLLBACK;


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(14201E01-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(500));
INSERT INTO t0 VALUES(zeroblob(14201E01-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(14201E01-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:
CREATE TABLE t0(a,b,c,d,e int, PRIMARY KEY(a,b,a,d /* */,b,c,d,b,c,e,d,c,e));
SELECT DISTINCT* 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,a,b,b,c,a,b,c,d,b,c,e,d,c,e));
SELECT DISTINCT* FROM t0 WHERE a=? AND b=? AND c=? AND d=?7SINe=?;


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, '000 0o00', 'one two', 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 'G fts3(a, b, c):
INSERT INTO ttwo';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, '000 0o00', 'one two', 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 'G fts3(a, b, c): strftime(1,1,1,1)';


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, SELECT a, b, c FROM t0 WHERE  t0ree four&, '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fes3(a% b, c): strftime(1,1,1,1)';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, SELECT a, b, c FROM t0 WHERE  t0ree four&, '000 0o00', ' sqlite_compileoption_get(1)one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fes3(a% b, c):
INSERT INTO t0two';


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 c MATCH 'G  -13(a, b, -1;
-NSERT INTO t0two';


sqltext:
CREATE VIRTUAL TABLE rt USING rtree(i0,CONSTRAINT x0,CONSTRAINT x2);
INSERT INTO rt VALUES( hex(1));
S


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y char(1) 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=~~~~~~~~~~~~~~~~~~~~1 LEFT JOIN t92 OCT 5 SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1OR b=3


sqltext:
CREATE TABLE t91(x int); 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=~~~~~~~~~~~~~~~~~~~~1 LEFT JOIN t92 OCT 5 CT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1OR b=3


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


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 a 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 randomblob(1) "a"FROM a,b,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 randomblob(1) "a"FROM b,b,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 randomblob(1)/"a"FROM a,b,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 randomblob(1)OR "a"FROM a,b,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 randomblob(1)IN "a"FROM a,b,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 randomblob(1)LIKE "a"FROM a,b,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 randomblob(1) ||  "a"FROM a,b,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 randomblob(1) "a"FROM a,b a,b,a,b,"b");


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


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 DISTINCT* FROM t5 WHERE a=9 AND-b='000'), t0 WHERE strftime(1,1,11,1,1,1 AND 1=1-b='000')<1 


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


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


sqltext:
CREATE VIRTUAL TABLE''' t1'USING fTs3(content, tokenize porter);
INSERT INvcontent) VALRE content MAing Gdt dumping');
CCH 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jumpiCS(1, niCS(1, ng');
SEL


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DEFFERRQBLEd jumREATE VIRTUALERRQBLEd jumREATE VIRTUAL TRBLE t1 USINping');
SELECT rowid Ft1 Wjump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'TRANSACTYON jACTYON');
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, 'DEFERRED frunANALYYEd jumpinANALYYEd jumping');
ump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 't1 USING frunANALYYEd jumpinAunANALYYEd juNALYYEd jumping');
ump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 't1 USING frunANNALYYEd jumpinANALYYEd jumpALYYEd jumpinANALYYEd jumping');
ump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruLE t1 USING ftsM(cning andLE t1sM(cning andLE t1 US  US jumping');
SELECT rowid FROM t1 W�ERE co|tent MATCH 'rump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jllllllllllllALLY�lllllllllllumping');
SELECT rowid FROM


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


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


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


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


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


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


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


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


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


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2),LIKE( "a","����a","�" /* */)
FROM t1
ORDER BY 002;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2),LIKE( "a","����a","b" /* */)
FROM t1
GROUP BY 002;


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


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


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts3(c);
INSERT INTO t1(docid, c) VALUES (1, julianday(1,1,1));
INSERT INTO t1 (docid, c) VALUES (2, strftime(1,1,1,1));
INSERT INTO t1(docid, c) VALUES (3, 'This is 0 test');
DELETE FROM t1 WHERE $ocid IN(1,3);
SELECT OPTIMIZE(t1) FROM t1LI1;


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


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


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


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


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=D AND d=? AND b<? AND c=? AND e<? AND e >=?;


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f000000000 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN NOT (SELECT~~~~~~~~~~~ new.�ar 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 (SELECT~~~~~~~~~~~ new.�ar BETWEEN 0 AND  1=120)
THEN ra++++++++++++++++++++++++++++++ise(rollback, '000000') END;
END;
INSERT INTO foo(bar) VALUES (0);


sqltext:
ATTACH''AS nooname;
ATTACH':memory:' AS ��naname;
ATTACH':memory:' AS ��name;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;
SELECT'ory:' ASmmem;VACUUM;�CRE


sqltext:
ATTACH''AS nooname;
ATTACH':memory:' AS ��naname;
ATTACH':memory:' AS ��name;
ATTACH'�me:' AS me;
ATTACH'�me:' AS m;
ATTACH':memory:' AS inminmemmem;VACUUM;ANALYZE


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


sqltext:
CREATE VIRTUAL TABLE t5 USING fts4(tokenize=unicode61 'tokenchars= .');
CREATE VIRTUAL TABLE t6 USING fts4(tokenize=unicode61 'tokenchars=����RENAME'1 'tokenchars=����RENAME');
CREG ft;


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 'tokenchars=x\xC0');


sqltext:
CREATE VIRTUAL TABLE t4 USING fts4(a, b, c, notindexed=c);
INSERT INTO t4 VALUES( glob(1,1),X'0000', 'te');
INSERT INTO t4(t4) VALUES('integrity-check');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize(simple);
CREATE VIRTUAL TABLE t2 USING fts3tokenize();
CREATE VIRTUAL TABLE t3 USING fts3tokenize(simple,le, '',V '00�RENAME0');


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


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


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.a<x2.a;
CREATE VIEW z AS
SELECT  total(1)p FROM y AS y1, y AS y2 WHERE changes();
SELECT * from z x1, z 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 AS x2 WHERE x1.a|x2.a;
CREATE VIEW z AS
SELECT total(1),"b", y2.p FROM y AS y1, y AS y2 WHERE y1.q<y2.q;
SELECT * from z x1, z 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 AS x2 WHERE x1.a=x2.a;
CREATE VIEW z AS
SELECT total(1),"b", y2.p FROM y AS y1, y AS y2 WHERE y1.q<y2.q;
SELECT * from z x1, z 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 AS x2 WHERE x1.a<x2.a;
CREATE VIEW z AS
SELECT y1.p "a","b", y2.p FROM y AS y1, y AS y2 WHERE y1.q=y2.q;
SELECT DISTINCT* from z x1, z A;


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


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


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


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('0�0 b"b c00', 'b"b 000');
SELECT * FROM x where y MATCH 'b`b*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 'b ; ^EA >=-000';


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��000,bbb REGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb NEAR/6 000 VTA^^^^^BLE x USING fts4(IRTUAL TA^^^^^BLE x UING fts4(y,';


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


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE t102 (i2222222222222222222�22222222220 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 (i0 BEXT UNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS LEFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 AS tANDE JOIN t102 FT JOIN t102 ON t1.i0 GLOB 'a0'LEFT JOIN t102  t
JOIN t102 A0));


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 b, c, b< b, c, d, e,$f,E;


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


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


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1'""tokenchars= "a"tion_get(1));
INUES( VALUES('\0E0');


sqltext:
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 'remove_diacritics=1'""separators= "a"separators=);
INUES( VALUES('\0E0');


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


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 ( char(1),?, a,b,2,4,8);10)


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 OR (SELECT a,b, a,b,2,4,8 a,b)


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


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  upper(1) FROM i ORDER BY 1)
SELECT  1=2001-01-011/ x FROM i LIMIT 10 -7;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01)FROM t2), max(0e02,  (1),"b")
FROM t1
ORDER BY 002;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a  a,00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=a,00, notindexed=poi);
IN;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(po a,bi, a0 a,00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=a,00, notindexed=poi);
IN;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a0 a,00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=a,00, notinde, a0 a,00, notixedDpoi);
IN;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, u0 a,00, notindexed=p00, notindexed=00, notindexed=0, notindexed=p00, notindexed=a,0, not0, notindexedXpoi);
IN;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a0 a,00, notindexed=p00, notindexed=00, notindexed=poi, notindexed=a,00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a0 a,00, notindexed=p00, notindexed=00,oi, a0 a,00, n0, notindexed=00, notindexed=p00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(0, no, notindexed=p00, notindexed=pti00, notindexed=poi, a0 a000, notindexed=p00, notindexed=00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(p00, notindexed=00, notindexed=p00, notindexed=poi, a0 a000, notindexed=p00, notindexed=00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=poi);


sqltext:
DROP TABLE IF EXISTS t;
CREATE VIRTUAL TABLE t1 USING fts4(c);EXPLAIN
INSERT INTO t1 (docid, c) VALUES (1, '00');EXPLAIN
INSERT INTO t1(docid,c) VALUES (2, 'T00');
INSERT INTO t1(docid, c) VALUES (3, julianday(1,1,1));
DELETE FROM t1


sqltext:
SELECT-'0000' UNION SELECT avg(1) ORDER BY 1,ASC,1 ASC, 1 COLLATE  ASC,1 ASC, ASC, 1 COLLATE  ASC,1 ASC, 1 COLL


sqltext:
CREATE TEMP TABLE t�001(aӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[�ͫ�000';


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


sqltext:
CREATE TEMP TABLE t0001(aӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??1?????*[�ͫ�000';


sqltext:
CREATE TEMP TABLE t1�01(aӝ,c);
SELECT * FROM sqlite_temp_master WHERE sql GLOB '*??0?????*[�ͫ�000';


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


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


sqltext:
CREATE TEMP TABLE t0001(aӝ,c);
SELECT * FROM sqlite_temp_master Wemp_master WHERE sql GLOB 'ͫ�000';


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t0t�����VIEW�(CURRENT_TIMESTAMPPRIMARY Y);
INSERT INTO t0t VAL


sqltext:
CREATE TABLE [sill0 0 0a0e](a, b, c);
CREATE INDEX 'f0000000''00000' ON [sill0 0 0a0e](a, b);
CREATE INDEX '00:00:7000000000''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 t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
JOIN t102 AS 
LEFT JOIN t102  t1 ON t0.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  total(1) FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
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 DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
JOIN t102 AS 
LEFT JOIN t102 AS t2 Oj(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 DISTINCT* FROM t102 AS t0 NATURAL
JOIN t102 AEFT JOIN t102  t1 ON t1.i0 IN  (1) 
JOIN t102 AS t2 ON(t2.i0++++++++++++++++++++00 AND t0.i0=t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 ��������������������������������(;


sqltext:
CREATE TABLE t10(x �NTEGER PRIMARY KEY, y INU� z CHAR(900)UNIQUE);
CREATE INDEX t000 ON t10(y);
EXPLAIN QUERY PLAN
SELECT total(1)
FROM t10 AS a JOIN t10 AS b ON a.y<b.x
WHERE (b.x<$ab0 OR b.y<$ab0);VACUUM


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='4,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileoption_used(1)leet wa0 r000 to 0a00 AUTOINCREMENTcompileoption_get(1)Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


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


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


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileoption_used(1)leet wa0 r000 to 0a00 s00 0 sqlite_compileoption_get(1)Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e00000 sqlite_compileoption_get(1)0a00(0u00000 o0 00 Se0000000. William t000 m00');
INSERT INTO t2 VALUES('to 0a00, a f00 m0000 to 0h0 e000, w00 he');
INSERT INTO t2 VALUES('0u0 0 p00 w000 0a00 f0r a b000 o0');
INSERT INTO t2 VALUES('0p00. 0r00 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('fl load_extension(1,1) 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE TABLE t0(e00T);
SELECT DISTINCT "a", "a","b","ba", "a","b","ba","b","aa","b","a", "a","b","ba","b","a","b","ba"b


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a", "a","b","ba","b",a F,"b""a","ba","b""a","b","ba","b",a ,"b""a","b","ba","", "a","b","ba","b",a F,"b",a F,a FROM t0) W0;


sqltext:
CREATE TABLE t0(a, b);
SELECT DISTINCT "a", "a","b","ba","b",a F,"b""a","a","ba","b""a","b","ba","F",a "ba","b""a","b","ba","F",a ,"b""a","T","ba","b",a F,a FROM t0) W�;


sqltext:
CREATE TABLE t0(a""a","b","ba, b);
SELECT DISTINCT "a", "a","b","ba","b",a F,"b""a","ba","t002","b","ba","b",a ,"b""a","b","ba","b",a F,a FROM t0) W0;


sqltext:
CREATE TABLE t0(a, b�����������������);
SELECT DISTINCT "a", "ba","b",a F,"b""a","ba","b""a","a","b","ba","b",a F,"b""a","ba","b""a","b","ba","b",a ,"b""a","b","ba","b",a F,a FROM t0) W0;


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


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


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


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


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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID>1 OR  Te0tID=1 OR Te0tId=2;
Te0tId=2;
CEFROM 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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 MATCH+ 0 WHERE Te0tID>1 OR  Te0tID=1 OR Te0tId=2;
Te0EFROM 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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=3 OR  Te0tID>1 OR Te0tId=2;
Te0tId=2;
CEFROM 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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR  Te0tID>2 OR Te0tId=2;
Te0tId=2;
CEFROM 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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR  Te0tID>1 OR Te0tId=2;ANALYZE=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatwoBt varchar(1)L TABLE t0aux USING fts4aux(t���������������������00');
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('dneatwoBtϽ����߽����
�����������޽���� sqlite_compileoption_used(1)one0000A0');
CREATE VI 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtꪪ�����������ꪪ��������0��������������������Ī�������');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)+
U


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtꪪ����������������������0������������ꪪ�����Ī�������');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)+
U


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtꪪ����������������������0��������������������Ī������ blob�');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)+
U


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 tFT JOIN t102  ON( unlikely(10<t0.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'NATURAL
JOIN t102 AS tFT JOIN t102  ON( unlikely(10=t0.i0));


sqltext:
SELECT *
FROM (t0), ( (  Kt0, (SELECT a,bt0bt0), �0, (SELECT a,bt0bt0), ��tE),t0)) a,bt0bt0), �bt0), �tE), (t0)a,bt0)E), (t0)
WH),


sqltext:
SELECT *
FROM (t0), ( ( t05, (t0, ( a,bt0), �tE),t0), (t0, (t05, (t0, ( t05, (t0, ( a,bt0), �tEt05, t0, ( a, a,b, �tE),t0)), (t0, ( a, a,b, �tE),t0)), (t0)a,bt0), �bt0), �tE), (t0), �bt0), �tE)0,


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, sqlite_compileoption_used(1) x2 WHERE glob(1,1);
SELECT  total(1)p FROM x AS y1, y  AS y1, y AS y2 Wz;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT /* */(1)p, sqlite_compileoption_used(1) x2 WHERE glob(1,1);
SELECT  total(1)p FROM y AS y1, y  AS y1, y AS y2 Wz;


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 /* */ (0);
SELECT  total(1)p FROM y AS y1, y  AS1, y  AS y1, y AS y y1;


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


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


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


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(34201E01-0100));
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 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(14201E01-0100));
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT 8 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(24201E01-0100));
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 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(142001-01-01201E01-0100));
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 round(1,1)
BEGIN;
DELETE FROM t0 WHERE rowid%6;
PRAGMA incremental_vacuum(�);
ROLLBACK;


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, SELECT a, b, c FROM t0 WHERE  t0ree four&, '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G fes3 a% b, c):
INSE::::::::::::::::::::::RT INTO t0two';


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 c MATCH 'G fts3, c);
INSERT INTO o*tw*o*two';


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3(a, b, c);
INSERT INTO t0(a, b, c) VALUES('one t0�ee four', '000 0o00', 'one two');
SELECT a, b, c FROM t0 WHERE c MATCH 'G ftSERT INTO o*tw o*tO o*tw o*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, b, c FROM t0 WHERE c MATCH 'G fts3, c);
INSERT INTO o*tw o*NSERT INTO o*tw otwo';


sqltext:
CREATE VIRTUAL TABLE rt USING rtree(i0,CONSTRAINT x0,CONSTRAINT x2);
INSERT INTO rt VALUES(-hex(1));
S


sqltext:
CREATE TABLE t91( 'a''b'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 a=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(a=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON@a=~~~~~~~~~~~~~~~~~~~~1 LEFT JOIN t92 OCT 5 SELECT 8 FROM t91 LEFT JOIN t92 ON a=20 OR~~~~~~~~~~~~~~~2 OR ?1OR b=3


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y 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 randomblob(1)OR~~~~~~~~~~~~~~~~~~~~~~~~~~~~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 ?1OR b=3


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


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


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


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 a 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 randomblob(1)%"a"FROM a,b,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 a 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 randomblob(1)LIKE "a"FROM a,b,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)INTERSECT
SELECT* FROM a WHERE i0 NOT IN (SELECT "a"FROM a,b,a,b,a,b,"b");


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT randomblob(1)i GROUP BY 1)
SELECT avg(1) x FROM i ,I,I? 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL VALUES(1) UNION ALL  SELECT randomblob(1)i ORDER BY 1)
SELECT avg(1) x FROM i ,I,I? 10;


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, '�unning aed jum>>>>>>>>>>>>Aeing');
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, 'ryyeCREATEd juyymping');
SELECT rowid FROM t1 WHERE content ump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruyeing and juuying);
SELEC auying);
SELEC and jumying');
SELECT rt MATCH 'runp';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jumpiCSing and jumpiCS(1, niCS(1, (1, niCS(1, ng');
SEL


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running ang and jumpiCS(1, niCS(1, d jumpiCS(1, niCS(1, ng');
SEL


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'uLE t1 USING ftsM(cning andLE t1 US ELSEing');
SELECT rowid FROM t1 WHERE co|tent MATCH 'rump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'ruLE t1 USING ftsM(cning andLE tE t1 USING ftsM(cning andLE t1 US ELSEing ftsM(cning andLE');
SELECT rowid FROM t1 WHERE co|ten MATCH 'rump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and ���ll;
INSERT INTO t1(rollllllllllllllll,�ll;
INSERT INTO t1(rolllllllllllllumping');
SELECT rowid FROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and ���ll;
INSERT INTO t1(rowlll�ll;
INlllllllllllll�ll;
INSERT INTO t1(rolllllllllllllumping');
SELECT rowid FROM


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'running and jlllllllllllllltreEd sum(1)Gllllumping');


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize( "a","b" "a", "a","b", '', '0 VIRTUAL TAB��������}��������������LE t3 ���USING fts3token "a","b"( "a","b" "a", "a","b", ', '', 'xVIRTUAL$TAB��������}ple, A', '0000');


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES(' min(1,1)00', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb OR - sR - strftime(1,1,1,1)1R/6 trftime(1,1,1,1)1R/6 000';


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


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


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,0);
INSERT INTO x VALUES('000 bbb c00,1,1,1)1R/6 trftime(1,1,1,1', 'bbb 000');
SELECT * FROM x where y MATCH 'bbb OR - sR - strftime(1,1,1,1)1R/6 trftime(1,1,1,1)1R/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 OR - strft�� OR - strftR/6 00                                0';


sqltext:
CREATE VIRTUAL TABLE x USING fts4(y,ALUES��000,bbb REGEXP'bbb 000');
SELECT * FROM x where y MATCH 'bbb NEAR/6 000 VIRTUAL TA^^�^^BLE x USIN0 VIRTUAL TA^^G fts4(y,';


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft USING fts3( >=, t0o);
INSERT INTO ft VALUES('', 'fo @1o');
INSERT INTO ft VALUES('f/ @1o', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH 'f :1o :1o';


sqltext:
CREATE TABLE t102 (i0T102 VUNIQUE NOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AS LEFT JOIN(t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB  "a"
JOIN t102 AS t6NDE JOIN t102 FT JOIN t102 ON t1.i0 GLOB 'a0'LEFT JOIN t102  t
JOIN t102 A0));


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 b, a, b,$b, c, d, e,$f,E;


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


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 OR (SELECT a,?, a,b,2,4,8)+10)


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 OR (SELECT a,?, a,b,2,4,8 a,b)


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 OR+(SELECT a,b, a,b,2,4,8 a,b)


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


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


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT  upper(1) FROM i ORDER BY 1)
SELECT  1=1/-x FROM i LIMIT hex(1)


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4( a,bpoi, a0 a,00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=a,00, nota,bpoi, a0 a,00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4( a,bpoi, a0 a,00, notioi, a0 a,0, notindexed=00, notindexed=p00, notindexed=a,00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4( a,bpoi, a0 a,00, notindexed=p00, notindexed=00, notindexed=p0,00, notindexed=p000, notindexed=a,00, notindexed=poi);


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi a0 a,00, notindexed=, a0 a,00, notindexed=p00, notindexed=00, notindexed=poi, notindexed=a,00, notindexed=poi);
IN;


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(poi, a00, notindexed=000,0 a,00, notindexed=p00, notindexed=00, notindexed=p00, notindexed=000, notindexed=00, notindexed=0, notindexed=p00, notindexed=poi);


sqltext:
SELECT-'0000'ASC UNION SELECT avg(1) ORDER BY 1,ASC,1 ASC, 1 COLLATE  ASC,1 ASC, ASC, 1 COLLATE  ASC,1 ASC, 1 COLL


sqltext:
SELECT-'0000' UNION SELECT avg(1) ORDER BY 1,1 ASC, 1 COLLATE  ASC,1 ASC, ASC, 1 COLLATE  ASC, SC, 1 COLLATE  ASC, 1 COLLATE  ASC,1 ASC, ASC,1 ASC, 1 COLL


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


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


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


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t0.i0 IN t102 NATURAL
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN  (1) 
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 DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
JOIN t102 AS 
LEFT JOIN t102  t1 ON t0.i0 IN  (1) 
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 DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
JOIN t102 AS 
LEEFT JOIN t102 FT JOIN t102  t1 ON t1.i0 IN  (1) 
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 NATURAL
JOIN t102 AEFT JOIN t102  t1 ON t2.i0 IN  (1) 
JOIN t102 AS t2 ON(t2.i0++++++++++++++++++++00 AND t0.i0=t1.i0));


sqltext:
CREATE TABLE t102 (i0 TEXT�UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AEFT JOIN t102  t1 ON t1.i0 IN  (1)LEFT 
JOIN t102 AS t2 ON(t2.i0++++++++++++++++++++00 AND t0.i0=t1.i0));


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='5,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('0000''s fleet sai000 A s0o00 0l00 up and t0 sqlite_compileoption_used(1)leet wa0 r000 to 0a00 AUTOINCREMENTcompileoption_get(1)Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 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 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4(prefix='1,2,3');
INSERT INTO t2 VALUES(NOT'00 and');
INSERT INTO t2 VALUES('W0000''s fleet�ai000 A s0o00 0l00 up and t0 sqlite_compileoption_used(1)leet wa0 r000 to 0a00 s00 0 sqlite_compileoptikn_get(1)Si00-l00y-su0-Somme and ai0 wa00 0o0 t00 win0');
INSERT INTO t2 VALUES('to a00 00 00 September t00 Nor000 fleet');
INSERT INTO t2 VALUES('0i0 se0 sai 0a0 00 E000000 00 0e00000 sqlite_compileopti���������0a00(0u0@000 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('flCROSSas f000 to 0a0e 0e0 00');
INSERT INTO t2 VALUES('Sain0-V00000-sur-Somme and a0a00 wa00 f00 t00 win0');
INSERT INTO t2 VALUES('to 0h0 00 20 S00 t0e N000 fleet');
INSERT INTO t2 VALUES('000 000 000 000 i0 E00 a0 0000');
INSERT INTO t2 VALUES('0000(0s00) o0 20 S0000. W000000 0000 m0000');
INSERT INTO t2 VALUES('to 000000000 0 f00 m0000 to 0h0 0000, 00e00 0e');
INSERT INTO t2 VALUES('000 0 00000 0000 0a0000 f00 0 0as0 o0');
INSERT INTO t2 VALUES('o00000. 0000 000000 0e r000000 t00 h000000000');
INSERT INTO t2 VALUES('000 0000 0o0 0a00''s r00000 f000 t00 n00000');


sqltext:
CREATE TABLE t0(a""a","b","ba, b);
SELECT DISTINCT  sqlite_compileoption_used(1)"a","ba","t002","b","ba","b",a ,"b""a","b","ba","b",a F,a FROM t0) W0;


sqltext:
CREATE TABLE t0(a""a","b","ta, b);
SELECT DISTINCT "a", "a","b","ba","b",a F,"b""a","ba","t002","b","ba","b",a F,a ,"ba","b",a ,"b""a","b","ba","b",a F,a FROM t0) W0;


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


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


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


sqltext:
CREATE TABLE t000(c0,�,I, a,b0);
CREATE TABLE t002(c000,INT a,b);
SELECT c000,* FROM t000 NATURAL JOIN t002 AS c000;


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


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


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


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


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB�������������������epaB����");
RT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB��������������eparators=aB�����������tors=aB����");
RT 


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB�������������������ߟ����������������������ߟ�������������� "a"��");
INS


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB�������������������ߟ�������������� "���ߟ�������������� "a"��a"��");
INS


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


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtꪪ�������������������*��0��������������������Ī������ blob�');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)+
U


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtꪪ�������������������*��0��������������������Ī������ total(1)�');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)+
U


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('dneatwoBtꪪ�������������������������������*��0��������������������Ī�������');
CREATE VIRTUAL TABLE t0aux USING fts4aux(t0)+
U


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,1,1) min(1,1)(1,1,1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH replace(1,1,1);


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d);
INSERT INTO t0st VALUES (' time(1,1,1) min(1,1)(1,1,1,1)000');
SELECT * FROM t0st WHERE k00000d MATCH 'me(1,1,1) min(1,1)(1,1,1" g^ob(1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH '" t s strftime(1,1,1,1 "a","b"(1,1,1,1)ime(1,1,")"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH '" t s strftime(1,1,1, "a","b"(1,1,1r00ime(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH '" t s strftime(1,(1,1,1,1 "a","b"(1,1,1,1)ime(1,5,1 "a","b"(1,1,1,1)ime(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH '" t s strftime(1,1,1,1 "a","b"(1t s strftime(1,1,1,1 "a","b",1,1,1)ime(1,1,1)"';


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH '" t s strftime(1,1,1,1 B,1,1)ime(1,1,1"a","b"(1,1 VIRTUAL TAB,1,1)ime(1,1,1)"';


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


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


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


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


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT x1.b AS p, x2.b AS q FROM x AS x1, x AS x2 WHERE x1.a<x2.a;
SELECT  @otal(1)p FROM y AS y1, y  A, y  AS1, y  AS y1, y S1, y  AS y1, y AS y1, y  A� y1, y AS y y1;


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


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


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


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


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


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);VALUES(5)INTERSECT
SELECT* FROM a WHERE i0NO);


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,b a, a,b,'00' a,b FROM t1
UNION
SELECT *,a, a,b,'000' FROM t1
OR@'002' FR


sqltext:
WITH i(x) AS ( VALUES(1) INTERSECT SELECT randomblob(1)i ORDER BY 1)
SELECT avg(1) x FROM i �I,I? 10;


sqltext:
WITH i(x) AS ( VALUES(1) INTERSECT SELECT randomblob(1)i GROUP BY 1)
SELECT avg(1) x FROM i ,I,I? 10;


sqltext:
WITH i(x) AS ( VALUES(1) INTERSECT SELECT randomblob(1)i ORDER BY 1)
SELECT avg(1) x FROM i ,I,i ORDER BY 1)
SELECT avg(1)I? 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT ra(1)IN "a","b"i ORDER BY 1)
SELECT avg(1) x FROM i ,I,I? 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DEFERRABLEd jumpiED(1,TABLEd jumpiES(1, ng');
SEump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DEF..........!!!!!!!!!!.!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!.......ERRABLEd jumpiES(1,TABLEd jumpiES(1, ng');
SEump';


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'DEFERRABLEd jumpiES(1,TABLEd jABLEd jumpiES(1,TABLEd jumpiES(umpiES(1, ng');
SEump';


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


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t0 USING fts3tokenize( "a","b" "a", "a","b", ''"a","b"b",", i01,"b", a,b, '0 VIRTUAL TAB�������E t0 USING fts3tokenize( "a",ts3tokeni^e(simple, A'� '0000');


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


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft USING fts3( >=, t0o);
INSERT INTO ft VALUES('', 'fo @1o');
INSERT INTO ft VALUES('fo @1o', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' :1o :1o :1o';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3( >=, t0o);
INSERT INTO ft VALUES('', 'fo @1o');
INSERT INTO ft VALUES('fo @1o', 'foo');
SELECT offsets(ft) FROM ft WHERE ft MATCH ' :1 :1f :1o :1o';


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


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


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


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


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


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


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


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 avg(A) "a","b"FROM t002, t001, t000, t002, t001, t002R


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 avg(A%A)FROM t002, t001, t000, t002, t001, t002 IR, t001, t002 WR


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE t2 USING fts4( a,bpoi, a0 a,00, notioi, a0 a,0, notindexed=00, notindexed=p0 , notindexed=a,00, notindexed=poi);


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


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


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


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


sqltext:
CREATE TABLE t102 (i0 TEXT UNIQUE );
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
JOIN t102 AS 
LEFT JOIN t102  t1 ON t1.i0 IN  (1) 
JOIN t102 AS t2;


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


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


sqltext:
CREATE TABLE t102 (i0 TEXT�UNIQUE NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT * FROM t102 AS t0 NATURAL
JOIN t102 AEFT JOIN t102  t1 ON t1.i0 IN  (1)LEFT 
JOIN t102 AS t2 ON(t2.i0+(++++++++++++++++++00 AND t0.i0=t1.i0));


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


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


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


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


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


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


sqltext:
CREATE TABLE t000(c0 a,b,�,I, a,b0);
CREATE TABLE t002(c000,I,T0000);
SELECT c000,* FROM t000 NATURAL JOIN t002 AS c000;


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


sqltext:
CREATE TABLE t0(a,b,c,d,e, PRIMARY KEY(e,E,c,e,a));
SELECT * FROM t0 WHERE a=? AND b=? AND c=7 AND d=? AND e= strftime(1<1, printf(1,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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=2 OR  Te0tID>0 OR Te0tId=2;
Te0tId=2;
CEFROM 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 TEMPT000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 EXCVEMENTe LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID>3 OR  Te0tID>0 OR Te0tId=2;
Id=2;
CEFROM Re00T000e ORDER BY 1;


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('oneatw��������������������0���������0oBt����������ཽ������������������0���������0');
INSERT INTO t0 VALUES('one0000A0');
&R


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('ongatwoBt����������ཽ�Bt����������ཽ�����������������������������0������� blob��0');
INSERT INTO t0 VALUES('one0000A0');
&R


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB");
INSERT INTO t0 VALUES('onZatw�Bt����������ཽ�Bt����������ཽ������������������onZatw�Bt����������ཽ�����������0���������0');
INSERT INTO t0 VALUES('one0000A0');
&R


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


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


sqltext:
CREATE TABLE t0( a,ba,b,c,d intP UNIQUE,bI a,I a,be, PRIMARY KEY(a,b,c,d,c)) WITHOUT ROWID;REINDEX rtrim) IN


sqltext:
CREATE VIRTUAL TABLE t0st USING fts3 (k00000d sqpileoption_get(1)'000');
SELECT * FROM t0st WHERE k00000d MATCH ' "a","b"rftime(1,1,1, "a","b"(1,1,1r00ime(1,1,1)"';


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


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


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


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


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


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


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


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(142001-01-01201E01-0100));
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT sqlite_source_id()LIKE x FROM t0;
INS


sqltext:
BEGIN TRANSACTION;
CREATE TABLE a(i0 INT0000);
INSERT INTO a VALUES(0);
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);VALUES(5)INTERSECT
SELECT* FROM a WHERE i0NO);


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 a VALUES(NULL);
INSERT INTO b VALUES(3);
INSERT INTO b VALUES(4);VALUES(5)INTERSECT
SELECT* FROM a WHERE i0NO);


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,b a, b,b FROM t1
UNION
SELECT *,a, a,b, '000' a,b FROb,'000' FROM t1
ORDER BY U, �,S, '000', b, ����'002' FR


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


sqltext:
WITH i(x) AS ( VALUES(1) INTERSECT SELECT randomblob(1)TRANSAC1)
SELECT avg(1) x FROM i ,I,I,I,I? 10;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT ra(1)IN "a","b"i ORDER BY 1)
SELECT avg(1) x FROM i �I,I? 


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT ra(1)IN "a","b"i ORDER BY 1)
SELECT avg(1)IN x FROM i ,I,I? 


sqltext:
CREATE VIRTUAL TABLE t1 USING fts3(content, tokenize porter);
INSERT INTO t1(rowid, content) VALUES(1, 'r%YYy%Yyeing and juyymping');
SELECT rowid FROM t1 WHERE content ump';


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


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


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


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


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE t102 (i0 TEX���������NOT NULL);
INSERT INTO t102 VALUES ('0');
SELECT DISTINCT* FROM t102 AS t0 
JOIN t102 ON t2.i0 IN t102 NATURAL
JOIN t102 A�� 
LEFT JOIN t102  t1 ON t1.i0 NATURAL 
JOIN t102 AS t2;


sqltext:
CREATE TABLE t0(a, b);
SELECT total(A) "a","b""""a","ba","b",oid,"b""a","ba","b", *FROM (SELECT "ba","bba","b",oid,"b""",oid,"b""a","ba","b",count(A)a FROM t0) WHERE a==0;


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


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


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


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


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


sqltext:
CREATE TABLE t000(c0  a,ba,b,�,I, a,b0);
CREATE TABLE t002(c000,I,T0000);
SELECT c000,* FROM t000 NATURAL JOIN t002 AS c000;


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


sqltext:
DROP TABLE IF EXISTS t0;
CREATE VIRTUAL TABLE t0 USING fts4(tokenize=unicode61 "separators=aB&);
INSERT INTO t0 VALUES('ongatwoBt����������ཽ�Bt����������ཽ�����������������������������0�������ocument���������INS1 "separators=aB&);
IN


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


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


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


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


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(142001-01-01201E01-0100));
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT@sqlite_source_id()LIKE x FROM t0;
INS


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,b a, *,b FROM t1
UNION
SELECT *,a, a,b, '000' a,b FROb,'000' FROM t1
ORDER BY U, �,S, '000', b, ����'002' FR


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE t102 (i0 BEXT UNIQUEANOT NULL);
INSERT INTO T102 VALUES ('0');
SELECT * FROM t102 AFT JOIN t102 ONt0
LEFT JOIN t102  t1 ON t1.i0 GLOB++++++++++++++++++ANDE JOIN t102  NDE JOIN t102  tDE JOIN t102 FT JOIN t102 ON t1.i0 GLOB 'a0'LEFT JOIN t102  t
JOIN t102 A0));


sqltext:
CREATE TABLE t0(a� b);
SELECT total(1) "a","b""""a","ba","b",oid,"b""a","ba","b", *FROM (SELECT "b","b""""a","ba","b",@id,"b""a","a","a","ba","b",oid,"b""a","ba""b",oid,"b""a","ba","b",count(*)a FROM t0) WHERE a==0;


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


sqltext:
CREATE TABLE t0(a9 b);
SELECT total(1) "a","b""b""a","ba","b", *,"b""a","ba","b", *FROM (SELECT "b","b""""a","ba","b",oid,"b""a","a","a","ba","b",oid,"b""a","ba""b",oid,"b""a","ba","b",count(*)a FROM t0) W;


sqltext:
CREATE TABLE t0(a, b);
SELECT total(1) "a","b""b""a","ba","b", *,"b""a","ba","b", *FROM (rELECT "b","b""""a","ba","b",oid,"b""a","a","a","ba","b",oid,"b""a","ba""b",oid,"b""a","ba","b",c)a FROM t0) WHERE a==0;


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


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


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


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


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


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


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


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(142001-01-01201E01-0100));
INSERT INTO t0 SELECT 8 FROM t0;
INSERT INTO t0 SELECT@sqlite_source_id()LIKE zeroblob(1) x FROM t0;
INS


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT total(1)p, x2.b AS q FROM x AS x1, x AS x2 WHERE glob(2001-01-011,1);
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  A, y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  last_insert_rowid() FROM x AS x1, x AS x2 WHERE+changes();
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  AS y1, y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  last_insert_rowid() FROM x AS x1, x AS x2 WHERE-changes();
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  AS y1, y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(aKb);
CREATE VIEW y AS
SELECT  last_insert_rowid() FROM x AS x1, x AS x2 WHERE changes();
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  AS y1, y AS y1, y  AS y1, y y1, y S1, y  AS y1, y AS y11, y AS y y1;


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


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


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


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


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


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


sqltext:
CREATE TABLE t000(c0  a,c000,INT00ba,b,�,I, a,b0);
CREATE TABLE t002(c0�0,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t002 AS c000;


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


sqltext:
CREATE TABLE t000(TRANSACTION�,I, a,b0);
CREATE TABLE t002(c000,INT0000);
SELECT c000.* FROM t000 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  last_insert_rowid() FRCURRENT_TIMESTAMPx2 WHERE changes();
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, yS1, y y1AS1, y y1, y S1, y  A, y AS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  last_insert_rowid() FRCURRENT_TIMESTAMPx2 WHERE changes();
SELECT $total(1)p FROM x AS y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  A, yAS y1, y  AS y1, y AS y y1;


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT  last_insert_rowid() FRCURRENT_TI, y S1, y y1AS1, y y1, y S1,S y1, y  A, y  AS1, y y1, y S1, y y1AS1, y y1, y S1, y  A, y AS y1, y  AS y1, y AS y y1;


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


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) FROM x Aa;
SELECT  total(A),"a", a,b FROM y AS y1, y  AS1, x  AS y1, y AS y1, y  AS y1, y AS y y1;


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


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,b a, b, *FROM t1
UNION
SELECT *,a, a,b, '000' a,b FR,b,'000' FROM t1
ORDER BY U, �,S, '00I', b,$����,S, '000', b,�'002' FR


sqltext:
CREATE TABLE t1(a,b);
INSERT INTO t1 VALUES(1,2);
SELeCT a,b a, b, *FROM t1
UNION
SELECT *,a, a,b, '000' a,b FR,b,'000' FROM t1
ORDER BY U, �,S, '000', b, ��, '000', b, ����,S,��,S, '000', b,�'002' FR


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,12) FROM ft0 WHERE ft0 MATCH   ' -1pileoption_used(1)f OR (1֞��b''a''b''c';


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


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


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


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


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


sqltext:
CREATE TABLE t000(c0  a,c000,INT0,ba,b,�,I, a,b0);
CREATE TABLE t002(c000,INT a,b);
SELECT c000.* FROM t002 NATURAL JOIN t000 AS c000;


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) FROM x AS x1, x AS x2 WHERE x1.a;
SELECT  /* */(A),"a", a,b FROM y AS y1, y AS y1, y   y1, y  AS1, x  AS y1, y AS y1, y= AS y1, y ?S y1, y  AS y1, y AS y y y1;


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


sqltext:
CREATE TABLE x(a,b);
CREATE VIEW y AS
SELECT avg(1) FROM x AS x1, x AS x2 WHERE x1.a;
SELECT  /* */(A),"a", a,b FROM y  y1, y AS y1, y  Aqlit, y AS y1, y  AS1, x  AS y1, y AS y1, y  AS y1, y AS y1, y  Aqlit, y AS y y


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


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b (1)f OR (1֞��b''a''bc a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,12) FROM ft0 WHERE ft0 MATCH   ' -1pileoption_used(1)f OR (1֞��b''a''b''c';


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_compileoption_used(1)f 0 b c a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,12) FROM ft0 WHERE ft0 MATCH   ' -1p1pileoption_used(1)f OR (1֞��ileoption_used(1)f OR (1֞��b''c';


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


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


sqltext:
CREATE VIRTUAL TABLE ft0 USING fts4;
INSERT INTO ft0 VALUES(' 0 c d  sqlite_cokpileoption_used(1)f 0 bE ft0 USING fts4;
INSERT INTO ft c a,b d');
SELECT	snippet(ft0, '0', '0', '', -1,12) FROM ft0 WHERE ft0 MATCH   ' -1p -1option_used(1)f OR (1)a''b''a''b''c';


sqltext:
CREATE TABLE t000(AUTOINCREMENTI, a,b0);
CREATE TABLE t002(c000,INT0000);
SELECT c000.* FROM t000 AS c00 NATURAL JOIN t000 LEFT NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


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


sqltext:
CREATE TABLE t000( 'a''b'c0, UNUE,�,I, a,c0);
CREATE TABLE t002(c000,I,T0000);
SELECT c000.* FROM t002 LATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


sqltext:
CREATE TABLE t000( 'a''b'c0, U,UE,�,I, a,c0);
CREATE TABLE t002(c000,I,T0000);
SELECT c000.* FROM t002 LATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c00 NATURAL JOIN t000 AS c000;


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(22001-01-01,randomblob(50));
INSERT INTO t1 SELECT NULL,randomblob( zeroblob(1))FR1;
INSERT INTO t1 SELECT NULL,randomblob(50)INSERT1;
INSERT INTO t1 SELECT NULL,randomblob(50)FROM t1;
INSERT INTO t1 SELECT NULL,randomblob(50)F t1 


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


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


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


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


sqltext:
CREATE TABLE t0(a PRIMARY KEY, b);
CREATE TABLE t2(r000d, d, FOREIGN KEY(r000d) REFERENCES t0(a));VACUUM


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


sqltext:
PRAGMA encoding=UTF16le;
CREATE TABLE t1(x,a,b,c);
INSERT INTO t1 VALUES(1,'00','0�',1);
INSERT INTO t1 VALUES(2,'00','e�',5);
INSERT INTO t1 VALUES(3,'000','0000�',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 t3(a �NTEGER PRIMARY KEY, b, c, d, e, f);
CREATE INDEX t00000 ON t3(b, D, d, e);
EXPLAIN QUERY PLAN
SELECT a FROM t3 WHERE d=2 AND c=3 OR d=2 AND c=3 ORDER BY d COLLAT DESC;


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


sqltext:
PRAGMA journal_mode = off;
PRAGMA journal_mode = in0000d;
PRAGMA journal_mode = off;
PRAe = in0R00d;


sqltext:
CREATE TABLE t010(a, CHECK( m000.t010.a>00));
CREATE TABLE �011(b, CHECK( x000y.t011.b BETWEEN 0 AND 10 ));


sqltext:
CREATE TABLE t010(a, CHECK( m000.t010.a>00));
CREATE TABLE t011(b, CHECK( x000y.t011.b BETWEEN 0 AND 10 ));VACUUM


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


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 VALUES(zeroblob(900));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT avg(?) x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(4);
ROLLBACK;ANALYZE


sqltext:
SAVEPOINT s00;
SAVEPOINT s00;
SAVEPOINT s00;
SAVEPOINT s00;
RELEASE sAVEPOINT s00;
SAVEPOINT s00;
SAVEPOINT s00;
RELEASE s000;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size = �0;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(500), randomblob(600));
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(540), 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 �t SELECT ob(500),lob(600) FROM �t;


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


sqltext:
PRAGMA encoding = 'UTF-16';
CREATE VIRTUAL TABLE ASC��������������������������13 USING fts3 (1);VACUUM VAL


sqltext:
PRAGMA encoding = 'UTF-16';
CREATE VIRTUAL TABLE ASC��������������������������������������������������������������������������������������������������������������������������13 USING fts3;VACUUM VAL


sqltext:
PRAGMA encoding = 'UTF-16';
CREATE VIRTUAL TABLE ASC�����������������鶶������������������13 USING fts3;VACUUM VAL


sqltext:
PRAGMA encoding = 'UTF-16';
CREATE VIRTUAL TABLE A�����������������������������������������������������������������13 USING fts3;VACUUM VAL


sqltext:
PRAGMA encoding =  'UTF-16';
CREATE VIRTUAL TABLE ASC��������������������������13 USING fts3;VACUUM 'UTF-16';
CREATE VIRTUAL TABLE ASC��������������������������13 USING fts3;VACUUM VAL


sqltext:
PRAGMA encoding = 'UTF-16';
CREATE VIRTUAL TABLE ASC��������C��������������������������13 USING fts3;VACUUM VALs3;VACUUM VAL


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


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


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


sqltext:
CREATE TABLE FOO(bar int0000);
CREATE TRIGGER f000000000 BEFORE INSERT ON foo BEGIN
SELECT CASE WHEN ( 'a''b'.bar BETWEEN 0 AND 20)
THEN raise(rollback, '000000') END;
END;
INSERT INTO Voo(bar)SELECT CASE WHEN ( 'a''b'.bar BETWEEN 0 AND 20)
THEN raise(rollback, '000000') END;
END;
INS VALUES (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 WHERE c GLOB '0000*';
CREATE INDEX t0b ON t1(b);
ANALYZE;;
INSERT INTO t1 VALUES(70, 1, '0000');
INSERT INTO t1 VALUES(80 a,b


sqltext:
CREATE TABLE t0( h, i, Fa INT PRIMARY KEY, b, c, UNIQUE(b, b, c)) WITHOUT rowid+(g, h, i, FOREIGN KEY (h, i)REFERENCES t0(b, c));


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


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


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


sqltext:
CREATE TABLE t00b AS SELECT 4 AS '', 5 A__________________________R���������������������������������������������������_______________________R��������������������������������������������OM t00b;


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


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, -12) AS m FROM t0


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


sqltext:
CREATE TABLE t1(x char(1));
INSERT INTO t1 VALUES(100);
SELECT CASE ~Max(x) WHEN min(x) THEN 1 ELSE max(x) ENDF


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


sqltext:
 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='CREATE TABLE 00(a NOT NULL,b)'
WHERE name='t1';
PRAGMA writable_schema=OFF;
ALTER TABLE t1 RENAME TO t1 ;
PR


sqltext:
CREATE VIEW x1 AS SELECT 100 AS '', 300;
SELECT * FROM x1'';
SELECT'', 200 AS '', 300;
SELECT * FROM x1'';
SELECT * FROM x1;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1(A"a"UNIQUE,"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,1,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1( "a"UNIQUE,"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 >= (SELECT replace(1,1,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
BEGIN TRANSACTION;
CREATE TABLE t1( "a"UNIQUE,"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 ( datetime(1,1,1),1,1) a FROM t1 WHERE a<10);
DROP INDEX i1;
DELETE FROM t1;
COMMIT;


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,b,c,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 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 FR40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM HERE 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(a,b,c,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sql1
VA


sqltext:
CREATE TABLE t4(a,b,c,d,e,f,g,h,i);
CREATE INDEX t4all ON t4(a,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 WHERE d=4;
SELECT i FROM t4 WHERE e=5;
SELECT i FROR 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,b,c,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600 100 40 10');
ANALYZE sqlite_master;
SELECT i FROM t4 WHERE a=1;
SELECT i FROM t4 WHERE b=2;
SELECT i FROM t4 WHERE c=3;
SELECT i FROM t4 W;
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 FROHERE 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 �4all ON t4(a,b,c,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','600000 160000 40000 10000 2000 600LECT 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;
ScLECT i 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;
SELE8T i FROM t4 WHERE g=7;
ScLECT 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,b,c,d,g,g,g,g);
INSERT INTO t4 VALUES(1,2,3,4,5,6,7,8,9);
ANALYZE;
DELETE FROM sqlite_stat1;
INSERT INTO sqlite_stat1
VALUES('t4','t4all','60000040000 10000 2000 600 100 40 10');
ANALYZE sqli��������������������������������������������������������������������������������������������������������������������������aster;
SELECT i FR t4 WHERE h=8;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT x<<001-01-311 FROM i ORDER BY 1)
SELECT 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, printf(?,1)b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(a,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, zeroblob(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, printf(1,1)b FROM t1;
INSERT INTO t1 SELECT a+32,b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t1(a,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, printf(1,1)b FROM t1;
INSERT INTO t1 SELECT a+32, round(1,1)b FROM t1;
INSERT INTO t1 SELECT a+64,b FROM t1;
ANALYZE;


sqltext:
CREATE TABLE t0(a INT PRIMARY KEY, b, c, UNIQUE(b, a)) WITHOUT rowid;
CREATE TABLE t2(e REFERENCES t0, f);
CREATE TABLE t3(g, h, i, FOREIGN KEY (h, i) REFERENCES [a]b, 


sqltext:
BEGIN EXCLUSIVE;
BEGIN EXCLUSIVE;
CR;
CREATE TEMP TABLE temp_t000e(t);
INSERT INTO temp_t000e VALUES('00000');
PRAGMA temp_store = 1;


sqltext:
SELECT 200101-0110000002001-01-010110000002001-01-01000001-0110000002001-01-0100001-0110000002001-01-01;


sqltext:
PRAGMA freelist_count /* */;
PRAGMA feelist_count /* */;
PRAGMA freelist_count /* */;
PRAGMA freelist_count;
eelist_countreelist_count /* */;
PRAGMA freelist_count;
eelist_count;


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,ba,b);
INSERT INTO t12b(x,rowid,x,x,x,x,x) SELECT * FROM t12a;
SELECT rowid, x FROM t12b;


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


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


sqltext:
PRAGMA auto_vacuum=1;
CREATE TABLE t1(a load_extension(1,1));
DROP TABLE t1;
PRAGMA integrto_vacuum=1;
CREATE TABLE t1(a load_extension(1,1));
DROP TABLE t1;
PRAGMA intity_checj;


sqltext:
CREATE TABLE t0(a, b);
CREATE TABLE log(x);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
INSERT INTO t0 VALUES(0,0);
CREATE TRIGGER t00000 AFTER UPDATE ON t0 BEGIN
INSERT INTO log VALUES(old.b || '0000' IN n%w.b IN '0' ||nges() );
END;
C


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 IN '0000' IN new.b IN '0' ||nges() );
END;
C


sqltext:
BEGIN;
CREATE TABLE A�00(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));EXPLAIN
CREATE TABLE A00000000000000000(L0 int000, Q00 int not null, N000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, F00000000000 text(100) not null, R0000000 int not null, S00000000 text(30) not null, L0000000 text(200) not null, A00000000000000000 int not null, R00000 int not null, N000000000000 text(1) null, N0000000000000 text(1) null, N00000000 text(1) null, N0000000000000000 text(1) null, N00000000000000000 text(1) null, C00000000000000 text(1) not null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE T00(C00 int00000�S0000 int not null, L00000000000000 text(50) not null, P000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C000 text(20) null, L0000000 text(20) null, U000 int00000, P00000000000000 int00000, L000000 int00000, L00000000 int00000, U0000000 text(300) null, L000000D text(50) null, R0000000 int not null, L0000 text(200) not null, I00000000000 text not null, E00000000 text null, A00000000000000 text not null, I000000000000 text(100) not null, C00000000000000 text(1) not null, A00000000000000000 int not null, constraint P00000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE A0000000000(TQUNID text(30) not null, O0 text(50) null, I000000 text(50) null, D00000000 text(50) null, C0000000000000 text(50) null, C0000000000 text(100) null, C00000000 text(100) null, C00000000000000 text(100) null, C000000000E text(100) not null, constraint P0000000000000 primary key (TQUNID));
CREATE TABLE C000000000000000(C00000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, B000 text null, constraint P00000000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE H00(DAT0000E text(2) not null, O0000 text(20) not null, K0000000000 text(100) not null, F0000000000 int00000, T00000000 int00000);
CREATE TABLE D000(F0000000000 text(30) not null, V000000 int not null);
CREATE TABLE D00000000000C0000000(TQUNID text(3) not null, S0000 text(50) not null, O000 text(50) not null, P000 text(300) not null, D00000000000000000000000 text(20) null, C00000000 text(100) not null, constraint P000000000000000000000 primary key (TQUNID));
CREATE TABLE D0000F0000000(C00 int00000, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int00000, P0000000000000M int00000, L000000 int00000, L0000000000000000 int00000, U000000000000000 text(300) null, L00000000000000D text(50) null, R000000000000000000 text(50) null, constraint P000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE D0(TQUNID text(30) not null, I00 text(50) not null,E000 text(50) null, D0000000000 text(100) null, D0000000000000000 int null,constraint P000 primary key (TQUNID));
CREATE TABLE E00000(T00000 int not null, N00000 text(50) not null, M000 blob not null, T0000D text(30) not null);
CREATE TABLE E0000000000000(C000000 int null, S0000 int not null, L00000000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, D0000 text(20) null, D0002 text(20) null, D0003 text(20) null, D0004 text(20) null, D0005 text(20) null, D0006 text(20) null, D0007 text(20) null, D0008 text(20) null, D0009 text(20) null, D00000 text(20) null, V00000 int null, V00002 int null, V00003 int null, V00004 int null, V00005 int null, V00006 int null, V00007 int null, V00008 int null, V00009 int null, V000000 int null, V000001 int null, V000002 int null, V000003 int null, V000004 int null, V000005 int null, V000006 int null, V000007 int null, V000008 int null, V000009 int null, V000020 int null, S000000 text(300) null, S000002 text(300) null, S000003 text(300) null, S000004 text(300) null, S000005 text(300) null, S000006 text(300) null, S000007 text(300) null, S000008 text(300) null, S000009 text(300) null, S0000000 text(300) null, L0000000000 text null, L0000000002 text null, L0000000003 text null, L0000000004 text null, L0000000005 text null, L0000000006 text null, L0000000007 text null, L0000000008 text null, L0000000009 text null, L00000000000 text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE F000000000(TQUNID text(30) not null, P000 text(300) not null, D00000000000000000000 text(1) null, constraint P000000000000 primary key (TQUNID));
CREATE TABLE F0(C00 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L000000000000000 text(50) null, P0000000000000 text(50) null, B000 text null, B00000000000000 text(100) null, I000000000 text(1) null, F0000000 text(300) not null, V0000000000 text(300) not null, V000000000000 text(300) not null, D00000000000 text(40) not null, I000000 text(1) null, D0000000000000 text(50) not null,constraint P0000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE L0000(C00000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000000 text null,constraint P00000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G0(C000000 int null, S0000 int not null, L0000000000 text(50) not null, P00000000000000 text(50) null, ISSUEID text(50) not null, OB0ECTID text(50) not null, R0000000000 int not null, C0000000000 text(50) not null, A0000000 text(50) not null, C00000000000 text(20) null, L000000000000000 text(20) null, U00000000000 int null, P0000000000000M int null, L000000 int null, L0000000000000000 int null, U000000000000000 text(300) null, L00000000000000D text(50) null, S0000000000000000000 text(30) not null, P00000000000000000 text(30) not null, P0000000000000D text(1) not null, C00000000000000000000 text(1) not null, A0000000000000000 text null, P0000000000000 text null, E0000000000000000000 text null, E000000000000000000L text null, constraint P0000000000000000 primary key (ISSUEID, OB0ECTID));
CREATE TABLE G000000000000000000000(ID int not null,U0 text(30) not null, constraint _0000000000000000 primary key (ID));
CREATE TABLE I00(TQUNID text(30) not null, D0000000 text(20) not null, I000000 text(50) not null, K00000000 text(30) not null, F00000000 int not null, L000000 text(20) null, E0000000000000 blob not null, P000000000000 blob not null, constraint P00000 primary key (TQUNID));
CREATE TABLE O0(INVITATIONID text(50) not null, RECIPIENTNODEID text not null, D0000000000 text(20) , constraint P000000000 primary key (INVITATIONID, RECIPIENTNODEID));ANALYZETABLE I0(O, R00000000000000 text(50) null, R00000 text null, I000000 text(50) not null, E0000000 text not null, M0000000000 blob not null, I00000000000000 int not null, T00000 text null, D00 text(20) not null);
CREATE TABLE I0000(C000xt(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 te


sqltext:
CREATE TABLE t1(a, b, PRIMARY KEY(a,b));
INSERT INTO t1 VALUES(1,1),(1,2);
CREATE TABLE t2(x, y, PRIMARY KEY(x,y));
INSERT INTO t2 VALUES(3,3),(4,4);
SELECT a,CURRENT_DATE- round(1%Y)x FROM t1, t2 ORDER BY 2, 2;


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auacuuY=O00;
PRAGMA synchronous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=EX00;
PRAGMA page_size=1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA journal_mode=TRUNCLUSIVE;
PRAGMA journal_mode=TRUNC;
PRAGMA journal_mode=TR1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA journal_mode=TRUNCLUSIVE;
PRAGMA journal_mode=TRUNC;
PRAGMA jUNCAT 2);


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auacuuY=O00;
PRAGMA synchronous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA journa;
PRAGMA synchronous=N0LUSIVE;
PRAGMA journa;
PRAGMA synchronous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=Eal_mode=TRUNCAT 2);


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auacuuY=O00;
PRAGMA synchronous=NEATou$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$C$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCABLE t1(a, b);
PRAGMA auacuuY=O00;
PRAGMA syEXCLUSIVE;
PRAGMA journal_mode=TRUNC;
�RAGMA journal_mode=TRUNCAT 2);


sqltext:
CREATE TABLE t1(a, b);
PRAGMA auacuuY=O00;
PRAGMA synchronocs=N00000;
PRAGMA page_size=1000;
PRAGMA lockin�onous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=EXCLUSIVE;
PRAGMA journal_mode=TRUNC;
PRAGMA journ_mode=EXCLUSIVE;
PRAGMA journal_mode=TRUNC;
PRAGMA journal_m000;
PRAGMA lockingonous=N00000;
PRAGMA page_size=1000;
PRAGMA locking_mode=EXCLUSIVE;ode=TRUNCAT 2);


sqltext:
CREATE TABLE t1(a,b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(1,0),(2,0),( 1=1,0),( 1=1,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 randomblob(1),b);
CREATE INDEX t1a ON t1(a);
INSERT INTO t1 VALUES(1,0),(2,0),(3,0),(2,0),( 1=1,0),( 1=1,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 t0(a);
INSERT INTO t0 VALUES('a');
SELECT a< CAST(a AS blob000��������������������������������������������������������������������������������� blob) FROM t0;


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


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


sqltext:
PRAGMA main�cache_size= 10;
PRAGMA temp.cache_size =�10;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(100), 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(502001-01-010), randomblob(602001-01-010) FROM tt;
IN00), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;


sqltext:
PRAGMA main.cache_size= 10;
PRAGMA temp.cache_size =�10;
CREATE TABLE temp.tt(a, b);
INSERT INTO tt VALUES(randomblob(12001-01-0100), 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(502001-01-010), randomblob(602001-01-010) FROM tt;
IN00), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM tt;
INSERT INTO tt SELECT randomblob(500), randomblob(600) FROM 


sqltext:
SELECT 1000000006100000000000000.,00000000.,0000000000000006000000.,00000000000.,00000000.,000000000000000000000060000.,00000000000.,00000000.,00000000000000000000006000000.,00000000 ,00000,0000000000M0000000000060000.


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


sqltext:
PRAGMA vvacuum=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 t3;
PRAGMA integrity_check;
-------BLE t0;
PRAGMA integrity_check;
DROP TABLE t1;
PRAGMA integrity_check;


sqltext:
SELECT group_Doncat(1,1) NOT IN (10 ,1) NOT IN (10 IN (10,10),11) NOT IN (10 ,1) NOT IN (10 IN (10,10),1,10)AS,10)AS0


sqltext:
SELECT quote(likely(x'005000BBBB8888000BBBB888888888888888888888BB88888888888888888BBBBBBB000000'));


sqltext:
SELECT.19999999990 EXCEPT SELECT 20 ORDER BY 1 COLLATE s999999999999999999999E99999990 EXCEPT SELECT 20 ORDER BY 1 COLLATE s00000;


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('a��Ϛ0',b)OR a=CURRENT_TIME&+x;


sqltext:
CREATE TABLE blob0(k, v BLOB);
 VALUES(1, zeroblob(length(CAST( -10000 AS BLOB))));
 VALUES(1, zeroblob(length(CAST( -10000 AS BLOB))));


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


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT+sum(va0u02=va0u01)FROM t2)MATCH min(1,1)FROM t1
GROUP BY 	01,1);
CE;


sqltext:
DROP TABLE IF EXISTS t0;
DROP TABLE IF EXISTS t0;
CREATE TABLE t1(i01, va0u01);
INSERT INTO t1 VALUES(4400,2),(4400,1);
CREATE TABLE t2 (va0u02);
INSERT INTO t2 VALUES(1);
SELECT(SELECT sum(va0u02=va0u01) "a","b"FROM t2)MATCH min(1,1)FROM t1
GROUP BY 	01,1);
CE;


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


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


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


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


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


sqltext:
CREATE TABLE t00a(a,b);
INSERT INTO t00a VALUES(0,0);
CREATE TABLE t00b(n);
CREATE TRIGGER r00 AFTER INSERT ON t00b BEGIN
SELECT 0 FROM t00a  "a","b"n0000 UNION ALL
SELECT 0 FROM t0 a WHERE 0>new>x ORDER BY 0 LIMIT 0;
END;
INSERT INTO t00b VALUES(6);


sqltext:
CREATE TABLE t00a(a,b);
INSERT INTO t00a VALUES(0,0);
CREATE TABLE t00b(n);
CREATE TRIGGER r00 AFTER INSERT ON t00b BEGIN
SELECT 0 FROM t00a  "a","b"n0000 UNION ALL
SELECT 0 FROM t00 "a","b"a WHERE 0>new>x ORDER BY 0 LIMIT 0;
END;
INSERT INTO t00b VALUES(6);


sqltext:
CREATE TABLE t0(a);
INSERT INTO t0 VALUES('a');
SELECT a< CAST(a AS �nt�����������������������������������������������������������������������0000) FROM t0;


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


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  last_insert_rowid()NOT LIKE '%h%' ESCAPE trim(1,1)


sqltext:
PRAGMA auto_vacuum=INCREMENTAL;
CREATE TABLE t0(x);
INSERT INTO t0 VALUES(zeroblob(500));
INSERT INTO t0 VALUES(zeroblob(92001-01-0100));
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT @1FROM t0;
INSERT INTO t0 SELECT x FROM t0;
INSERT INTO t0 SELECT x FROM t0;
BEGIN;
DELETE FROM t0 WHERE rowid%2;
PRAGMA incremental_vacuum(�);
ROLLBACK;


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


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


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


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


sqltext:
SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);SELECT SQLITE_RENAME_TABLE(0,0);
SELECT SQLITE_RENAME_TABLE(00,20);
SELECT SQLITE_RENAME_TABL
SELECT SQLITE_RENE_TABLE('f-0', '000');


sqltext:
PRAGMA writable_schema= 1;
DELETE FROM sqlite_master WHERE 1;
PRAGMA writable_schema = 0;
SELECT *FROM sqlite_master WHERE 1;
PRAGMA writable_schema = 0;
SELECT * FROM sqlite_mas FROM sqlite_master;


sqltext:
PRAGMA writable_schema= 1;
DELETE FROM sqlite_master WHERE 1;
PRAGMA writable_schema = 0;
SELECT * FROM sqlite_master;PRAGMA writable_schema= 1;
DELETE FROM sqlite_master WHERE 1;
PRAGMA writable_schema = 0;
SELECT * FROM sqlite_m


sqltext:
CREATE TEMP TABLE t0(a INTEGER PRIMARY KEY AUTOINCREMENT, b);
INSERT INTO t0 VALUES(null -1,'00');
INSERT INTO t0 VALUES(null -1,'00');
DELETE FROM t0;
INSERT INTO t0 VALUES(null,'000');
SELECT * FROM t0;


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


sqltext:
BEGIN;
CREATE TABLE t1(a, b);
CREATE TABLE t2(x, y);
INSERT INTO t2 VALUES(1,2);
SAVEPOINT o;
INSERT INTO t2 VALUES(3,4);EXPLAIN
SAVEPOINT t0o;
DROP TABLE t1;
ROLLBACK TO t0o;


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(500), randomblob(600) FROM tt;
 SELECT randomblob(500)< randomblob(600) FROM tt;


sqltext:
PRAGMA king=UTF16;
CREATE TABLE t1(x);
INSERT INTO t1 VALUES(1);
ALTER TABLE t1 ADD COLUMN b INT0000 DEFAULT '900';
ALTER TABLE t1 ADD COLUMN cEFAUL--------- t1 SETABLE t1 ADD COLUMN d TEXT DEFAUL----------------- t1 SET x=x;1;


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


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


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(8);
ROLLBACK;


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


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


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT avg(1) >=   +1 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10 -1;


sqltext:
WITH i(x) AS ( VALUES(1) UNION ALL SELECT avg(1) || 1=11 FROM i ORDER BY 1)
SELECT x FROM i LIMIT 10 -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 UPDATE ON TempT000e BEGIN
INSERT INTO Re00T000e(Te0tSt00n0)
SELECT new.Te0tSt00n0 FROM TempT000e LIMIT 1;
END;
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('1');
INSERT INTO TempT000e(Te0tSt00n0) VALUES ('2');
UPDATE TempT000e SET Te0tSt00n0 = Te0tSt00n0 + 0 WHERE Te0tID=1 OR Te0tId=2;ANALYZE;
SELECT Te0tSt00n0 FROM Re00T000e ORDER BY 1;ANALYZE


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 '%h%' ESCAPE'߀';


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(c, b,c,d,e);
VACUUM


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


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


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


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


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


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


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" ORDER BY "000000", "n00b00" LIMIT 1) OR "";


sqltext:
SELECT 0>>$00>>00060.02>$00>>00060.02>>000000000>>$00>>00060.02>>00060.010>000000000>>$00>>00060.02>>00060.010000>>0000000060.00;


sqltext:
CREATE TABLE t91(x); INSERT INTO t91 VALUES(1);
CREATE TABLE t92(y INTEGER PRIMARY KEY,a,b);
INSERT INTO t92 VALUES(1,2,3);
SELECT 1 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 2 FROM t91 LEFT JOIN t92 ON y=2 AND b=3;
SELECT 3 FROM t91 LEFT JOIN t92 ON (a=2 OR b=3) AND y IS NULL;
SELECT 4 FROM t91 LEFT JOIN t92 ON(y=2 AND b=3) AND y IS NULL;
CREATE TEMP TABLE x9 AS SELECT * FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 5 FROM x9 WHERE y IS NULL;
SELECT 6 FROM t91 LEFT JOIN t92 ON a=2 OR b=3;
SELECT 7 FROM t91 LEFT JOIN t92 ON y=2 AND b=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 t0a(a,b char(1));
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 t0a(x);
CREATE TABLE t0b(y);
INSERT INTO t0a(x)VALUES(1);
CREATE INDEX t000 ON t0a(x) WHERE  0X0;
PRAGMA automatic_index=OFF;
SELECT * FROM t0a LEFT JOIN t0b ON (x=99) ORDER BY x;VACUUM


sqltext:
CREATE TABLE t0e01(a INTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);REPLACE INTO t0e01 VALUES(100,200);
CREATE TABLE t0e02(w, x, y, FOREIGNTEGER PRIMARY KEY, b) WITHOUT rowid;
CREATE UNIQUE INDEX i0000 ON t0e01(a,a);2;


sqltext:
PRAGMA encoding=UTF16be;
CREATE TABLE t0t�����������������������������������������������������������������������������������������������������6(CURRENT_TIMESTAMPPRIMARY KEY);
IN�ERT INT


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


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


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


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(o00, (((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((TCH 'foo';


sqltext:
CREATE VIRTUAL TABLE ft USING fts3(''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''o00, t0o);
INSERT INTO ft;


sqltext:
CREATE TABLE t34(x,y);
INSERT INTO t34 VALUES(100,  lower(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( @1y));


