Skip to content

Conversation

@kyleconroy
Copy link
Collaborator

Previously, when the lexer encountered an unknown escape sequence like
\S in a string, it would only write the character after the backslash,
losing the backslash itself. This caused strings like 'Win\Sys' to be
stored as 'WinSys' instead of 'Win\Sys'.

This fix preserves both the backslash and the following character for
unknown escape sequences, matching ClickHouse's behavior.

Enables 5 passing tests.

Previously, when the lexer encountered an unknown escape sequence like
\S in a string, it would only write the character after the backslash,
losing the backslash itself. This caused strings like 'Win\Sys' to be
stored as 'WinSys' instead of 'Win\Sys'.

This fix preserves both the backslash and the following character for
unknown escape sequences, matching ClickHouse's behavior.

Enables 5 passing tests.
@kyleconroy kyleconroy merged commit 3ea3be0 into main Dec 25, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants