Skip to content

Comments

Handle SQL strings containing escaped quotes#77

Open
Denchick wants to merge 1 commit intomasterfrom
codex/fix-insert-syntax-error-for-cashback.checks
Open

Handle SQL strings containing escaped quotes#77
Denchick wants to merge 1 commit intomasterfrom
codex/fix-insert-syntax-error-for-cashback.checks

Conversation

@Denchick
Copy link
Contributor

Summary

  • preprocess lexer input to replace doubled single quotes with placeholders so the Ragel scanner no longer terminates a string literal early, and unescape the placeholders when emitting SCONST tokens
  • add a regression test that parses a SELECT with escaped single quotes to prove the lexer accepts embedded quotes and semicolons inside literals

Testing

  • make test

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant