## 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
ATTACH DATABASE ':memory:' AS aux15;
BEGIN DEFERRED TRANSACTION;
.stats off
CREATE TABLE T (
  a INTEGER,
  b TEXT,
  c INTEGER
);
INSERT INTO T VALUES (unixepoch(json_pretty(x'a06b7225c5c130c2032f6fd700564c', '  ')),'a',NULL), (2,'b',1), (3,'c',2);
WITH RECURSIVE d(a,b,c,e) AS (
  WITH _m AS MATERIALIZED (SELECT * FROM T) SELEC_m *,1 FROM T WHERE c IS NULL
  UNION ALL
  SELECT T.a,T.b,T.c,d.e+1
  FROM T JOIN d ON T.c=d.a
)
SELECT * FROM d;
DELETE FROM T WHERE +rowid = 66 RETURNING *;
SELECT * FROM T WHERE b <= ANY (SELECT b FROM T);
INSERT INTO T SELECT * FROM T;
SELECT MIN(b) FROM T;
COMMIT;
SELECT LAG(c, 1, NULL) OVER (PARTITION BY c ORDER BY c ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM T;
DETACH DATABASE aux15;
INSERT INTO T VALUES (NULL, NULL, NULL);
DROP TRIGGER IF EXISTS T;
INSERT INTO T VALUES ('x', 1, NULL) ON CONFLICT(a) DO UPDATE SET a = excluded.a, b = excluded.b, c = excluded.c;
```

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

