From 797792c19780d841751f5b783d86999d3d58d9be Mon Sep 17 00:00:00 2001 From: Long Le Xich Date: Fri, 11 Jun 2021 16:17:56 +0800 Subject: [PATCH] add backtick to remove_quotes character list --- sqlparse/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlparse/utils.py b/sqlparse/utils.py index 299a84cc..512f0385 100644 --- a/sqlparse/utils.py +++ b/sqlparse/utils.py @@ -55,7 +55,7 @@ def remove_quotes(val): """Helper that removes surrounding quotes from strings.""" if val is None: return - if val[0] in ('"', "'") and val[0] == val[-1]: + if val[0] in ('"', "'", '`') and val[0] == val[-1]: val = val[1:-1] return val