Code

Execute cursor via Database.sql().
authorstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 16 Feb 2009 20:47:59 +0000 (20:47 +0000)
committerstefan <stefan@57a73879-2fb5-44c3-a270-3262357dd7e2>
Mon, 16 Feb 2009 20:47:59 +0000 (20:47 +0000)
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/roundup/trunk@4130 57a73879-2fb5-44c3-a270-3262357dd7e2

roundup/backends/rdbms_common.py

index f4c0a82850b4fcb4569831f149ea7123c0b79a13..f88d8ca77d98437edeec6791e53affe4f02c0156 100644 (file)
@@ -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()]