Fix escaping for special charaters

Issue #49297
This commit is contained in:
Yann Masson 2019-02-21 18:41:05 +01:00
parent f4adf33977
commit f614dd7d54
No known key found for this signature in database
GPG key ID: 70AA205BDA1871D3

View file

@ -584,7 +584,7 @@ def quote_identifier(identifier, for_grants=False):
'''
if for_grants:
return '`' + identifier.replace('`', '``').replace('_', r'\_') \
.replace('%', r'\%%') + '`'
.replace('%', r'%%') + '`'
else:
return '`' + identifier.replace('`', '``').replace('%', '%%') + '`'