Skip to content

Generic: Fix quote escaping when displaying byte and raw string literals - #2537

Open
LucaCappelletti94 wants to merge 1 commit into
mainfrom
byte-string-display-escaping
Open

LucaCappelletti94 wants to merge 1 commit into
mainfrom
byte-string-display-escaping

Conversation

@LucaCappelletti94

Copy link
Copy Markdown
Contributor

When displaying Value::SingleQuotedByteStringLiteral, Value::DoubleQuotedByteStringLiteral, Value::SingleQuotedRawStringLiteral, or Value::DoubleQuotedRawStringLiteral, embedded quotes were not being escaped, causing queries like SELECT B'''' to display as SELECT B''' and fail re-parsing during roundtrips.

This change uses escape_single_quote_string and escape_double_quote_string for byte and raw string literals in Value display formatting.

@LucaCappelletti94
LucaCappelletti94 marked this pull request as ready for review September 21, 2026 21:04
@LucaCappelletti94 LucaCappelletti94 added bug Something isn't working fuzzer A bug found by the fuzzer labels Sep 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working fuzzer A bug found by the fuzzer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant