Variable names ending with and get split in WHERE statements. E.g. variable name brand becomes br and.
To Reproduce
sql_formatter.core.format_sql("""SELECT brand FROM table WHERE brand = 'my_brand'""")
Out[16]: "SELECT brand\nFROM table\nWHERE br\n and = 'my_brand'"
sql_formatter.core.format_sql("""SELECT hello FROM table WHERE TRUE AND brand = 'my_brand'""")
Out[12]: "SELECT hello\nFROM table\nWHERE true\n and br\n and = 'my_brand'"
Expected behavior
"SELECT hello\nFROM table\nWHERE true\n and brand = 'my_brand'"
Describe the bug
Variable names ending with
and
get split inWHERE
statements. E.g. variable namebrand
becomesbr and
.To Reproduce
Expected behavior
Screenshots
N/A