summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLong Le Xich <codenamelxl@users.noreply.github.com>2021-06-11 16:17:56 +0800
committerAndi Albrecht <albrecht.andi@gmail.com>2022-08-24 21:38:03 +0200
commitc1a597ee6e8e22c94ca5bdfa1c6665453e0d2c25 (patch)
tree8ddb16905c594d50417ff561a3afb6737daa35a3
parent893d7b2e8075d6867d8a9b377faba7786f28f66d (diff)
downloadsqlparse-c1a597ee6e8e22c94ca5bdfa1c6665453e0d2c25.tar.gz
add backtick to remove_quotes character list
-rw-r--r--sqlparse/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/utils.py b/sqlparse/utils.py
index 299a84c..512f038 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