Open
Description
Describe the bug
sqlparse.format(query, strip_comments=True)
sometimes does not strip all the comments from the query
in sqlparse versions 0.5.2 and 0.5.3.
To Reproduce
import sqlparse
query = "--A;\n--B;"
result = sqlparse.format(query, strip_comments=True)
result
is --B;
Expected behavior
result
should be empty. It is empty in sqlparse version 0.5.1 but not in 0.5.2 and 0.5.3.
Versions:
- Python: 3.11.9
- sqlparse: 0.5.2 and 0.5.3
Metadata
Metadata
Assignees
Labels
No labels