mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-26 04:24:21 +01:00
`maybe_reparse_schema` function introduced in the #2246 was incorrect as it didn't update `schema_version` for internal schema representation and basically updated only schema for connection which called `maybe_reparse_schema`. This PR fixes this issue by reading schema and cookie value within a single transaction and updating both schema content and its version for internal representation. Reviewed-by: Pedro Muniz (@pedrocarlo) Closes #2259