Skip to content

Commit

Permalink
[db-manager] Increase precision when reporting query time
Browse files Browse the repository at this point in the history
For consistency with the SQL dialog that used 3 decimal places
  • Loading branch information
elpaso committed Oct 3, 2018
1 parent b8c21b0 commit 96b903e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/plugins/db_manager/dlg_sql_layer_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def executeSql(self):
# set the new model
model = self.db.sqlResultModel(sql, self)
self.viewResult.setModel(model)
self.lblResult.setText(self.tr("{0} rows, {1:.1f} seconds").format(model.affectedRows(), model.secs()))
self.lblResult.setText(self.tr("{0} rows, {1:.3f} seconds").format(model.affectedRows(), model.secs()))
cols = self.viewResult.model().columnNames()
for col in cols:
quotedCols.append(self.db.connector.quoteId(col))
Expand Down

0 comments on commit 96b903e

Please sign in to comment.