Skip to content

Commit

Permalink
Fix wrong column name in SQL for chartdata for rollback transactions
Browse files Browse the repository at this point in the history
Fixes #888
  • Loading branch information
pgiraud committed Feb 10, 2021
1 parent f16c3c8 commit 6e99779
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temboardui/plugins/monitoring/chartdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@
datetime AS date,
SUM((record).n_rollback) AS rollback
FROM %(tablename)s
WHERE instance_id = %(instance_id)s AND datetime >= %(start)s AND datetime <= %(end)s AND key = %(key)s
WHERE instance_id = %(instance_id)s AND datetime >= %(start)s AND datetime <= %(end)s AND dbname = %(key)s
GROUP BY datetime, instance_id ORDER BY datetime
""", # noqa
probename='xacts',
Expand Down

0 comments on commit 6e99779

Please sign in to comment.