Skip to content

Commit 8bc7086

Browse files
committed
Fix regression in cursor iterator caused by dfd8ce7
cursor.next was renamed to __next__ for Python 3, with a new function next that was intended to be a wrapper around it, but it failed to return the value returned by __next__ :(
1 parent 5108870 commit 8bc7086

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IBM_DB/ibm_db/ibm_db_dbi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1131,7 +1131,7 @@ def __next__( self ):
11311131
return row
11321132

11331133
def next( self ):
1134-
self.__next__()
1134+
return self.__next__()
11351135

11361136
# This attribute specifies the number of rows the last executeXXX()
11371137
# produced or affected. It is a read only attribute.

0 commit comments

Comments
 (0)