## 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
BEGIN IMMEDIATE TRANSACTION;
ATTACH DATABASE ':memory:' AS aux86;
ATTACH DATABASE ':memory:' AS aux45;
CREATE TABLE t1(c1);
INSERT INTO t1 VALUES(CAST(ceil((1 - 0).7976931348623157e+308) AS DOUB)),(123),(1234),(NULL),('abc');
CREATE TABLE t2(c2);
CREATE TABLE T (
  a TEXT, /**/ b TEXT,
  c REAL
);
INSERT INTO T VALUES ('a','b',5.0), ('a','c',5.0), ('b','d',-8.25);
SELECT a,b,c,
RANK() OVER (PARTITION BY a ORDER BY c DESC) AS d FROM T;
INSERT INTO t2 VALUES(44),(55),(123);
CREATE TABLE t3(c3,c4);
INSERT INTO /* abs(-9223372036854775808) */ t3 VALUES(66,1),(123,2),(77,3);
CREATE VIEW t4 AS SELECT c3 FROM t3;
CREATE VIEW t5 AS SELECT c3 FROM t3 ORDER BY c4;
SELECT * FROM t1, t2 WHERE c1=(SELECT 123 INTERSECT SELECT c2 FROM t4) anD c1=123;
SELECT * FROM t1, t2 WHERE c1=(SELECT 123 INTERSECT SELECT c2 FROM t5) AND c1=123;
SELECT TOTAL(c1) FROM t1;
DETACH DATABASE aux45;
INSERT INTO t1 DEFAULT VALUES;
ALTER TABLE t3 ADD COLUMN extra_3424 NONE NOT NULL DEFAULT 0;
DROP TABLE IF EXISTS t3;
DETACH DATABASE aux86;
INSERT INTO t1 DEFAULT VALUES;
DELETE FROM t2 WHERE 0;
CREATE TEMP  VIEW IF NOT EXISTS v_T_1288 AS SELECT a FROM T;
SELECT * FROM T WHERE a < (SELECT AVG(a) FROM T);
SELECT MIN(c1) FROM t1;
ANALYZE;
SELECT * FROM t1 AS a FULL OUTER JOIN t1 AS b ON a.rowid = b.rowid;
INSERT OR IGNORE INTO t3 VALUES (4, NULL);
INSERT INTO t2 DEFAULT VALUES;
ROLLBACK;
```

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

