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
import sqlparse
import sqlparse.tokens as tk
sql = r"SELECT '\\', '\\'"
for s in sqlparse.parse(sql):
for token_idx, token in enumerate(s.flatten()):
print(f"{token_idx}: {token.value}")
the literal strings are incorrectly interpreted, as it results in