## 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)) checkpoint_fullsync = CAST(floor('~') AS VARCHAR(-9223372036854775809));
PRAGMA full_column_names = OFF;
PRAGMA journal_mode;
.system echo "mwahaha i am root"
PRAGMA encoding = 'utf-16';
CREATE TABLE main.t1(abcd, efgh);
INSERT INTO t1 VALUES (0, 0);
CREATE VIEW v1 AS SELECT * FROM t1 wHErE NOT NOT (abcd>efgh) ;

PRAGMA query_only = FALSE;
INSERT INTO t1 VALUES ('x', 'x') ON CONFLICT(abcd) DO UPDATE SET abcd = excluded.abcd, efgh = excluded.efgh;
SELECT SUM(abcd) OVER (ORDER BY abcd) FROM t1;
PRAGMA wal_checkpoint;
PRAGMA schema_version;
INSERT INTO t1 VALUES (1, NULL) ON CONFLICT(abcd) DO UPDATE SET abcd = excluded.abcd, efgh = excluded.efgh;
INSERT INTO t1 DEFAULT VALUES;
VACUUM;
DROP TRIGGER IF EXISTS t1;
INSERT INTO t1 VALUES (NULL, NULL);
CREATE UNIQUE  INDEX IF NOT EXISTS idx_t1_14 ON t1(abcd) WHERE abcd IS NOT NULL;
```

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

