Skip to content

Commit

Permalink
no execute many for single row deletes
Browse files Browse the repository at this point in the history
Ran into an issue with alembic trying to delete a row from the ALEMBIC_VERSION table. Result was -1 due to executemany set to TRUE.
  • Loading branch information
Jan authored and Jan committed May 13, 2015
1 parent c57b70f commit 4f2b8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlalchemy_exasol/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ def pre_exec(self):
self.statement = db_query
self.parameters = [[]]

if self.isupdate and len(self.parameters) == 1:
if len(self.parameters) == 1 and (self.isupdate or self.isdelete):
self.executemany = False

class EXADialect(default.DefaultDialect):
Expand Down

0 comments on commit 4f2b8fa

Please sign in to comment.