commit-gnue
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

r5649 - trunk/gnue-common/src/datasources/drivers/DBSIG2


From: johannes
Subject: r5649 - trunk/gnue-common/src/datasources/drivers/DBSIG2
Date: Tue, 6 Apr 2004 09:29:37 -0500 (CDT)

Author: johannes
Date: 2004-04-06 09:29:36 -0500 (Tue, 06 Apr 2004)
New Revision: 5649

Modified:
   trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
Log:
Bug fix for mysql driver < version 0.9.2


Modified: trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py       
2004-04-06 13:07:13 UTC (rev 5648)
+++ trunk/gnue-common/src/datasources/drivers/DBSIG2/ResultSet.py       
2004-04-06 14:29:36 UTC (rev 5649)
@@ -69,7 +69,9 @@
       rs = None
 
       try:
-        rsets = self._cursor.fetchmany()
+        # this fixes the mysql-fetchmany-bug (< version 0.9.2) with a missing
+        # default size
+        rsets = self._cursor.fetchmany(self._cursor.arraysize)
       except self._dataObject._DatabaseError, err:
         raise Exceptions.ConnectionError, err
       if rsets and len(rsets):





reply via email to

[Prev in Thread] Current Thread [Next in Thread]