[Zope3-checkins] CVS: Zope3/src/zope/app/rdb - __init__.py:1.19

Sidnei da Silva sidnei@x3ng.com.br
Fri, 4 Jul 2003 09:53:01 -0400


Update of /cvs-repository/Zope3/src/zope/app/rdb
In directory cvs.zope.org:/tmp/cvs-serv6843

Modified Files:
	__init__.py 
Log Message:
Now its really fixed. Fetchone returns 'None' when there are no more results, according to the docstring

=== Zope3/src/zope/app/rdb/__init__.py 1.18 => 1.19 ===
--- Zope3/src/zope/app/rdb/__init__.py:1.18	Fri Jul  4 09:33:35 2003
+++ Zope3/src/zope/app/rdb/__init__.py	Fri Jul  4 09:52:27 2003
@@ -253,6 +253,8 @@
 
     def fetchone(self):
         results = self.cursor.fetchone()
+        if results is None:
+            return None
         return self._convertTypes([results])[0]
 
     def fetchmany(self, *args, **kw):