## 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 secure_delete = OFF;
PRAGMA trusted_schema;
PRAGMA ignore_check_constraints = YES;
.restore emplyeee.db
CREATE TABLE T1 (
  A VARCHAR(-8973762943540037726),
  X VARCHAR(10),
  PRIMARY KEY (A, X),
  UNIQUE (X)
);
CREATE TABLE main.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;
WITH RECURSIVE r AS (SELECT Y /**/ FROM T2 WHERE Y IS NOT NULL UNION ALL SELECT Y FROM r WHERE Y > 0 LIMIT 10) SELECT * FROM r;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE x<1) SELECT * FROM cnt;
INSERT INTO /**/ T2 DEFAULT VALUES;
CREATE  INDEX IF NOT EXISTS idx_T1_6344 ON T1((X + 1)) WHERE X > 0;
DROP INDEX IF EXISTS T1;
```

## Actual output

```sql
0
1
a
b
b
k
k
k
k
k
k
k
k
k
k
1
```

## Expectation

```sql
0
0
a
b
b
k
k
k
k
k
k
k
k
k
k
1
```

## Flag

```

```

