Browse Source

Oops, execute the query

psql
Rob Savoye 6 years ago
parent
commit
28146cef0e
  1. 6
      contrib/database/importxml.py

6
contrib/database/importxml.py

@ -161,3 +161,9 @@ for tool,entry in manifest.items():
#
# FIXME: should use a date from the XML file
query = """INSERT INTO testruns(testrun, date, target, build) VALUES(%r, %r, %r, %r)""" % (testrun, testenv['timestamp'], testenv['target'], testenv['build'])
try:
dbcursor.execute(query)
except Exception as e:
if e.pgcode != None:
print("ERROR: Query failed to fetch! %r" % e.pgerror)
print("ERROR: Query that failed: %r" % query)

Loading…
Cancel
Save