sqlparse icon indicating copy to clipboard operation
sqlparse copied to clipboard

Fix parser in case of complex queries

Open CrafterKolyan opened this issue 3 years ago • 3 comments

CrafterKolyan avatar Jul 22 '21 13:07 CrafterKolyan

Please describe the problem that this solves. You can open an issue for this. Ideally also add a test that fails without you contribution and passes with your fix.

mrmasterplan avatar Jan 05 '23 09:01 mrmasterplan

Please describe the problem that this solves. You can open an issue for this. Ideally also add a test that fails without you contribution and passes with your fix.

Queries like

SELECT 1
UNION
SELECT 2

we're not supported. Same applies to INTERSECT instard of UNION and a bunch of other keywords. Check the diff of this pull request for other keywords.

CrafterKolyan avatar Jan 05 '23 11:01 CrafterKolyan

Check this one for a similar issue: #519

CrafterKolyan avatar Jan 05 '23 11:01 CrafterKolyan