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
Example occurs when "|" is directly before the single line comment token.
Issue is resolved when you separate them with a space.
edge_case="""myval := oneval || otherval ||--;continuedvals;"""processed=sqlparse.format(edge_case, strip_comments=True)
sqlparse.split(processed)
# should only be 1 statement but getting 2# returns ['myval := oneval || otherval ||--;', 'continuedvals;']### bug doesnt occur when there is a spaceFIXED_edge_case="""myval := oneval || otherval || --;continuedvals;"""
The text was updated successfully, but these errors were encountered:
Example occurs when "|" is directly before the single line comment token.
Issue is resolved when you separate them with a space.
The text was updated successfully, but these errors were encountered: