## 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 aux33;
.changes off
PRAGMA recursive_triggers = YES;
.restore emplyeee.db
CREATE TABLE main.t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS WITH _m AS MATERIALIZED (SELECT * FROM t1) SELECT a FROM _m;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', ''))); /* .bail on */ CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN	b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;
.restore emplyeee.db
CREATE TABLE t1(a);
ALTER TABLE t1 ADD COLUMN b CHECK (a!=acos(instr('hello', '')));


CREATE TEMP  VIEW IF NOT EXISTS v_t1_736 AS SELECT a FROM t1;

UPDATE t1 SET a = a + datetime('
') WHERE strftime('%Y-%m-%d', (1 + 0.0)) RETURNING *;
CREATE  INDEX IF NOT EXISTS idx_t1_765 ON t1(a COLLATE NOCASE) WHERE a IS NOT NULL;
VACUUM;
SELECT LEAD(a, 0) OVER (PARTITION BY a ORDER BY a ROWS BETWEEN UNBOUNDED PRECEDING AND CURRENT ROW) FROM t1;
ALTER TABLE t1 RENAME COLUMN a TO a_r710;
CREATE  VIEW IF NOT EXISTS v_t1_9399 AS SELECT a FROM t1;
ALTER TABLE t1 ADD COLUMN extra_7900 VARCHAR(255) COLLATE RTRIM;
REINDEX;
CREATE TRIGGER IF NOT EXISTS trg_t1_188 AFTER INSERT ON t1 FOR EACH ROW BEGIN SELECT RAISE(IGNORE); END;
WITH RECURSIVE cnt(x) AS (VALUES(1) UNION ALL SELECT x+1 FROM cnt WHERE +x<76) SELECT SUM(x) FROM cnt;
INSERT INTO t1 VALUES (NULL) ON CONFLICT(a) DO UPDATE SET a = excluded.a;
DROP TRIGGER IF EXISTS t1;
INSERT INTO t1 SELECT * FROM t1;
UPDATE t1 SET a = '' WHERE rowid = 1;
SELECT * FROM t1;
SELECT * FROM t1;
DETACH DATABASE aux33;
SELECT * FROM t1 WHERE a IN (SELECT a FROM t1 WHERE a IS NOT NULL);

SELECT COUNT(*) FROM t1;
```

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

