Skip to content
Snippets Groups Projects
Commit 1c741b67 authored by Haoyu Z's avatar Haoyu Z
Browse files

debug

parent e4a7a0af
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ def tablesInQuery(query): ...@@ -33,7 +33,7 @@ def tablesInQuery(query):
#subquery #subquery
output.extend(tablesInQuery(cur[cur.index("(")+1 : cur.index(")")])) output.extend(tablesInQuery(cur[cur.index("(")+1 : cur.index(")")]))
else: else:
output.append(cur.split("as")[0]) output.append(cur.split("as")[0].strip())
continue continue
if state == "second table": if state == "second table":
...@@ -41,7 +41,7 @@ def tablesInQuery(query): ...@@ -41,7 +41,7 @@ def tablesInQuery(query):
#subquery #subquery
output.extend(tablesInQuery(cur[cur.index("(")+1 : cur.index(")")])) output.extend(tablesInQuery(cur[cur.index("(")+1 : cur.index(")")]))
else: else:
output.append(cur.split("as")[0]) output.append(cur.split("as")[0].strip())
break break
return output return output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment