From: stefan Date: Mon, 16 Feb 2009 20:47:59 +0000 (+0000) Subject: Execute cursor via Database.sql(). X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5fc7c0b1926513f1e7f4038c6268f87cb5dd62d9;p=roundup.git Execute cursor via Database.sql(). git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4130 57a73879-2fb5-44c3-a270-3262357dd7e2 --- diff --git a/roundup/backends/rdbms_common.py b/roundup/backends/rdbms_common.py index f4c0a82..f88d8ca 100644 --- a/roundup/backends/rdbms_common.py +++ b/roundup/backends/rdbms_common.py @@ -1012,7 +1012,7 @@ class Database(FileStorage, hyperdb.Database, roundupdb.Database): # get the link ids sql = 'select linkid from %s_%s where nodeid=%s'%(classname, col, self.arg) - self.cursor.execute(sql, (nodeid,)) + self.sql(sql, (nodeid,)) # extract the first column from the result # XXX numeric ids items = [int(x[0]) for x in self.cursor.fetchall()]