## 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
.timer on
PRAGMA defer_foreign_keys = FALSE;
BEGIN DEFERRED TRANSACTION;
-- glob('[!0-9]', 'a')

ATTACH DATABASE (':memory:' || '') AS aux25;
-- sqlite_compileoption_used({v})

-- NOCASE

CREATE VIRTUAL TABLE t0 USING /**/ fts4("x", "y", "z");
DROP TABLE t0;
DETACH DATABASE aux25;
END TRANSACTION;
PRAGMA defer_foreign_keys = FALSE;
BEGIN DEFERRED TRANSACTION;
-- glob('[!0-9]', 'a')

ATTACH DATABASE (':memory:' || '') AS aux25;
-- sqlite_compileoption_used({v})

-- NOCASE

CREATE VIRTUAL TABLE t0 USING /**/ fts4("x", "y", "z");
DROP TABLE t0;
DETACH DATABASE aux25;
END TRANSACTION;
PRAGMA defer_foreign_keys = FALSE;
BEGIN DEFERRED TRANSACTION;
-- glob('[!0-9]', 'a')

ATTACH DATABASE (':memory:' || '') AS aux25;
-- sqlite_compileoption_used({v})

-- NOCASE

CREATE VIRTUAL TABLE t0 USING /**/ fts4("x", "y", "z");
DROP TABLE t0;
DETACH DATABASE aux25;
END TRANSACTION;

```

## Actual output

```sql
Run Time: real 0.000 user 0.000047 sys 0.000000
Run Time: real 0.000 user 0.000004 sys 0.000000
Run Time: real 0.001 user 0.000114 sys 0.000000
Run Time: real 0.000 user 0.000396 sys 0.000000
Run Time: real 0.000 user 0.000231 sys 0.000000
Run Time: real 0.000 user 0.000006 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000004 sys 0.000000
Run Time: real 0.000 user 0.000002 sys 0.000000
Run Time: real 0.000 user 0.000031 sys 0.000000
Run Time: real 0.001 user 0.000303 sys 0.000000
Run Time: real 0.000 user 0.000177 sys 0.000000
Run Time: real 0.000 user 0.000005 sys 0.000000
Run Time: real 0.000 user 0.000004 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
Run Time: real 0.000 user 0.000002 sys 0.000000
Run Time: real 0.000 user 0.000025 sys 0.000000
Run Time: real 0.000 user 0.000268 sys 0.000000
Run Time: real 0.000 user 0.000162 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
Run Time: real 0.000 user 0.000003 sys 0.000000
```

## Expectation

```sql
Run Time: real 0.000020 user 0.000030 sys 0.000000
Run Time: real 0.000003 user 0.000003 sys 0.000000
Run Time: real 0.000077 user 0.000077 sys 0.000000
Run Time: real 0.000288 user 0.000288 sys 0.000000
Run Time: real 0.000183 user 0.000183 sys 0.000000
Run Time: real 0.000005 user 0.000006 sys 0.000000
Run Time: real 0.000004 user 0.000005 sys 0.000000
Run Time: real 0.000003 user 0.000003 sys 0.000000
Run Time: real 0.000002 user 0.000002 sys 0.000000
Run Time: real 0.000022 user 0.000022 sys 0.000000
Run Time: real 0.000190 user 0.000191 sys 0.000000
Run Time: real 0.000127 user 0.000128 sys 0.000000
Run Time: real 0.000004 user 0.000004 sys 0.000000
Run Time: real 0.000002 user 0.000003 sys 0.000000
Run Time: real 0.000002 user 0.000003 sys 0.000000
Run Time: real 0.000001 user 0.000001 sys 0.000000
Run Time: real 0.000017 user 0.000017 sys 0.000000
Run Time: real 0.000164 user 0.000165 sys 0.000000
Run Time: real 0.000118 user 0.000109 sys 0.000000
Run Time: real 0.000003 user 0.000004 sys 0.000000
Run Time: real 0.000003 user 0.000003 sys 0.000000
```

## Flag

```

```

