Skip to content

(sql) Backslash should not escape in string#2301

Merged
joshgoebel merged 2 commits intohighlightjs:masterfrom
schallm:master
Dec 7, 2019
Merged

(sql) Backslash should not escape in string#2301
joshgoebel merged 2 commits intohighlightjs:masterfrom
schallm:master

Conversation

@schallm
Copy link
Copy Markdown
Contributor

@schallm schallm commented Nov 24, 2019

Remove backslash_escape with in strings in standard SQL

Closes #1748.

@joshgoebel
Copy link
Copy Markdown
Member

Please add all 3 string types and examples of escapes to the expects test. And we need a changeling entry also. :)

Thanks!

@joshgoebel joshgoebel self-requested a review November 25, 2019 13:45
@joshgoebel joshgoebel changed the title Backslash should not escape in string in sql (sql) Backslash should not escape in string Nov 25, 2019
@egor-rogov
Copy link
Copy Markdown
Collaborator

Hmm, strings in backticks are out of standard altogether. Anyone knows what database uses them?

@joshgoebel
Copy link
Copy Markdown
Member

@joshgoebel
Copy link
Copy Markdown
Member

@egor-rogov Thoughts? If there is still a separate issue here might we keep this focused on the original issue and perhaps create a new issue for the backtick issue?

I think this solves the original issue, yes?

@joshgoebel joshgoebel added this to the 9.17 milestone Dec 6, 2019
@egor-rogov
Copy link
Copy Markdown
Collaborator

@egor-rogov Thoughts? If there is still a separate issue here might we keep this focused on the original issue and perhaps create a new issue for the backtick issue? I think this solves the original issue, yes?

Absolutely.
As for backticks, looks like we cannot remove it until MySQL gets its own grammar, so let them be.

@joshgoebel joshgoebel merged commit 62fdd69 into highlightjs:master Dec 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(sql) single backslash inside a string literal seems to not be valid

3 participants