Escape single quotes by doubling them up.

This commit is contained in:
Ethan Dalool 2020-09-15 14:03:41 -07:00
parent a2337346fb
commit dcf84dedf8

View file

@ -145,6 +145,7 @@ def literal(item):
return f'{item:f}'
elif isinstance(item, str):
item = item.replace("'", "''")
return f"'{item}'"
elif isinstance(item, bytes):