Skip to content

Commit

Permalink
fix(DBAPI): keep cursor hot when statement is a script
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 12, 2020
1 parent c52b317 commit 9d8d416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/cloud/bigquery/dbapi/cursor.py
Expand Up @@ -222,7 +222,7 @@ def _try_fetch(self, size=None):

is_dml = (
self._query_job.statement_type
and self._query_job.statement_type.upper() != "SELECT"
and self._query_job.statement_type.upper() not in ("SELECT", "SCRIPT")
)
if is_dml:
self._query_data = iter([])
Expand Down

0 comments on commit 9d8d416

Please sign in to comment.