aboutsummaryrefslogtreecommitdiff
path: root/rpki/sql.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2014-05-20 00:16:24 +0000
committerRob Austein <sra@hactrn.net>2014-05-20 00:16:24 +0000
commitd802ad11ce25f3e11e3c93ae6d6992f1be85b6ec (patch)
treef72657a3c4f1b87bb15b33310faddcb257a54577 /rpki/sql.py
parent073ab401b43b9d51e79d70387b25e4cc6f8b01b7 (diff)
Clean up ancient singleton arguments to .execute(); MySQLdb used to
tolerate these, but seems not to like them anymore, at least not on MacOSX Mavericks with Homebrew's version of MySQL and MySQLdb. svn path=/trunk/; revision=5830
Diffstat (limited to 'rpki/sql.py')
-rw-r--r--rpki/sql.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rpki/sql.py b/rpki/sql.py
index c753278c..65a3b85c 100644
--- a/rpki/sql.py
+++ b/rpki/sql.py
@@ -335,7 +335,7 @@ class sql_persistent(object):
if self.sql_debug:
rpki.log.debug("sql_delete(%r, %r)" % (self.sql_template.delete, id))
self.sql_delete_hook()
- self.gctx.sql.execute(self.sql_template.delete, id)
+ self.gctx.sql.execute(self.sql_template.delete, (id,))
key = (self.__class__, id)
if self.gctx.sql.cache.get(key) == self:
del self.gctx.sql.cache[key]