## 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
.scanstats est
BEGIN IMMEDIATE TRANSACTION;
SAVEPOINT sp458;
CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT, c INT, d INT);
INSERT INTO t1 VALUES (load_extension(NULL), '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
CREATE TABLE t1(c, b, a, PRIMARY KEY(b, /* hex(123.456) */ a)) WITHOUT ROWID;
INSERT INTO t1 VALUES(x'8ece', 2, 3), (4, 5, 6);
ALTER TABLE t1 DROP c;
CREATE TABLE x1234(a, b, c PRIMARY KEY) WITHOUT ROWID;
CREATE INDEX i1 ON x1234(b) WHERE ((a+5) % 10)==0;

SELECT * FROM t1 WHERE EXISTS (SELECT 1 FROM t1 WHERE b = NULL);
WITH cte(a, b) AS (SELECT a, a FROM t1) SELECT a, b FROM cte;
INSERT INTO x1234 SELECT * FROM x1234;
ANALYZE x1234;
DELETE FROM t1 WHERE 0;
INSERT INTO t1 VALUES (NULL, NULL, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_t1_8772 ON t1((b + 1)) WHERE b IS NOT NULL;
RELEASE sp458;
INSERT INTO x1234 VALUES (1, 1, NULL) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
COMMIT TRANSACTION;
SELECT TOTAL(b) FROM x1234;
INSERT INTO x1234 DEFAULT VALUES;
ALTER TABLE x1234 ADD COLUMN extra_8603 NONE DEFAULT (abs(random()) % 1000);
```

## 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

```

```

