From 716f06c3a2fcdd5df1ce43454f7b52063f4ad9e5 Mon Sep 17 00:00:00 2001 From: lxnay Date: Fri, 26 Sep 2008 08:16:39 +0000 Subject: [PATCH] Entropy/DatabaseInterface: - insertCounter(): improve SQL syntax on DELETE git-svn-id: http://svn.sabayonlinux.org/projects/entropy/trunk@2432 cd1c1023-2f26-0410-ae45-c471fc1f0318 --- libraries/entropy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/entropy.py b/libraries/entropy.py index 2fd29c4ae..ade779a0b 100644 --- a/libraries/entropy.py +++ b/libraries/entropy.py @@ -27151,7 +27151,7 @@ class EntropyDatabaseInterface: self.checkReadOnly() if not branch: branch = etpConst['branch'] - self.cursor.execute('DELETE FROM counters WHERE counter = (?) OR idpackage = (?) AND branch = (?)', (counter,idpackage,branch,)) + self.cursor.execute('DELETE FROM counters WHERE (counter = (?) OR idpackage = (?)) AND branch = (?)', (counter,idpackage,branch,)) self.cursor.execute('INSERT INTO counters VALUES (?,?,?)', (counter,idpackage,branch,)) self.commitChanges()