diff --git a/src/snowflake/sqlalchemy/util.py b/src/snowflake/sqlalchemy/util.py index 56b5de5b..6d761e74 100644 --- a/src/snowflake/sqlalchemy/util.py +++ b/src/snowflake/sqlalchemy/util.py @@ -21,7 +21,7 @@ def _rfc_1738_quote(text): - return re.sub(r"[:@/]", lambda m: "%%%X" % ord(m.group(0)), text) + return re.sub(r"[\[\]:@/]", lambda m: "%%%X" % ord(m.group(0)), text) def _url(**db_parameters):