From 6812321b1ed8a1af4f65ae9e120826e939d52190 Mon Sep 17 00:00:00 2001 From: Pat Buxton <45275736+rad-pat@users.noreply.github.com> Date: Tue, 12 Nov 2024 01:05:11 +0000 Subject: [PATCH] Don't double up dollar signs (#48) --- databend_sqlalchemy/connector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/databend_sqlalchemy/connector.py b/databend_sqlalchemy/connector.py index cc56afd..b96969c 100644 --- a/databend_sqlalchemy/connector.py +++ b/databend_sqlalchemy/connector.py @@ -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):