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

This commit is contained in:
Aleksandr Vinokurov 2017-08-17 18:40:24 +02:00 committed by Sam Doran
parent 955cc5a99e
commit a55cef3cba

View file

@ -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()