Describe the bug
When inserting and selecting a string literal 'on' it is detected as a reserved word and formatted inside the quotes: select * from x where name = 'on' becomes select * from x where name = '\n ON'
To Reproduce
Format the above query
s = format_sql("select * from rooms where command = 'on'")
print(s)
sys.exit(0)
Output:
SELECT *
FROM rooms
WHERE command = '
ON'
Expected behavior
SELECT *
FROM rooms
WHERE command = 'on'
Screenshots