Is your feature request related to a problem? Please describe.
The OkMessage.parse currently does not attempt to decode session state informations, because it is not useful which at the time.
Currently, session state information of type SESSION_TRACK_SYSTEM_VARIABLES contains some potentially useful messages. e.g. auto_commit, transaction_isolation, or redirect_url (MariaDB only)
Describe the solution you'd like
Make Capability.SESSION_TRACK available and disable it by default. Server will not respond session state info if it is disabled
Add session state information decoding in OkMessage, other types except SESSION_TRACK_SYSTEM_VARIABLES remain ignored
Add method Map<String, String> getSystemVariables() to OkMessage for getting value from the map of SESSION_TRACK_SYSTEM_VARIABLES
Is your feature request related to a problem? Please describe.
The
OkMessage.parse
currently does not attempt to decode session state informations, because it is not useful which at the time.Currently, session state information of type
SESSION_TRACK_SYSTEM_VARIABLES
contains some potentially useful messages. e.g.auto_commit
,transaction_isolation
, orredirect_url
(MariaDB only)Describe the solution you'd like
Capability.SESSION_TRACK
available and disable it by default. Server will not respond session state info if it is disabledOkMessage
, other types exceptSESSION_TRACK_SYSTEM_VARIABLES
remain ignoredMap<String, String> getSystemVariables()
toOkMessage
for getting value from the map ofSESSION_TRACK_SYSTEM_VARIABLES
Additional context
See also MySQL docs and MariaDB docs, MariaDB
redirect_url
ticket