fix(qb): Use fallback og table if not found in schema mapper

This commit is contained in:
Gavin D'souza 2022-06-15 17:44:29 +05:30
parent ded55fd98e
commit bfd51aa43a

View file

@ -76,7 +76,7 @@ class Postgres(Base, PostgreSQLQuery):
if isinstance(table, Table):
if table._schema:
if table._schema._name == "information_schema":
table = cls.schema_translation[table._table_name]
table = cls.schema_translation.get(table._table_name) or table
elif isinstance(table, str):
table = cls.DocType(table)