Skip to content

Commit c90da0e

Browse files
committedOct 3, 2018
[db-manager] Fix affected rows -1
Number of affected rows was always reported ad -1 no matter what was in the SQL
1 parent 96b903e commit c90da0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎python/plugins/db_manager/db_plugins/data_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def __init__(self, db, sql, parent=None):
203203
try:
204204
if len(header) > 0:
205205
data = self.db._fetchall(c)
206-
self._affectedRows = c.rowcount
206+
self._affectedRows = len(data)
207207
except DbError:
208208
# nothing to fetch!
209209
data = []

0 commit comments

Comments
 (0)
Please sign in to comment.