Skip to content

Commit

Permalink
docs: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larkee committed Jun 21, 2021
1 parent 91217ce commit c1f6823
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions google/cloud/spanner_dbapi/cursor.py
Expand Up @@ -181,6 +181,7 @@ def execute(self, sql, args=None):
if parse_utils.classify_stmt(ddl) != parse_utils.STMT_DDL:
raise ValueError("Only DDL statements may be batched.")
ddl_statements.append(ddl)
# Only queue DDL statements if they are all correctly classified.
self.connection._ddl_statements.extend(ddl_statements)
if self.connection.autocommit:
self.connection.run_prior_DDL_statements()
Expand Down

0 comments on commit c1f6823

Please sign in to comment.