## 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
PRAGMA vdbe_listing = FALSE;
PRAGMA synchronous = '0';
ATTACH DATABASE ':memory:' AS aux24;
ATTACH DATABASE ':memory:' AS aux64;
PRAGMA mmap_size;
PRAGMA vdbe_addoptrace = NO;
ATTACH DATABASE ':memory:' AS aux7;
.progress format(NULL, json_replace(char(-pow(x'2d92da93fd9d25adc09996b72c7b02', 1)), '$.key', 2))
PRAGMA ignore_check_constraints = -6653988573675608434;
CREATE TABLE main.T (
  A VARCHAR(15) 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 NOT C > 0 ORDER BY C DESC;
PRAGMA data_version;
.quit
PRAGMA read_uncommitted;
SELECT CAST(rtrim('  hello  ') AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT atan2(1, 1) >> -999999999999999999999999999;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT NOT NULL,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', 3000);
INSERT INTO T VALUES ('b', 'q', 9223372036854775807);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('e', 'q', -9223372036854775808);
INSERT INTO T VALUES ('f', 'r', 0);
SELECT B, COUNT(*) AS D, SUM(C) AS E, AVG(C) AS F FROM T GROUP BY B HAVING SUM(C) > 0;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA synchronous = 'EXTRA';
PRAGMA cache_spill = OFF;
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;
ALTER TABLE T DROP COLUMN B;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR ABORT INTO T VALUES ('x', 'x', '');
INSERT INTO T VALUES ('x', 1, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
SELECT COUNT(*) FROM T;
ANALYZE T;
SELECT * FROM T;
DROP TABLE IF EXISTS T;
DETACH DATABASE aux7;
SELECT SUM(B) FROM T;
SELECT * FROM T WHERE B IN (SELECT B FROM T);
VACUUM;
ALTER TABLE T RENAME TO T_r1943;
INSERT INTO T SELECT * FROM T;
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 T;
INSERT OR REPLACE INTO T VALUES (NULL, 0, NULL);
INSERT INTO T DEFAULT VALUES;
INSERT OR ABORT INTO T VALUES (0, 'x', 0);
ALTER TABLE T ADD COLUMN extra_4374 NUMERIC DEFAULT CURRENT_TIMESTAMP;
DETACH DATABASE aux64;
INSERT INTO T VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ATTACH DATABASE ':memory:' AS aux64;
PRAGMA mmap_size;
PRAGMA vdbe_addoptrace = NO;
ATTACH DATABASE ':memory:' AS aux7;
.progress format(NULL, json_replace(char(-1), '$.key', 2))
PRAGMA ignore_check_constraints = -6653988573675608434;
CREATE TABLE T (
  A VARCHAR(15) 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;
PRAGMA data_version;
.quit
PRAGMA read_uncommitted;
SELECT CAST(rtrim('  hello  ') AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT atan2(1, 1) >> -999999999999999999999999999;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT NOT NULL,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', 3000);
INSERT INTO T VALUES ('b', 'q', 9223372036854775807);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('e', 'q', -9223372036854775808);
INSERT INTO T VALUES ('f', 'r', 0);
SELECT B, COUNT(*) AS D, SUM(C) AS E, AVG(C) AS F FROM T GROUP BY B HAVING SUM(C) > 0;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA synchronous = 'EXTRA';
PRAGMA cache_spill = OFF;
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;
ALTER TABLE T DROP COLUMN B;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR ABORT INTO T VALUES ('x', 'x', '');
INSERT INTO T VALUES ('x', 1, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
SELECT COUNT(*) FROM T;
ANALYZE T;
SELECT * FROM T;
DROP TABLE IF EXISTS T;
DETACH DATABASE aux7;
SELECT SUM(B) FROM T;
SELECT * FROM T WHERE B IN (SELECT B FROM T);
VACUUM;
ALTER TABLE T RENAME TO T_r1943;
INSERT INTO T SELECT * FROM T;
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 T;
INSERT OR REPLACE INTO T VALUES (NULL, 0, NULL);
INSERT INTO T DEFAULT VALUES;
INSERT OR ABORT INTO T VALUES (0, 'x', 0);
ALTER TABLE T ADD COLUMN extra_4374 NUMERIC DEFAULT CURRENT_TIMESTAMP;
DETACH DATABASE aux64;
INSERT INTO T VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ATTACH DATABASE ':memory:' AS aux64;
PRAGMA mmap_size;
PRAGMA vdbe_addoptrace = NO;
ATTACH DATABASE ':memory:' AS aux7;
.progress format(NULL, json_replace(char(-1), '$.key', 2))
PRAGMA ignore_check_constraints = -6653988573675608434;
CREATE TABLE T (
  A VARCHAR(15) 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;
PRAGMA data_version;
.quit
PRAGMA read_uncommitted;
SELECT CAST(rtrim('  hello  ') AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT atan2(1, 1) >> -999999999999999999999999999;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT NOT NULL,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', 3000);
INSERT INTO T VALUES ('b', 'q', 9223372036854775807);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('e', 'q', -9223372036854775808);
INSERT INTO T VALUES ('f', 'r', 0);
SELECT B, COUNT(*) AS D, SUM(C) AS E, AVG(C) AS F FROM T GROUP BY B HAVING SUM(C) > 0;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA synchronous = 'EXTRA';
PRAGMA cache_spill = OFF;
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;
ALTER TABLE T DROP COLUMN B;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR ABORT INTO T VALUES ('x', 'x', '');
INSERT INTO T VALUES ('x', 1, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
SELECT COUNT(*) FROM T;
ANALYZE T;
SELECT * FROM T;
DROP TABLE IF EXISTS T;
DETACH DATABASE aux7;
SELECT SUM(B) FROM T;
SELECT * FROM T WHERE B IN (SELECT B FROM T);
VACUUM;
ALTER TABLE T RENAME TO T_r1943;
INSERT INTO T SELECT * FROM T;
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 T;
INSERT OR REPLACE INTO T VALUES (NULL, 0, NULL);
INSERT INTO T DEFAULT VALUES;
INSERT OR ABORT INTO T VALUES (0, 'x', 0);
ALTER TABLE T ADD COLUMN extra_4374 NUMERIC DEFAULT CURRENT_TIMESTAMP;
DETACH DATABASE aux64;
INSERT INTO T VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ATTACH DATABASE ':memory:' AS aux64;
PRAGMA mmap_size;
PRAGMA vdbe_addoptrace = NO;
ATTACH DATABASE ':memory:' AS aux7;
.progress format(NULL, json_replace(char(-1), '$.key', 2))
PRAGMA ignore_check_constraints = -6653988573675608434;
CREATE TABLE T (
  A VARCHAR(15) 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;
PRAGMA data_version;
.quit
PRAGMA read_uncommitted;
SELECT CAST(rtrim('  hello  ') AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT atan2(1, 1) >> -999999999999999999999999999;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT NOT NULL,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', 3000);
INSERT INTO T VALUES ('b', 'q', 9223372036854775807);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('e', 'q', -9223372036854775808);
INSERT INTO T VALUES ('f', 'r', 0);
SELECT B, COUNT(*) AS D, SUM(C) AS E, AVG(C) AS F FROM T GROUP BY B HAVING SUM(C) > 0;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA synchronous = 'EXTRA';
PRAGMA cache_spill = OFF;
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;
ALTER TABLE T DROP COLUMN B;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR ABORT INTO T VALUES ('x', 'x', '');
INSERT INTO T VALUES ('x', 1, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
SELECT COUNT(*) FROM T;
ANALYZE T;
SELECT * FROM T;
DROP TABLE IF EXISTS T;
DETACH DATABASE aux7;
SELECT SUM(B) FROM T;
SELECT * FROM T WHERE B IN (SELECT B FROM T);
VACUUM;
ALTER TABLE T RENAME TO T_r1943;
INSERT INTO T SELECT * FROM T;
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 T;
INSERT OR REPLACE INTO T VALUES (NULL, 0, NULL);
INSERT INTO T DEFAULT VALUES;
INSERT OR ABORT INTO T VALUES (0, 'x', 0);
ALTER TABLE T ADD COLUMN extra_4374 NUMERIC DEFAULT CURRENT_TIMESTAMP;
DETACH DATABASE aux64;
INSERT INTO T VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ATTACH DATABASE ':memory:' AS aux64;
PRAGMA mmap_size;
PRAGMA vdbe_addoptrace = NO;
ATTACH DATABASE ':memory:' AS aux7;
.progress format(NULL, json_replace(char(-1), '$.key', 2))
PRAGMA ignore_check_constraints = -6653988573675608434;
CREATE TABLE T (
  A VARCHAR(15) 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;
PRAGMA data_version;
.quit
PRAGMA read_uncommitted;
SELECT CAST(rtrim('  hello  ') AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT atan2(1, 1) >> -999999999999999999999999999;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT NOT NULL,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', 3000);
INSERT INTO T VALUES ('b', 'q', 9223372036854775807);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('e', 'q', -9223372036854775808);
INSERT INTO T VALUES ('f', 'r', 0);
SELECT B, COUNT(*) AS D, SUM(C) AS E, AVG(C) AS F FROM T GROUP BY B HAVING SUM(C) > 0;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA synchronous = 'EXTRA';
PRAGMA cache_spill = OFF;
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;
ALTER TABLE T DROP COLUMN B;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR ABORT INTO T VALUES ('x', 'x', '');
INSERT INTO T VALUES ('x', 1, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
SELECT COUNT(*) FROM T;
ANALYZE T;
SELECT * FROM T;
DROP TABLE IF EXISTS T;
DETACH DATABASE aux7;
SELECT SUM(B) FROM T;
SELECT * FROM T WHERE B IN (SELECT B FROM T);
VACUUM;
ALTER TABLE T RENAME TO T_r1943;
INSERT INTO T SELECT * FROM T;
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 T;
INSERT OR REPLACE INTO T VALUES (NULL, 0, NULL);
INSERT INTO T DEFAULT VALUES;
INSERT OR ABORT INTO T VALUES (0, 'x', 0);
ALTER TABLE T ADD COLUMN extra_4374 NUMERIC DEFAULT CURRENT_TIMESTAMP;
DETACH DATABASE aux64;
INSERT INTO T VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
ATTACH DATABASE ':memory:' AS aux64;
PRAGMA mmap_size;
PRAGMA vdbe_addoptrace = NO;
ATTACH DATABASE ':memory:' AS aux7;
.progress format(NULL, json_replace(char(-1), '$.key', 2))
PRAGMA ignore_check_constraints = -6653988573675608434;
CREATE TABLE T (
  A VARCHAR(15) 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;
PRAGMA data_version;
.quit
PRAGMA read_uncommitted;
SELECT CAST(rtrim('  hello  ') AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT atan2(1, 1) >> -999999999999999999999999999;
CREATE TABLE T (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15),
  C BIGINT NOT NULL,
  UNIQUE (B, C)
);
INSERT INTO T VALUES ('a', 'p', 3000);
INSERT INTO T VALUES ('b', 'q', 9223372036854775807);
INSERT INTO T VALUES ('c', 'r', 1700);
INSERT INTO T VALUES ('e', 'q', -9223372036854775808);
INSERT INTO T VALUES ('f', 'r', 0);
SELECT B, COUNT(*) AS D, SUM(C) AS E, AVG(C) AS F FROM T GROUP BY B HAVING SUM(C) > 0;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA read_uncommitted;
SELECT CAST(0 AS BLOB)x0ACB29BM205381;
SELECT sqlite_compileoption_used('æçå¤©ä½ æ¯æä¹äº');
SELECT 1 >> -999999999999999999999999999;
SELECT sqlite_compileoption_get($1);
SELECT sqlite_version();
PRAGMA synchronous = 'EXTRA';
PRAGMA cache_spill = OFF;
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;
ALTER TABLE T DROP COLUMN B;
INSERT INTO T VALUES (NULL, NULL, NULL);
INSERT OR ABORT INTO T VALUES ('x', 'x', '');
INSERT INTO T VALUES ('x', 1, 1) ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;
SELECT COUNT(*) FROM T;
ANALYZE T;
SELECT * FROM T;
DROP TABLE IF EXISTS T;
DETACH DATABASE aux7;
SELECT SUM(B) FROM T;
SELECT * FROM T WHERE B IN (SELECT B FROM T);
VACUUM;
ALTER TABLE T RENAME TO T_r1943;
INSERT INTO T SELECT * FROM T;
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 T;
INSERT OR REPLACE INTO T VALUES (NULL, 0, NULL);
INSERT INTO T DEFAULT VALUES;
INSERT OR ABORT INTO T VALUES (0, 'x', 0);
ALTER TABLE T ADD COLUMN extra_4374 NUMERIC DEFAULT CURRENT_TIMESTAMP;
DETACH DATABASE aux64;
INSERT INTO T VALUES (1, NULL, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, B = excluded.B, C = excluded.C;

CREATE  INDEX IF NOT EXISTS idx_T_5081 ON T(B) WHERE B IS NOT NULL;
ALTER TABLE T ADD COLUMN extra_3368 NUMERIC DEFAULT 0;
DROP TRIGGER IF EXISTS T;
DETACH DATABASE aux24;
SELECT MIN(A) OVER (PARTITION BY A ORDER BY A ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM T;
SELECT COUNT(*) OVER (PARTITION BY C ORDER BY C RANGE BETWEEN CURRENT ROW AND UNBOUNDED FOLLOWING EXCLUDE NO OTHERS) FROM T;
ANALYZE T;
```

## Actual output

```sql
Progress 1
Progress 2
Progress 3
Progress 4
Progress 5
Progress 6
Progress 7
Progress 8
Progress 9
Progress 10
Progress 11
Progress 12
Progress 13
Progress 14
Progress 15
Progress 16
Progress 17
Progress 18
Progress 19
Progress 20
Progress 21
Progress 22
Progress 23
Progress 24
Progress 25
Progress 26
Progress 27
Progress 28
Progress 29
Progress 30
Progress 31
Progress 32
Progress 33
Progress 34
Progress 35
Progress 36
Progress 37
Progress 38
Progress 39
Progress 40
Progress 41
Progress 42
Progress 43
Progress 44
Progress 45
Progress 46
Progress 47
Progress 48
Progress 49
Progress 50
Progress 51
Progress 52
Progress 53
Progress 54
Progress 55
Progress 56
Progress 57
Progress 58
Progress 59
Progress 60
Progress 61
Progress 62
Progress 63
Progress 64
Progress 65
Progress 66
Progress 67
Progress 68
Progress 69
Progress 70
Progress 71
Progress 72
Progress 73
Progress 74
Progress 75
Progress 76
Progress 77
Progress 78
Progress 79
Progress 80
Progress 81
Progress 82
Progress 83
Progress 84
Progress 85
Progress 86
Progress 87
Progress 88
Progress 89
Progress 90
Progress 91
Progress 92
Progress 93
Progress 94
Progress 95
Progress 96
Progress 97
Progress 98
Progress 99
Progress 100
Progress 101
Progress 102
Progress 103
Progress 104
Progress 105
Progress 106
Progress 107
Progress 108
Progress 109
Progress 110
Progress 111
Progress 112
Progress 113
Progress 114
Progress 115
Progress 116
Progress 117
Progress 118
Progress 119
Progress 120
Progress 121
Progress 122
Progress 123
Progress 124
Progress 125
Progress 126
Progress 127
Progress 128
Progress 129
Progress 130
Progress 131
Progress 132
Progress 133
Progress 134
Progress 135
Progress 136
Progress 137
Progress 138
Progress 139
Progress 140
c|y|0
Progress 141
Progress 142
Progress 143
Progress 144
b|y|-1000000
Progress 145
Progress 146
Progress 147
Progress 148
a|x|-9223372036854775808
Progress 149
Progress 150
Progress 151
1
Progress 152
```

## Expectation

```sql
Progress 1
Progress 2
Progress 3
Progress 4
Progress 5
Progress 6
Progress 7
Progress 8
Progress 9
Progress 10
Progress 11
Progress 12
Progress 13
Progress 14
Progress 15
Progress 16
Progress 17
Progress 18
Progress 19
Progress 20
Progress 21
Progress 22
Progress 23
Progress 24
Progress 25
Progress 26
Progress 27
Progress 28
Progress 29
Progress 30
Progress 31
Progress 32
Progress 33
Progress 34
Progress 35
Progress 36
Progress 37
Progress 38
Progress 39
Progress 40
Progress 41
Progress 42
Progress 43
Progress 44
Progress 45
Progress 46
Progress 47
Progress 48
Progress 49
Progress 50
Progress 51
Progress 52
Progress 53
Progress 54
Progress 55
Progress 56
Progress 57
Progress 58
Progress 59
Progress 60
Progress 61
Progress 62
Progress 63
Progress 64
Progress 65
Progress 66
Progress 67
Progress 68
Progress 69
Progress 70
Progress 71
Progress 72
Progress 73
Progress 74
Progress 75
Progress 76
Progress 77
Progress 78
Progress 79
Progress 80
Progress 81
Progress 82
Progress 83
Progress 84
Progress 85
Progress 86
Progress 87
Progress 88
Progress 89
Progress 90
Progress 91
Progress 92
Progress 93
Progress 94
Progress 95
Progress 96
Progress 97
Progress 98
Progress 99
Progress 100
Progress 101
Progress 102
Progress 103
Progress 104
Progress 105
Progress 106
Progress 107
Progress 108
Progress 109
Progress 110
Progress 111
Progress 112
Progress 113
Progress 114
Progress 115
Progress 116
Progress 117
Progress 118
Progress 119
Progress 120
Progress 121
Progress 122
Progress 123
Progress 124
Progress 125
Progress 126
Progress 127
Progress 128
Progress 129
Progress 130
Progress 131
Progress 132
Progress 133
Progress 134
Progress 135
Progress 136
Progress 137
Progress 138
Progress 139
Progress 140
Progress 141
Progress 142
c|y|0
Progress 143
Progress 144
Progress 145
Progress 146
b|y|-1000000
Progress 147
Progress 148
Progress 149
Progress 150
a|x|-9223372036854775808
Progress 151
Progress 152
Progress 153
Progress 154
1
```

## Flag

```

```

