-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
It breaks if use single quoted string with backslash escaped single quote, for example 'Author's name'.
But mysql and postgres accept it
https://dev.mysql.com/doc/refman/8.4/en/string-literals.html
https://www.postgresql.org/docs/current/sql-syntax-lexical.html
I think it can be fixed by changing single_quote grammar to this
{
"_single_quote_string": {
"type": "SEQ",
"members": [
{
"type": "PATTERN",
"value": "([uU]&)?'(''|[^'\\]|\\.)*'"
},
{
"type": "REPEAT",
"content": {
"type": "PATTERN",
"value": "'(''|[^'\\]|\\.)*'"
}
}
]
}
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels