diff MySQLdb/cursors.py @ 66:5a7c30cd9de2 MySQLdb

By exposing connection on result, decoders can be simplified: Only the field object is needed. Turned on leak testing and found a leak writing BLOBs. removed one of the old stubs in Cursor.
author adustman
date Sun, 29 Mar 2009 16:26:30 +0000
parents 7a60c4574baf
children 98d968f5af11
line wrap: on
line diff
--- a/MySQLdb/cursors.py	Sun Mar 29 00:52:14 2009 +0000
+++ b/MySQLdb/cursors.py	Sun Mar 29 16:26:30 2009 +0000
@@ -120,7 +120,7 @@
     def _lookup_decoder(self, field):
         from MySQLdb.converters import filter_NULL
         for plugin in self._decoders:
-            f = plugin(self, field)
+            f = plugin(field)
             if f:
                 return filter_NULL(f)
         return None # this should never happen   
@@ -315,10 +315,6 @@
         self._do_get_result()
         return self.rowcount
 
-    def _query(self, query):
-        """Hook for _do_query."""
-        return self._do_query(query)
-    
     def _fetch_row(self, size=1):
         """Low-level fetch_row wrapper."""
         if not self._result: