From 1ca03fb85c7efd73c5c05f47ba98d897fc623880 Mon Sep 17 00:00:00 2001 From: Johan Wikman Date: Wed, 7 Nov 2018 14:23:53 +0200 Subject: [PATCH] MXS-1780 Show last queries of session 'maxctrl show sessions' now show last queries of session, if the retaining of statements has been enabled. --- maxctrl/lib/show.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maxctrl/lib/show.js b/maxctrl/lib/show.js index dd343bed9..a9583e139 100644 --- a/maxctrl/lib/show.js +++ b/maxctrl/lib/show.js @@ -58,7 +58,8 @@ const session_fields = [ {'Connected': 'attributes.connected'}, {'Idle': 'attributes.idle'}, {'Connections': 'attributes.connections[].server'}, - {'Connection IDs': 'attributes.connections[].protocol_diagnostics.connection_id'} + {'Connection IDs': 'attributes.connections[].protocol_diagnostics.connection_id'}, + {'Queries': 'attributes.queries[].statement'} ] const filter_fields = [