Skip to content

Commit

Permalink
调整表信息解析方法,支持嵌套子查询 fix hhyo#861
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Oct 17, 2020
1 parent e3c7207 commit f8c274d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sql/engines/goinception.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_table_ref(query_tree, db_name=None):
tree = DictTree(tree)

# nodes = tree.find_max_tree("TableRefs") or tree.find_max_tree("Left", "Right")
nodes = tree.find_max_tree("TableRefs")
nodes = tree.find_max_tree("TableRefs", "Left", "Right")
if nodes:
# assert isinstance(v, dict) is true
find_queue.extend([v for node in nodes for v in node.values() if v])
Expand Down

0 comments on commit f8c274d

Please sign in to comment.