Skip to content

Make tokenization respect escaped quotes.#77

Open
hXtreme wants to merge 2 commits intotaoyds:masterfrom
hXtreme:fix-string-tokenization
Open

Make tokenization respect escaped quotes.#77
hXtreme wants to merge 2 commits intotaoyds:masterfrom
hXtreme:fix-string-tokenization

Conversation

@hXtreme
Copy link

@hXtreme hXtreme commented Dec 18, 2021

Note: SQL usually use single quotes for strings but the old implementation allowed both single and double quoted string as well as a single quoted string to end with a double quote.

This implementation keeps this behavior but allows for quotes to be escaped.

For example strings like "O\'Reilly" won't cause assertion failure and will be tokenized correctly.

@hXtreme
Copy link
Author

hXtreme commented Dec 27, 2021

Please let me know if you have any questions or concerns about the pr.

@hXtreme
Copy link
Author

hXtreme commented Jan 12, 2022

Hi just pinging this.

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.

1 participant