sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

Parsing bug in string literal ')\'');a'

Open judson-firebolt opened this issue 7 months ago • 1 comments

Describe the bug The following query gets split into two, when it shouldn't be:

SELECT (')\'');a');

To Reproduce

https://sqlformat.org/

SELECT (')\'');a');

Yields:

SELECT (')\'');

a');

Expected behavior The query should come out unchanged

Versions (please complete the following information): Python: 3.12.1 sqlparse: 0.5.0

judson-firebolt avatar Jul 11 '24 17:07 judson-firebolt