## 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 analysis_limit;
PRAGMA full_column_names = YES;
PRAGMA query_only = 0;
.mode
CREATE TABLE T1 (
  A VARCHAR(10) PRIMARY KEY,
  B VARCHAR(15) UNIQUE,
  C BIGINT
);
CREATE TABLE T2 (
  X VARCHAR(20) PRIMARY KEY,
  A VARCHAR(10),
  FOREIGN KEY (A) REFERENCES T1(A)
);
INSERT INTO T1 VALUES ('a', 'p', 9999999999999);
INSERT INTO T1 VALUES ('b', 'q', -9999999999999);
INSERT INTO T2 VALUES ('m', 'a');
INSERT INTO T2 VALUES ('n', 'b');
SELECT T2.X, T1.C FROM T2 INNER JOIN T1 ON T2.A = T1.A WHERE T1.C > -1000000000000;
DELETE FROM T2 WHERE A > (SELECT AVG(A) FROM T2) RETURNING *;
REINDEX T2;
CREATE  INDEX IF NOT EXISTS idx_T2_3616 ON T2(lower(X)) WHERE X > 0;
INSERT INTO T1 VALUES (NULL, NULL, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T2_745 ON T2((X + 1)) WHERE X > 0;
SELECT * FROM T1	NATURAL JOIN T1;
SELECT * FROM T1;
```

## Actual output

```sql
0
current output mode: list
m|9999999999999
m|a
n|b
a|p|9999999999999
b|q|-9999999999999
a|p|9999999999999
b|q|-9999999999999
||
```

## Expectation

```sql
0
current output mode: list --escape ascii
m|9999999999999
m|a
n|b
a|p|9999999999999
b|q|-9999999999999
a|p|9999999999999
b|q|-9999999999999
||
```

## Flag

```

```

