mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
parent
f4adf33977
commit
f614dd7d54
1 changed files with 1 additions and 1 deletions
|
@ -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('%', '%%') + '`'
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue