## 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 ignore_check_constraints = TRUE;
SAVEPOINT sp9434;
PRAGMA synchronous;
PRAGMA defer_foreign_keys = 0.0;
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 C > 0 ORDER BY C DESC;
PRAGMA read_uncommitted = TRUE;
PRAGMA writable_schema = 1;
.timer off
CREATE TABLE t1(a INTEGER, b INTEGER, c INTEGER);
INSERT INTO t1 VALUES(1, 1, 1);
INSERT INTO t1 VALUES(1, 2, 2);
SELECT c, sum(c) OVER win1 FROM t1 WINDOW win1 AS (ORDER BY b);
INSERT INTO t1 VALUES (NULL, NULL, NULL);
INSERT INTO t1 VALUES (NULL, NULL, NULL);
UPDATE t1 SET c = CURRENT_TIMESTAMP WHERE c BETWEEN 0 AND 100 RETURNING *;
RELEASE sp9434;
ALTER TABLE t1 RENAME TO t1_r5890;
VACUUM;
SELECT * FROM T WHERE EXISTS (SELECT 1 FROM T WHERE EXISTS (SELECT 1 FROM T));
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_8663 ON T(lower(C)) WHERE C > 0;
SELECT * FROM T AS a RIGHT OUTER JOIN T AS b ON a.rowid = b.rowid;
WITH cte AS (SELECT NULL AS x) SELECT COALESCE(x, 0) FROM cte;
REINDEX;
ALTER TABLE T RENAME COLUMN C TO C_r6871;
SELECT * FROM T;
SELECT * FROM t1 AS a RIGHT JOIN t1 AS b ON a.rowid = b.rowid;
```

## Actual output

```sql
3.39.0 2022-05-10 23:28:12 764b71267e0b31ff7eaf2a0def7526a1a02dce4d5b456dea060d97ed342ealt1
```

## Expectation

```sql
3.51.1 2025-11-28 17:28:25 281fc0e9afc38674b9b0991943b9e9d1e64c6cbdb133d35f6f5c87ff6af38a88 (64-bit)
```

## Flag

```
-version
```

