Skip to content

Commit

Permalink
Fetch any result rows present after executing migration statements
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzm committed Feb 1, 2023
1 parent 857ab7d commit 3a6a9cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/schema/python/schemaMigMgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def apply_migrations(self, migrations: List[Migration]) -> Optional[Version]:
_log.debug(f"Migration statement: {stmt}")
if stmt:
for result in cursor.execute(stmt, multi=True):
pass
if result.with_rows:
result.fetchall()
else:
_log.warn(
"Migration statement was empty, nothing to execute."
Expand Down

0 comments on commit 3a6a9cc

Please sign in to comment.