Skip to content

Commit 3c5f4dd

Browse files
committed
Add __iter__ back to CursorWrapper
1 parent 8e8fc92 commit 3c5f4dd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

newrelic/hooks/database_dbapi2.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ def callproc(self, procname, parameters=DEFAULT):
8989
else:
9090
return self.__wrapped__.callproc(procname)
9191

92+
def __iter__(self):
93+
return iter(self.__wrapped__)
94+
9295

9396
class ConnectionWrapper(ObjectProxy):
9497
__cursor_wrapper__ = CursorWrapper

0 commit comments

Comments
 (0)