Fix `postgresql_user` module to treat quoted identifier well, Fixes #18937 (#18938)

pull/28347/head
Aleksandr Vinokurov 7 years ago committed by Sam Doran
parent 955cc5a99e
commit a55cef3cba

@ -499,7 +499,7 @@ def get_database_privileges(cursor, user, db):
datacl = cursor.fetchone()[0]
if datacl is None:
return set()
r = re.search('%s=(C?T?c?)/[a-z]+\,?' % user, datacl)
r = re.search('%s\\\\?\"?=(C?T?c?)/[^,]+\,?' % user, datacl)
if r is None:
return set()
o = set()

Loading…
Cancel
Save