Skip to content

Commit

Permalink
Don't double up dollar signs (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
rad-pat authored Nov 12, 2024
1 parent 3b65a30 commit 6812321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion databend_sqlalchemy/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def escape_string(self, item):
if isinstance(item, bytes):
item = item.decode("utf-8")
return "'{}'".format(
item.replace("\\", "\\\\").replace("'", "\\'").replace("$", "$$").replace("%", "%%")
item.replace("\\", "\\\\").replace("'", "\\'").replace("%", "%%")
)

def escape_item(self, item):
Expand Down

0 comments on commit 6812321

Please sign in to comment.