From f0d6cb769ad46ffacfb14a8a94a5f40ecbab8d21 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Thu, 10 Nov 2016 19:56:29 -0500 Subject: [PATCH] Fix sqlite --- lib/gdbcommand.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gdbcommand.py b/lib/gdbcommand.py index 9ef4f4f..c1a0417 100644 --- a/lib/gdbcommand.py +++ b/lib/gdbcommand.py @@ -90,7 +90,7 @@ class GdbCatSumfileCommand(steps.ShellCommand): con = sqlite3.connect (db_file) c = con.cursor () - c.execute ('SELECT commitid WHERE branch = "%s" AND trysched = 0 FROM logs ORDER BY timestamp DESC LIMIT 1' % branch) + c.execute ('SELECT commitid FROM logs WHERE branch = "%s" AND trysched = 0 ORDER BY timestamp DESC LIMIT 1' % branch) prev = c.fetchone () con.close ()