Skip to content

Commit 4c9845f

Browse files
pengyuwesm
authored andcommitted
fixing the error in io/sql.py
1 parent 2c1b5c7 commit 4c9845f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def execute(sql, con, retry=True, cur=None, params=None):
4646

4747
def _safe_fetch(cur):
4848
try:
49-
return cur.fetchall()
49+
return [r for r in cur.fetchall()]
5050
except Exception, e: # pragma: no cover
5151
excName = e.__class__.__name__
5252
if excName == 'OperationalError':

0 commit comments

Comments
 (0)