Skip to content
Permalink
Browse files

[db-manager] Fix affected rows -1

Number of affected rows was always reported ad -1
no matter what was in the SQL
  • Loading branch information
elpaso committed Oct 3, 2018
1 parent 96b903e commit c90da0e46ab3fdd5bb01c6b184d43f683524e0ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/db_plugins/data_model.py
@@ -203,7 +203,7 @@ def __init__(self, db, sql, parent=None):
try:
if len(header) > 0:
data = self.db._fetchall(c)
self._affectedRows = c.rowcount
self._affectedRows = len(data)
except DbError:
# nothing to fetch!
data = []

0 comments on commit c90da0e

Please sign in to comment.
You can’t perform that action at this time.