You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Escape character + escaped double quote makes formatted SQL invalid #61
The single result column will be named A\"B.
The backslash escape isn't used as escape here, the first inner " will escape the following ".
To demonstrate the logic a bit more a few examples:
A\B => A\B
A""B => A"B
Now the formatter chokes on this.
select A as "A\""B" from "T1";
will be formatted as
select A as "A\"" B " from " T1 ";
Which is not even executable anymore.
Is there any configuration that could alleviate this problem ?
Activity
manticore-projects commentedon May 29, 2023
Greetings.
With JSQLParser, your query parses just fine
@vertical-blank you may have a look at the Tokens
S_CHAR_LITERALat https://github.com/manticore-projects/JSqlParser/blob/5e7732c870a66afff5b39214b2cfbb0409e12585/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#L531or
S_QUOTED_IDENTIFIERat https://github.com/manticore-projects/JSqlParser/blob/5e7732c870a66afff5b39214b2cfbb0409e12585/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt#LL557C5-L557C24for more complete Regular Expressions. It should be a copy'n paste option.
philos1234 commentedon Jun 15, 2024
is there any update on this issue?