diff MySQLdb/cursors.py @ 72:c0c00294239b MySQLdb

Check in some old changes
author adustman
date Thu, 18 Feb 2010 23:47:51 +0000
parents 29b4cfd9af07
children 80164eb2f090
line wrap: on
line diff
--- a/MySQLdb/cursors.py	Tue Dec 08 00:20:52 2009 +0000
+++ b/MySQLdb/cursors.py	Thu Feb 18 23:47:51 2010 +0000
@@ -2,8 +2,8 @@
 MySQLdb Cursors
 ---------------
 
-This module implements Cursors of various types for MySQLdb. By
-default, MySQLdb uses the Cursor class.
+This module implements the Cursor class. You should not try to
+create Cursors direction; use connection.cursor() instead.
 
 """
 
@@ -27,12 +27,6 @@
         A tuple of DB API 7-tuples describing the columns in
         the last executed query; see PEP-249 for details.
 
-    description_flags
-        Tuple of column flags for last query, one entry per column
-        in the result set. Values correspond to those in
-        MySQLdb.constants.FLAG. See MySQL documentation (C API)
-        for more information. Non-standard extension.
-    
     arraysize
         default number of rows fetchmany() will fetch
 
@@ -212,13 +206,13 @@
             query = query.encode(charset)
         matched = INSERT_VALUES.match(query)
         if not matched:
-            self.rowcount = sum([ self.execute(query, arg) for arg in args ])
+            self.rowcount = sum(( self.execute(query, arg) for arg in args ))
             return self.rowcount
         
         start = matched.group('start')
+        values = matched.group('values')
         end = matched.group('end')
-        values = matched.group('values')
- 
+
         try:
             sql_params = ( values % tuple(map(self.connection.literal, row)) for row in args )
             multirow_query = '\n'.join([start, ',\n'.join(sql_params), end])