fix: Logical bug in DatabaseQuery.extract_tables
Introduced via 888aa8ad84
This commit is contained in:
parent
cb4f36a546
commit
ffb2aceb43
1 changed files with 1 additions and 1 deletions
|
|
@ -302,7 +302,7 @@ class DatabaseQuery(object):
|
|||
# add tables from fields
|
||||
if self.fields:
|
||||
for field in self.fields:
|
||||
if ("tab" not in field and "." not in field) or any(x for x in sql_functions if x in field):
|
||||
if not ("tab" in field and "." in field) or any(x for x in sql_functions if x in field):
|
||||
continue
|
||||
|
||||
table_name = field.split('.')[0]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue