Merge pull request #1621 from ToBeReplaced/postgresql_privs_view_support
Make ALL_IN_SCHEMA for tables affect views
This commit is contained in:
commit
e307967e8e
1 changed files with 1 additions and 1 deletions
|
@ -315,7 +315,7 @@ class Connection(object):
|
|||
query = """SELECT relname
|
||||
FROM pg_catalog.pg_class c
|
||||
JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace
|
||||
WHERE nspname = %s AND relkind = 'r'"""
|
||||
WHERE nspname = %s AND relkind in ('r', 'v')"""
|
||||
self.cursor.execute(query, (schema,))
|
||||
return [t[0] for t in self.cursor.fetchall()]
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue