Author: cito Date: Fri Oct 22 14:36:18 2010 New Revision: 425 Log: Removed extra call to db.query() in pg.update(), as reported by Patrick McPhee.
Modified: trunk/module/pg.py Modified: trunk/module/pg.py ============================================================================== --- trunk/module/pg.py Sun Sep 12 11:43:10 2010 (r424) +++ trunk/module/pg.py Fri Oct 22 14:36:18 2010 (r425) @@ -624,11 +624,10 @@ self._do_debug(q) res = self.db.query(q) if ret: - res = self.db.query(q).dictresult() - for att, value in res[0].iteritems(): + res = res.dictresult()[0] + for att, value in res.iteritems(): d[att == 'oid' and qoid or att] = value else: - self.db.query(q) if selectable: if qoid in d: self.get(qcl, d, 'oid') _______________________________________________ PyGreSQL mailing list PyGreSQL@vex.net http://mailman.vex.net/mailman/listinfo/pygresql