Bugfix: don't concatenate when not needed

This commit is contained in:
Michael Stella 2016-09-21 09:22:25 -04:00
parent ba60b7972a
commit e7a597da00

View File

@ -2875,7 +2875,7 @@ def privileges_grant(name,
object_name, name)
elif (object_type in ('table', 'sequence') and
object_name.upper() == 'ALL'):
query = 'GRANT {0} ON ALL {1}S IN SCHEMA {2} TO ' + \
query = 'GRANT {0} ON ALL {1}S IN SCHEMA {2} TO ' \
'"{3}" WITH GRANT OPTION'.format(
_grants, object_type.upper(), prepend, name)
else: