## Summary
<!--Explain briefly what goes wrong and explain why you believe this is a bug and not the intended behavior of SQLite (if it is not a crash).-->**No review yet**

## Minimized query

```sql
SAVEPOINT sp2813;
PRAGMA trusted_schema = FALSE;
CREATE TABLE T (
  A VARCHAR(ln(floor(unicode('A')))) PRIMARY KEY,
  B VARCHAR(30) NOT NULL,
  C BIGINT UNIQUE
);
INSERT INTO T VALUES ('a', 'x', -9223372036854775808);
INSERT INTO T VALUES ('b', 'y', -1000000);
INSERT INTO T VALUES ('c', 'y', 0);
INSERT INTO T VALUES ('d', 'y', 42);
INSERT INTO T VALUES ('e', 'x', 9223372036854775807);
INSERT INTO T VALUES ('f', 'z', 2147483648);
SELECT * FROM T WHERE C > 0 ORDER BY C DESC;
.clone new_db
PRAGMA trusted_schema = replace(iif(NULL, 0, 0), 0, 0);
BEGIN IMMEDIATE;
-- length({v})

CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
BEGIN IMMEDIATE TRANSACTION;
.progress DOUBLE PRECISION(CAST('{"a":1,"b":[1,2,3]}' AS NUMERIC), 'start of month')
PRAGMA auto_vacuum > INCREMENTAL;
.excel
PRAGMA cache_spill = FALSE;
SAVEPOINT sp9357;
CREATE TABLE T1 (
  A VARCHAR(-9223372036854775809) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES (('' || '') || ('p'), 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -9223372036854775808);
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
ATTACH DATABASE ':memory:' AS aux97;
.print https://yewtu.be/watch?v=dQw4w9WgXcQ
SAVEPOINT sp8970;
PRAGMA checkpoint_fullsync = FALSE;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;(':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ' || ''):memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE NOT NOT (c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d) ;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE [T] (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(x'')),'b',CAST(-(-(1)) AS CHARINT)), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON /* lower(123) */ CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
CREATE TABLE T1 (
  A VARCHAR(20),
  X VARCHAR(10),
  PRIMARY KEY (A, X),
  UNIQUE (X)
);
CREATE TABLE T2 (
  A VARCHAR(20),
  Y VARCHAR(10) UNIQUE,
  PRIMARY KEY (A, Y)
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T2 VALUES ('b', 'k');
SELECT A FROM T1 UNION ALL SELECT A FROM T2 ORDER BY A;
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE /* trim({v}, 'xyz') */ ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
SELECT * FROM T AS a RIGHT OUTER JOIN T2 AS b ON a.rowid = b.rowid;
ROLLBACK TO sp8970;
RELEASE sp8970;
SELECT NTILE(0) OVER (PARTITION BY b ORDER BY b ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
SELECT COUNT(C) FROM T2;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15) NOT NULL,
  C INTEGER,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -2147483648);
INSERT INTO T VALUES ('b', 'q', 700);
INSERT INTO T VALUES ('c', 'r', 0);
INSERT INTO T VALUES ('d', 's', 2147483647);
INSERT INTO T VALUES ('e', 't', -1);
INSERT INTO T VALUES ('f', 'u', 1);
SELECT * FROM T WHERE C BETWEEN -1000 AND 1000 ORDER BY C ASC;
DETACH DATABASE aux97;
DELETE FROM T2 WHERE rowid = 10 RETURNING *;
SELECT COUNT(*) FILTER (WHERE X IS NOT NULL), SUM(rowid) FILTER (WHERE X > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(X) FILTER (WHERE X > 0 AND X < 100), COUNT(*) FILTER (WHERE typeof(X) = "text") FROM T2;
DROP TRIGGER IF EXISTS T1;
CREATE TRIGGER IF NOT EXISTS trg_T2_9230 BEFORE INSERT ON T2 FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
REINDEX T2;
REINDEX T;
UPDATE T2 SET X = 'x' RETURNING *;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T2 SELECT * FROM T2;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T2_4223 AS SELECT X FROM T2;
DELETE FROM T WHERE 0;
CREATE TEMP  VIEW IF NOT EXISTS v_T_2256 AS SELECT B FROM T;
SELECT MIN(A) FROM T;
SELECT * FROM T1;
VACUUM main;
INSERT OR REPLACE INTO T2 VALUES ('', NULL, 6);
WITH cte(a, b, c) AS (SELECT A, A, A FROM T) SELECT a, b, c FROM cte;
ALTER TABLE T2 DROP COLUMN A;
ANALYZE T;
ROLLBACK TRANSACTION TO SAVEPOINT sp9357;
RELEASE SAVEPOINT sp9357;
SELECT DENSE_RANK() OVER (ORDER BY C) FROM T2;
SELECT * FROM T1 AS a RIGHT OUTER JOIN T1 AS b ON a.rowid = b.rowid;
WITH cte AS (SELECT 1 AS x) INSERT INTO T2(A) SELECT x FROM cte WHERE 1=0;
ALTER TABLE T2 RENAME COLUMN X TO X_r31;
ALTER TABLE T2 ADD COLUMN extra_5953 DOUBLE;
END TRANSACTION;
ALTER TABLE T RENAME COLUMN C TO C_r7714;
ANALYZE T1;
SELECT * FROM T2;
CREATE  VIEW IF NOT EXISTS v_T1_3687 AS SELECT B FROM T1;
SELECT NTH_VALUE(C, C) OVER (PARTITION BY C ORDER BY C ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
VACUUM main;
ALTER TABLE T1 ADD COLUMN extra_2458 DOUBLE PRECISION COLLATE NOCASE;
VACUUM;
CREATE  INDEX IF NOT EXISTS idx_T1_1380 ON T1(B) WHERE B IS NOT NULL;
ANALYZE;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
BEGIN IMMEDIATE TRANSACTION;
.progress 3
PRAGMA auto_vacuum > INCREMENTAL;
.excel
PRAGMA cache_spill = FALSE;
SAVEPOINT sp9357;
CREATE TABLE T1 (
  A VARCHAR(9223372036854775807) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -9223372036854775808);
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
ATTACH DATABASE ':memory:' AS aux97;
.print https://yewtu.be/watch?v=dQw4w9WgXcQ
SAVEPOINT sp8970;
PRAGMA checkpoint_fullsync = FALSE;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;(':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ' || ''):memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE [T] (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(x'')),'b',CAST(-(-(1)) AS CHARINT)), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON /* lower(123) */ CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO /* glob('*', 'hello') */ sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND /**/ A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
SELECT * FROM T AS a RIGHT OUTER JOIN T2 AS b ON a.rowid = b.rowid;
ROLLBACK TO sp8970;
RELEASE sp8970;
SELECT NTILE(0) OVER (PARTITION BY b ORDER BY b ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
SELECT COUNT(C) FROM T2;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15) NOT NULL,
  C INTEGER,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -2147483648);
INSERT INTO T VALUES ('b', 'q', 700);
INSERT INTO T VALUES ('c', 'r', 0);
INSERT INTO T VALUES ('d', 's', 2147483647);
INSERT INTO T VALUES ('e', 't', -1);
INSERT INTO T VALUES ('f', 'u', 1);
SELECT * FROM T WHERE C BETWEEN -1000 AND 1000 ORDER BY C ASC;
DETACH DATABASE aux97;
DELETE FROM T2 WHERE rowid = 10 RETURNING *;
SELECT COUNT(*) FILTER (WHERE X IS NOT NULL), SUM(rowid) FILTER (WHERE X > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(X) FILTER (WHERE X > 0 AND X < 100), COUNT(*) FILTER (WHERE typeof(X) = "text") FROM T2;
DROP TRIGGER IF EXISTS T1;
CREATE TRIGGER IF NOT EXISTS trg_T2_9230 BEFORE INSERT ON T2 FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
REINDEX T2;
REINDEX T;
UPDATE T2 SET X = 'x' RETURNING *;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T2 SELECT * FROM T2;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T2_4223 AS SELECT X FROM T2;
DELETE FROM T WHERE 0;
CREATE TEMP  VIEW IF NOT EXISTS v_T_2256 AS SELECT B FROM T;
SELECT MIN(A) FROM T;
SELECT * FROM T1;
VACUUM main;
INSERT OR REPLACE INTO T2 VALUES ('', NULL, 6);
WITH cte(a, b, c) AS (SELECT A, A, A FROM T) SELECT a, b, c FROM cte;
ALTER TABLE T2 DROP COLUMN A;
ANALYZE T;
ROLLBACK TRANSACTION TO SAVEPOINT sp9357;
RELEASE SAVEPOINT sp9357;
SELECT DENSE_RANK() OVER (ORDER BY C) FROM T2;
SELECT * FROM T1 AS a RIGHT OUTER JOIN T1 AS b ON a.rowid = b.rowid;
WITH cte AS (SELECT 1 AS x) INSERT INTO T2(A) SELECT x FROM cte WHERE 1=0;
ALTER TABLE T2 RENAME COLUMN X TO X_r31;
ALTER TABLE T2 ADD COLUMN extra_5953 DOUBLE;
END TRANSACTION;
ALTER TABLE T RENAME COLUMN C TO C_r7714;
ANALYZE T1;
SELECT * FROM T2;
CREATE  VIEW IF NOT EXISTS v_T1_3687 AS SELECT B FROM T1;
SELECT NTH_VALUE(C, C) OVER (PARTITION BY C ORDER BY C ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
VACUUM main;
ALTER TABLE T1 ADD COLUMN extra_2458 DOUBLE PRECISION COLLATE NOCASE;
VACUUM;
CREATE  INDEX IF NOT EXISTS idx_T1_1380 ON T1(B) WHERE B IS NOT NULL;
ANALYZE;
CREATE VIRTUAL TABLE t0 USING fts4("x", "y", "z");
DROP TABLE t0;
BEGIN IMMEDIATE TRANSACTION;
.progress 3
PRAGMA auto_vacuum > INCREMENTAL;
.excel
PRAGMA cache_spill = FALSE;
SAVEPOINT sp9357;
CREATE TABLE T1 (
  A VARCHAR(9223372036854775807) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -9223372036854775808);
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
ATTACH DATABASE ':memory:' AS aux97;
.print https://yewtu.be/watch?v=dQw4w9WgXcQ
SAVEPOINT sp8970;
PRAGMA checkpoint_fullsync = FALSE;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;(':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ' || ''):memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE [T] (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(x'')),'b',CAST(-(-(1)) AS CHARINT)), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON /* lower(123) */ CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
CREATE TABLE T (
  a INTEGER,
  b REAL,
  c REAL
);
INSERT INTO T VALUES (1,1.5,10.0), (2,-2.5,20.0), (3,-9e999,30.0);
SELECT * FROM T WHERE b < 2.0 ORDER BY b;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
BEGIN DEFERRED;
.vfslist
SAVEPOINT sp8619;
.schema !@#$%^&*()qwertyuiop[]\{}|asdfghjkl;':"zxcvbnm,./<>?
.restore emplyeee.db
.log stdout
.((system)) echo "mwahaha i am root"
ATTACH DATABASE ':memory:' AS aux57;
PRAGMA table_info(users);
.dump main
PRAGMA secure_delete /**/ = YES;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER /**/ );
INSERT INTO T VALUES (octet_length(hex('')),'a',NULL), (-char(unlikely(0)),'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  SELECT *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T RIGHT JOIN d ON T.c=d.a
)
SELECT * FROM d;
ALTER TABLE T ADD COLUMN extra_6942 NUMERIC DEFAULT 0;
INSERT INTO T DEFAULT VALUES;
INSERT INTO T DEFAULT VALUES;
DETACH DATABASE aux57;
SELECT * FROM (SELECT * FROM T) AS sub;
UPDATE T SET a = a + 1 WHERE rowid = 1;
INSERT OR FAIL INTO T VALUES (NULL, 0, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_7402 ON T((a + 1));
DROP INDEX IF EXISTS T;
SELECT TOTAL(a) FROM T;
CREATE TABLE T1 (
  A VARCHAR(15) PRIMARY KEY,
  B VARCHAR(30) NOT NULL UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(10) PRIMARY KEY,
  X VARCHAR(15) NOT NULL,
  C BIGINT,
  FOREIGN KEY (X) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('p', 'x');
INSERT INTO T1 VALUES ('q', 'y');
INSERT INTO T2 VALUES ('a', 'p', 9223372036854775807);
INSERT INTO T2 VALUES ('b', 'q', -printf('%s', NULL));
SELECT X, SUM(C) AS D, COUNT(*) AS E FROM T2 GROUP BY X;
SELECT * FROM T1 AS a LEFT JOIN T1 AS b ON a.rowid = b.rowid;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T1;
ALTER TABLE T2 RENAME COLUMN X TO X_r1156;
INSERT INTO T1 VALUES (NULL, NULL);
ROLLBACK TO sp8619;
RELEASE sp8619;
INSERT OR FAIL INTO T1 VALUES (1, '');
SELECT TOTAL(a) FROM T;
ALTER TABLE T RENAME TO T_r6081;
INSERT INTO T2 VALUES ('x', NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FILTER (WHERE A IS NOT NULL), SUM(rowid) FILTER (WHERE A > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(A) FILTER (WHERE A > 0 AND A < 100), COUNT(*) FILTER (WHERE typeof(A) = "text") FROM T2;
SELECT * FROM T1;
SELECT * FROM T1;
END;
SELECT * FROM T AS a RIGHT OUTER JOIN T2 AS b ON a.rowid = b.rowid;
ROLLBACK TO sp8970;
RELEASE sp8970;
SELECT NTILE(0) OVER (PARTITION BY b ORDER BY b ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
SELECT COUNT(C) FROM T2;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15) NOT NULL,
  C INTEGER,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', -2147483648);
INSERT INTO T VALUES ('b', 'q', 700);
INSERT INTO T VALUES ('c', 'r', 0);
INSERT INTO T VALUES ('d', 's', 2147483647);
INSERT INTO T VALUES ('e', 't', -1);
INSERT INTO T VALUES ('f', 'u', 1);
SELECT * FROM T WHERE C BETWEEN -1000 AND 1000 ORDER BY C ASC;
DETACH DATABASE aux97;
DELETE FROM T2 WHERE rowid = 10 RETURNING *;
SELECT COUNT(*) FILTER (WHERE X IS NOT NULL), SUM(rowid) FILTER (WHERE X > 0), COUNT(*) FILTER (WHERE 1=0), COUNT(*) FILTER (WHERE 1=1), COUNT(*) FILTER (WHERE NULL), AVG(X) FILTER (WHERE X > 0 AND X < 100), COUNT(*) FILTER (WHERE typeof(X) = "text") FROM T2;
DROP TRIGGER IF EXISTS T1;
CREATE TRIGGER IF NOT EXISTS trg_T2_9230 BEFORE INSERT ON T2 FOR EACH ROW BEGIN SELECT RAISE(ROLLBACK, 'rb'); END;
REINDEX T2;
REINDEX T;
UPDATE T2 SET X = 'x' RETURNING *;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT INTO T2 SELECT * FROM T2;
CREATE TEMPORARY  VIEW IF NOT EXISTS v_T2_4223 AS SELECT X FROM T2;
DELETE FROM T WHERE 0;
CREATE TEMP  VIEW IF NOT EXISTS v_T_2256 AS SELECT B FROM T;
SELECT MIN(A) FROM T;
SELECT * FROM T1;
VACUUM main;
INSERT OR REPLACE INTO T2 VALUES ('', NULL, 6);
WITH cte(a, b, c) AS (SELECT A, A, A FROM T) SELECT a, b, c FROM cte;
ALTER TABLE T2 DROP COLUMN A;
ANALYZE T;
ROLLBACK TRANSACTION TO SAVEPOINT sp9357;
RELEASE SAVEPOINT sp9357;
SELECT DENSE_RANK() OVER (ORDER BY C) FROM T2;
SELECT * FROM T1 AS a RIGHT OUTER JOIN T1 AS b ON a.rowid = b.rowid;
WITH cte AS (SELECT 1 AS x) INSERT INTO T2(A) SELECT x FROM cte WHERE 1=0;
ALTER TABLE T2 RENAME COLUMN X TO X_r31;
ALTER TABLE T2 ADD COLUMN extra_5953 DOUBLE;
END TRANSACTION;
ALTER TABLE T RENAME COLUMN C TO C_r7714;
ANALYZE T1;
SELECT * FROM T2;
CREATE  VIEW IF NOT EXISTS v_T1_3687 AS SELECT B FROM T1;
SELECT NTH_VALUE(C, C) OVER (PARTITION BY C ORDER BY C ROWS BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE GROUP) FROM T;
VACUUM main;
ALTER TABLE T1 ADD COLUMN extra_2458 DOUBLE PRECISION COLLATE NOCASE;
VACUUM;
CREATE  INDEX IF NOT EXISTS idx_T1_1380 ON T1(B) WHERE B IS NOT NULL;
ANALYZE;
ALTER TABLE T RENAME COLUMN C TO C_r6859;
SELECT MIN(A) FROM T;
SELECT * FROM T;
ALTER TABLE T1 RENAME COLUMN B TO B_r1258;
SELECT COUNT(*) FROM T1;
ROLLBACK;
INSERT INTO T2 VALUES (NULL, NULL, NULL);
INSERT INTO T VALUES (1, NULL, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
CREATE TRIGGER IF NOT EXISTS trg_T2_2289 BEFORE UPDATE OF C ON T2 FOR EACH ROW BEGIN SELECT RAISE(FAIL, 'no'); END;
CREATE TRIGGER IF NOT EXISTS trg_T_2305 AFTER DELETE ON T BEGIN SELECT RAISE(IGNORE); END;
ALTER TABLE T2 DROP COLUMN A;
INSERT INTO T2 VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X, C = excluded.C;
SELECT COUNT(*) FROM T;
INSERT INTO T VALUES (NULL, 'x', 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ALTER TABLE T2 DROP COLUMN C;
SELECT * FROM T WHERE B < ANY (SELECT B FROM T);
SELECT * FROM T2 AS a LEFT JOIN T2 AS b ON a.rowid = b.rowid;
UPDATE T1 SET A = 99 WHERE 1 RETURNING *;
WITH cte AS (SELECT B, SUM(B) OVER (ORDER BY B) AS running FROM T) SELECT * FROM cte;
WITH cte(x) AS (VALUES(NULL),(1),(NULL)) SELECT * FROM cte WHERE x IS NOT NULL;
ALTER TABLE T1 RENAME TO T1_r2626;
CREATE  INDEX IF NOT EXISTS idx_T2_3758 ON T2(A COLLATE NOCASE) WHERE A > 0;
ALTER TABLE T1 RENAME TO T1_r7553;
INSERT INTO T DEFAULT VALUES;
ANALYZE;
DELETE FROM T2 WHERE 1;
WITH cte(x) AS (VALUES(NULL),(1),(NULL)) SELECT * FROM cte WHERE x IS NOT NULL;
ROLLBACK TRANSACTION TO SAVEPOINT sp2813;
RELEASE SAVEPOINT sp2813;
```

## Actual output

```sql
3.39.0 2022-05-10 23:28:12 764b71267e0b31ff7eaf2a0def7526a1a02dce4d5b456dea060d97ed342ealt1
```

## Expectation

```sql
3.51.1 2025-11-28 17:28:25 281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88 (64-bit)
```

## Flag

```
-version
```

