## 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 sp6627;
SAVEPOINT sp1643;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (1, 'Wernher', 10, 100);
INSERT INTO t1 VALUES (2, 'von', 20, 200);
INSERT INTO t1 VALUES (3, 'Braun', 30, 300);

CREATE INDEX t1bc ON t1(b, c);

PRAGMA writable_schema = ON;

.imposter t1bc t2

SELECT * FROM t2;

SELECT b, c FROM t1 ORDER BY b, c;

.quit
.restore
BEGIN EXCLUSIVE;
.width
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_756 BEFORE UPDATE OF A ON T2 BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 CROSS JOIN T2;
CREATE TEMP  VIEW IF NOT EXISTS v_T1_8403 AS SELECT A FROM T1;
PRAGMA threads;
INSERT INTO T1 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
.width
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_756 BEFORE UPDATE OF A ON T2 BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 CROSS JOIN T2;
CREATE TEMP  VIEW IF NOT EXISTS v_T1_8403 AS SELECT A FROM T1;
PRAGMA threads;
INSERT INTO T1 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
.width
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_756 BEFORE UPDATE OF A ON T2 BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 CROSS JOIN T2;
CREATE TEMP  VIEW IF NOT EXISTS v_T1_8403 AS SELECT A FROM T1;
PRAGMA threads;
INSERT INTO T1 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
.width
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_756 BEFORE UPDATE OF A ON T2 BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 CROSS JOIN T2;
CREATE TEMP  VIEW IF NOT EXISTS v_T1_8403 AS SELECT A FROM T1;
PRAGMA threads;
INSERT INTO T1 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
.width
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_756 BEFORE UPDATE OF A ON T2 BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 CROSS JOIN T2;
CREATE TEMP  VIEW IF NOT EXISTS v_T1_8403 AS SELECT A FROM T1;
PRAGMA threads;
INSERT INTO T1 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;
.width
CREATE TABLE T1 (
  A VARCHAR(20) PRIMARY KEY,
  X VARCHAR(10) UNIQUE
);
CREATE TABLE T2 (
  A VARCHAR(20) PRIMARY KEY,
  Y VARCHAR(10) UNIQUE
);
INSERT INTO T1 VALUES ('a', 'm');
INSERT INTO T1 VALUES ('b', 'n');
INSERT INTO T1 VALUES ('c', 'o');
INSERT INTO T2 VALUES ('b', 'k');
INSERT INTO T2 VALUES ('c', 'l');
SELECT A FROM T1 INTERSECT SELECT A FROM T2;
CREATE TRIGGER IF NOT EXISTS trg_T2_756 BEFORE UPDATE OF A ON T2 BEGIN SELECT RAISE(ABORT, 'abort'); END;
SELECT * FROM T2 CROSS JOIN T2;
CREATE TEMP  VIEW IF NOT EXISTS v_T1_8403 AS SELECT A FROM T1;
PRAGMA threads;
INSERT INTO T1 VALUES (1, 'x') ON CONFLICT(A) DO UPDATE SET A = excluded.A, X = excluded.X;

SELECT * FROM T2 WHERE Y IN (SELECT Y FROM T2 WHERE Y GLOB "*");
VACUUM main;
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c REAL,
  d REAL
);
INSERT INTO T VALUES (1,'a',40.5,-70.0), (2,'b',-10.25,20.5), (3,'c',9e999,-9e999);
SELECT b FROM T WHERE ABS(c) > 5 AND ABS(d) > 5;
ROLLBACK;
INSERT INTO T VALUES (NULL, NULL, NULL, NULL);
ALTER TABLE T DROP COLUMN d;
ROLLBACK TRANSACTION TO SAVEPOINT sp1643;
RELEASE SAVEPOINT sp1643;
ANALYZE;
SELECT MAX(A) OVER (ORDER BY A) FROM T2;
ALTER TABLE t1 RENAME TO t1_r6609;
INSERT INTO T1 SELECT * FROM T1;
SELECT * FROM T2 AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
ROLLBACK TO sp6627;
RELEASE sp6627;
```

## Actual output

```sql
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
WARNING: writing to an imposter table will corrupt the "t1bc" index!
Braun|30|3
Wernher|10|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Expectation

```sql
CREATE TABLE "t2"("b","c","_ROWID_",PRIMARY KEY("b","c","_ROWID_"))WITHOUT ROWID;
Braun|30|3
Wernher|10|1
von|20|2
Braun|30
Wernher|10
von|20
```

## Flag

```

```

