From 01646d7648965f1f9007e12f6af07a19d28434a1 Mon Sep 17 00:00:00 2001 From: Jakub Dardzinski Date: Fri, 26 May 2023 16:07:05 +0200 Subject: [PATCH] Add `[` and `]` to `_rfc_1738_quote`. Signed-off-by: Jakub Dardzinski --- src/snowflake/sqlalchemy/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):