Skip to content
Snippets Groups Projects
Commit d6ced6ed authored by Peter J. Keleher's avatar Peter J. Keleher
Browse files

auto

parent 3da78e5c
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,7 @@ if len(sys.argv) != 2:
def executePrint(s):
cur.execute(s)
print cur.fetchall()
print(cur.fetchall())
conn = psycopg2.connect("dbname=flightsskewed user=ubuntu")
cur = conn.cursor()
......@@ -19,9 +19,9 @@ os.system("python {:s} example.json".format(sys.argv[1]))
## Add a customer who doesn't exist
print "==== Testing first json update"
print("==== Testing first json update")
executePrint("select * from customers where customerid = 'cust1000'")
print "==== Testing second json update"
print("==== Testing second json update")
executePrint("select * from flewon where flightid = 'DL108' and flightdate='2015-09-25'")
executePrint("select * from customers where customerid = 'cust1001'")
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