mirror of
https://github.com/allankoechke/turso.git
synced 2026-11-30 11:12:58 +00:00
pragma_table_info's dflt_value rendered a blob-literal column default in fixed uppercase, so a default of x'00' was reported as X'00'. SQLite preserves the literal's as-typed case. The lexer dropped the x/X prefix and quotes, keeping only the hex payload, and the formatter re-emitted a hardcoded uppercase prefix. Keep the full literal text (including the prefix and quotes) in Literal::Blob, add a blob_literal_hex helper to recover the payload where bytes are needed, and emit the stored text verbatim. Fixes #7554 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>