From 87146f9f09a2e572fc6c70bc3135549c611990b2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 26 Sep 2012 18:14:29 +0200 Subject: [PATCH] fix typo --- debian_build.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/debian_build.py b/debian_build.py index 7535511..cf7f1ce 100755 --- a/debian_build.py +++ b/debian_build.py @@ -141,10 +141,10 @@ def db_add_build(con, number, db_id): cur = con.cursor() cur.execute("SAVEPOINT a") try: - cur.execute("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id VALUES(%s, %s) RETURNING id" % (number, db_id)) + cur.execute("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id) VALUES(%s, %s) RETURNING id" % (number, db_id)) except psycopg2.DatabaseError as e: cur.execute("ROLLBACK TO a") # have to rollback after failed command - #logger.debug("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id VALUES(%s, %s) RETURNING id" % (number, db_id)) + #logger.debug("INSERT INTO jenkins_build(jenkins_build_number, jenkins_job_id) VALUES(%s, %s) RETURNING id" % (number, db_id)) return cur.fetchone()[0] def db_add_build_result(con, number, start, end): -- 2.39.5