E&S CVS Commit: PEAK - The Sybase DB-API driver doesn't like it if you try to fetch

tsarna at eby-sarna.com tsarna at eby-sarna.com
Fri Oct 8 11:52:00 EDT 2004

Module Name:	PEAK
Committed By:	tsarna
Date:		Fri Oct  8 15:51:29 UTC 2004

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

Log Message:
The Sybase DB-API driver doesn't like it if you try to fetch
nonexistsant results.  For a long time we've had hacks in various places
that check to see if cursor has a description and if not, avoids doing
anything with it.

This hack has been multiplying all over the place, which is bad, and was
forgotten in other places causing errors, which is worse. Instead,
centralize this hack in SQLCursor.__iter__, so that a nonexistant result
set can safely be iterated over as an empty set.

To view diffs of this commit, you can use the following URL(s):

To generate a diff of this commit:
cvs rdiff -r1.75 -r1.76 PEAK/src/peak/storage/SQL.py
cvs rdiff -r1.25 -r1.26 PEAK/src/peak/storage/connections.py
cvs rdiff -r1.10 -r1.11 PEAK/src/peak/storage/cursor_formatters.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