Project

General

Profile

« Previous | Next » 

Revision 2648

sql.py: DbConn.DbCursor.execute(): When setting self.query, provide default values for query, params because some debug printing statements use self.query directly instead of _add_cursor_info()

View differences:

lib/sql.py
217 217
                try:
218 218
                    return_value = self.inner.execute(query, params)
219 219
                    self.outer.do_autocommit()
220
                finally: self.query = get_cur_query(self.inner)
220
                finally: self.query = get_cur_query(self.inner, query, params)
221 221
            except Exception, e:
222 222
                _add_cursor_info(e, self, query, params)
223 223
                self.result = e # cache the exception as the result

Also available in: Unified diff