## 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
((SAVEPOINT)) sp9440;
BEGIN EXCLUSIVE;
.separator
PRAGMA count_changes = FALSE;
BEGIN IMMEDIATE TRANSACTION;
creATE VIRTUAL TABLE t0 USING fts3("x", "y", "z");
DROP TABLE t0;
COMMIT TRANSACTION;
CREATE TABLE "T" (
  a NCHAR(CAST(55 AS BOOLEAN)),
  b REAL,
  c REAL
);
INSERT INTO T VALUES (tan(NULL),like('1.5%', '<', '\\'),10.0), (2,-2.5,20.0), (3,-9e999,30.0);
SELECT * FROM T WHERE NOT b < 2.0 ORDER BY b;

SELECT * FROM (SELECT * FROM T ORDER BY a) AS sub LIMIT 10;
UPDATE T SET c = 'x' WHERE c IS NOT NULL;
WITH RECURSIVE inf(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM inf) SELECT * FROM inf LIMIT 10;
ALTER TABLE T RENAME TO T_r8305;
INSERT INTO T SELECT * FROM T;
COMMIT;
INSERT INTO T SELECT * FROM T;
INSERT INTO T DEFAULT VALUES;
ROLLBACK TRANSACTION TO SAVEPOINT sp9440;
RELEASE SAVEPOINT sp9440;
SELECT  * FROM T;
CREATE UNIQUE  INDEX IF NOT EXISTS idx_T_6154 ON T(lower(c)) WHERE c IS NOT NULL;
SELECT NTH_VALUE(c, c) OVER (ORDER BY c ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE TIES) FROM T;
SELECT COUNT(*) FILTER (WHERE c > 0) OVER (PARTITION BY c ORDER BY c ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW EXCLUDE TIES) FROM T;
SELECT * FROM T WHERE a IN (SELECT a FROM T WHERE ROW_NUMBER() OVER (ORDER BY a) = 1);
```

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

