Skip to content

Commit

Permalink
Add some documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelosana authored and juarezr committed Jul 3, 2020
1 parent 11bc085 commit aa18cb5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions petl/io/db.py
Expand Up @@ -163,6 +163,7 @@ def _iter_dbapi_cursor(cursor, query, *args, **kwargs):
cursor.execute(query, *args, **kwargs)
# fetch one row before iterating, to force population of cursor.description
# which may be postponed if using server-side cursors
# not all database drivers populate cursor after execute so we call fetchall
try:
it = iter(cursor)
except TypeError:
Expand Down

0 comments on commit aa18cb5

Please sign in to comment.