Skip to content
Permalink
Browse files

[db-manager] Increase precision when reporting query time

For consistency with the SQL dialog that used 3 decimal places
  • Loading branch information
elpaso committed Oct 3, 2018
1 parent b8c21b0 commit 96b903e1f321601e1765dd0813a9dcd5e39fbe7d
Showing with 1 addition and 1 deletion.
  1. +1 −1 python/plugins/db_manager/dlg_sql_layer_window.py
@@ -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))

0 comments on commit 96b903e

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