fix(qb): Use fallback og table if not found in schema mapper
This commit is contained in:
parent
ded55fd98e
commit
bfd51aa43a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue