diff --git a/psqlextra/backend/introspection.py b/psqlextra/backend/introspection.py index 30e0a5e4..b5bccf7d 100644 --- a/psqlextra/backend/introspection.py +++ b/psqlextra/backend/introspection.py @@ -175,14 +175,16 @@ def get_partition_key(self, cursor, table_name: str) -> List[str]: def get_schema_list(self, cursor) -> List[str]: """A flat list of available schemas.""" - sql = """ + cursor.execute( + """ SELECT schema_name FROM information_schema.schemata - """ + """, + tuple(), + ) - cursor.execute(sql, tuple()) return [name for name, in cursor.fetchall()] def get_constraints(self, cursor, table_name: str):