E&S CVS Commit: PEAK - Fixes after testing cursors with a "real" database, or at least Gadfly. :)

pje at eby-sarna.com pje at eby-sarna.com
Sun Sep 29 18:01:01 EDT 2002


Module Name:	PEAK
Committed By:	pje
Date:		Sun Sep 29 22:00:50 UTC 2002

Modified Files:
	PEAK/src/peak/storage: connections.py

Log Message:
Fixes after testing cursors with a "real" database, or at least Gadfly. :)
Gadfly's 'fetchone()' method appears broken, as it raises an error when
there are no more results (DBAPI 2.0 says None should be returned).  After
considering this and other issues, I changed cursor iteration to use
fetchmany(), which works correctly on Gadfly and also provides more
opportunity for the DB driver to optimize its operations if the fetchmany
method is in C, for example.  Anyway, it's now possible to create a
ManagedConnection for Gadfly (manually) and do cursor operations on it.
Everything seems to work pretty well so far.


To view diffs of this commit, you can use the following URL(s):
http://cvs.eby-sarna.com/PEAK/src/peak/storage/connections.py.diff?r1=1.3&r2=1.4

To generate a diff of this commit:
cvs rdiff -r1.3 -r1.4 PEAK/src/peak/storage/connections.py

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




More information about the source-changes mailing list