From 07b9b7fcd2951db43a2596b0c26c3cb936cdaa4c Mon Sep 17 00:00:00 2001 From: John Bodley <4567245+john-bodley@users.noreply.github.com> Date: Wed, 12 Jan 2022 13:39:22 +1300 Subject: [PATCH] Update superset/sql_parse.py Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com> --- superset/sql_parse.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superset/sql_parse.py b/superset/sql_parse.py index ab93a22800b31..2f78d25539211 100644 --- a/superset/sql_parse.py +++ b/superset/sql_parse.py @@ -46,7 +46,7 @@ sqlparse.keywords.SQL_REGEX.insert( 0, ( - re.compile(r"'(''|\\\\|\\|[^'])*'", re.IGNORECASE | re.UNICODE).match, + re.compile(r"'(''|\\\\|\\|[^'])*'", sqlparse.keywords.FLAGS).match, sqlparse.tokens.String.Single, ), )