Files
bun.sh/test/regression
Claude Bot cbe7350605 fix(sqlite): detect schema changes from external processes
SQLite prepared statements cache column names for performance. Previously,
when an external process modified the database schema (e.g., renaming a
column), the cached column names were not updated because the internal
version counter only tracked changes made by the same Bun process.

This fix uses SQLite's `SQLITE_STMTSTATUS_REPREPARE` counter to detect
when SQLite has auto-reprepared a statement due to schema changes. When
this counter changes between executions, the column names are refreshed.

Closes #1332

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 01:02:40 +00:00
..