Commit 4e38cc5f authored by Haoyu Z's avatar Haoyu Z
Browse files

debug

parent 6c423f2a
......@@ -24,8 +24,6 @@ def tablesInQuery(query):
if cur.lower() == "from":
state = "first table"
continue
if "where" in cur.lower():
break
if state == "first table":
if "(" not in cur and "join" in cur:
state = "second table"
......@@ -129,7 +127,7 @@ def exe_query(query, out_file, cur, conn):
header = get_header(query)
out_file.write("provenance formula | " + header+ "provsql-token"+"\n\n")
for row in result:
line = " | ".join(row)
line = " | ".join(str(elem) for elem in row)
out_file.write(line+"\n")
out_file.write("\n---------------------------\n\n")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment