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
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
The text was updated successfully, but these errors were encountered:
Describe the bug
sqlparse.format(query, strip_comments=True)
sometimes does not strip all the comments from thequery
in sqlparse versions 0.5.2 and 0.5.3.To Reproduce
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:
The text was updated successfully, but these errors were encountered: