Project

General

Profile

« Previous | Next » 

Revision 2802

sql.py: DbConn.DbCursor.execute(): Removed no longer used params parameter

View differences:

lib/sql.py
210 210
            self.query_lookup = None
211 211
            self.result = []
212 212
        
213
        def execute(self, query, params=None):
214
            assert params == None or params == [] or params == ()
215
            if params == [] or params == (): params = None
216
                # None turns off the mogrifier
217
            
213
        def execute(self, query):
218 214
            self._is_insert = query.startswith('INSERT')
219 215
            self.query_lookup = query
220 216
            try:
221 217
                try:
222
                    cur = self.inner.execute(query, params)
218
                    cur = self.inner.execute(query)
223 219
                    self.outer.do_autocommit()
224
                finally: self.query = get_cur_query(self.inner, query, params)
220
                finally: self.query = get_cur_query(self.inner, query)
225 221
            except Exception, e:
226
                _add_cursor_info(e, self, query, params)
222
                _add_cursor_info(e, self, query)
227 223
                self.result = e # cache the exception as the result
228 224
                self._cache_result()
229 225
                raise

Also available in: Unified diff