sqlite-utils 4.2.2 fixes silent data-loss bug in upsert_all with mixed keys
JeremyCMorgan · x · 2026-12-01
sqlite-utils 4.2.2 fixes several real data bugs; users of upserts should upgrade:
- Data loss: older versions of table.upsertall() overwrote existing values with NULL when records in the same batch had different keys; each record now only updates the columns it provides
- Upserting an existing row with a record omitting a NOT NULL column (no default) no longer raises IntegrityError
- SQL conversions were applied twice on upsert updates, storing wrong values (e.g. ? 100)
- FTS4 triggers: fixed crashes (SQLlogic error) on update/delete of indexed rows; existing FTS4 tables need table.enablefts(..., replace=True) to pick up the fix
- detectfts() no longer treats and % in table names as wildcards
More from coding & agent
- Google Calendar MCP Server lets MCP clients manage events via service account — modelcontextprotocol · 2026-12-01
- eyepup launches agentic visitor analytics MCP with five CRO tools for coding agents — modelcontextprotocol · 2026-12-01
- Cursor → Grok Build lands in F tier of viral rebrands list alongside Twitter → X — fekdaoui · 2026-12-01
- Squabblings: a fully AI-coded 4-player couch co-op brawler prototype — JoonasOfficial · 2026-12-01
- Running Neon to detect Claude sabotage: the verdict was "you sabotaged yourself" — _arohan_ · 2026-12-01
- Gesher launches: unified terminal workspace bridging SSH and AI coding agents via MCP — Aggressive_Dog9281 · 2026-12-01