Files
turso/core
Jussi Saurio 5a06411ce6 Merge 'fix/core/translate: ALTER TABLE DROP COLUMN: ensure schema cookie is updated even when target table is empty' from Jussi Saurio
Closes #2431
Discovered while fuzzing #2086
## What
We update `schema_version` whenever the schema changes
## Problem
Probably unintentionally, we were calling `SetCookie` in a loop for each
row in the target table, instead of only once at the end. This means 2
things:
- For large `n`, this is a lot of unnecessary instructions
- For `n==0`, `SetCookie` doesn't get called at all -> the schema won't
get marked as having been updated -> conns can operate on a stale schema
## Fix
Lift `SetCookie` out of the loop

Reviewed-by: Preston Thorpe <preston@turso.tech>

Closes #2432
2025-08-04 16:51:24 +03:00
..
2025-08-01 11:01:29 +02:00
2025-07-28 14:49:07 -03:00
2025-07-16 14:02:56 +04:00
2025-08-04 15:22:04 +04:00
2025-07-14 11:20:49 +04:00
2025-08-04 12:31:17 +02:00
2025-06-23 19:52:13 +01:00
2025-06-30 10:01:03 +03:00
2025-08-04 12:31:17 +02:00
2025-07-31 20:51:43 +05:30
2025-01-28 14:55:38 -05:00
2025-06-23 19:52:13 +01:00
2025-07-30 13:34:49 +05:30
2025-01-28 14:55:38 -05:00
2025-07-26 19:37:39 -05:00
2025-06-23 19:52:13 +01:00
2025-07-23 16:58:22 -04:00
2025-07-30 17:33:59 -03:00
2025-06-30 09:54:13 +03:00