Skip to content

fix issue #766 #781

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 24 additions & 4 deletions sql-common/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,31 @@ void read_ok_ex(MYSQL *mysql, ulong length)
switch (type)
{
case SESSION_TRACK_SYSTEM_VARIABLES:
case SESSION_TRACK_SCHEMA:
case SESSION_TRACK_TRANSACTION_CHARACTERISTICS:
/* Move past the total length of the changed entity. */
(void) net_field_length(&pos);

/* Name of the system variable. */
len= (size_t) net_field_length(&pos);

pos += len;

/* Value of the system variable. */
len= (size_t) net_field_length(&pos);
pos += len;

break;
case SESSION_TRACK_TRANSACTION_STATE:
/* not backported */
break;
case SESSION_TRACK_TRANSACTION_CHARACTERISTICS:
case SESSION_TRACK_SCHEMA:

/* Move past the total length of the changed entity. */
(void) net_field_length(&pos);

len= (size_t) net_field_length(&pos);

pos += len;

break;
case SESSION_TRACK_GTIDS:
if (!my_multi_malloc(MYF(0),
&element, sizeof(LIST),
Expand Down