Commit after executemany

This commit is contained in:
shortcutme 2019-11-30 02:10:40 +01:00
parent 99304a09ca
commit 594edc6e9a
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 2 additions and 0 deletions

View File

@ -151,6 +151,8 @@ class DbCursor:
if self.logging or taken_query > 0.1:
self.db.log.debug("Query: %s x %s (Done in %.4f)" % (query, len(params), taken_query))
self.db.need_commit = True
return cursor
# Creates on updates a database row without incrementing the rowid