MXS-1826: Handle Authswitch packet for COM_CHANGE_USER

If the server responds with a COM_CHANGE_USER to the default
authentication plugin, the backend protocol will answer correctly.
This commit is contained in:
Markus Mäkelä
2018-04-28 11:01:48 +03:00
parent 34aefa55c8
commit 452f2190ae
3 changed files with 52 additions and 17 deletions

View File

@ -339,6 +339,7 @@ typedef struct
int ignore_replies; /*< How many replies should be discarded */
GWBUF* stored_query; /*< Temporarily stored queries */
bool collect_result; /*< Collect the next result set as one buffer */
bool changing_user;
#if defined(SS_DEBUG)
skygw_chk_t protocol_chk_tail;
#endif