Files
turso/sql_generation/model
martian56 b56f7b8657 parser: preserve blob literal prefix case
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>
2026-07-23 13:41:00 +04:00
..