Navigation Menu

Skip to content

Commit

Permalink
[db-manager] Fix affected rows -1
Browse files Browse the repository at this point in the history
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 c90da0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/db_plugins/data_model.py
Expand Up @@ -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 = []
Expand Down

0 comments on commit c90da0e

Please sign in to comment.