Skip to content

Commit

Permalink
MySQL client disable session state tracking.
Browse files Browse the repository at this point in the history
  • Loading branch information
Barenboim committed Aug 26, 2023
1 parent 6ebeb78 commit 87dadd4
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/protocol/MySQLMessage.cc
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,6 @@ std::string MySQLRequest::get_query() const
#define MYSQL_CAPFLAG_CLIENT_PS_MULTI_RESULTS 0x00040000
#define MYSQL_CAPFLAG_CLIENT_PLUGIN_AUTH 0x00080000
#define MYSQL_CAPFLAG_CLIENT_LOCAL_FILES 0x00000080
#define MYSQL_CAPFLAG_CLIENT_SESSION_TRACK (1 << 23)

int MySQLHandshakeResponse::encode(struct iovec vectors[], int max)
{
Expand Down Expand Up @@ -346,8 +345,7 @@ int MySQLSSLRequest::encode(struct iovec vectors[], int max)
MYSQL_CAPFLAG_CLIENT_LOCAL_FILES |
MYSQL_CAPFLAG_CLIENT_MULTI_STATEMENTS |
MYSQL_CAPFLAG_CLIENT_PS_MULTI_RESULTS |
MYSQL_CAPFLAG_CLIENT_PLUGIN_AUTH |
MYSQL_CAPFLAG_CLIENT_SESSION_TRACK);
MYSQL_CAPFLAG_CLIENT_PLUGIN_AUTH);
pos += 4;
int4store(pos, 0);
pos += 4;
Expand Down Expand Up @@ -385,8 +383,7 @@ int MySQLAuthRequest::encode(struct iovec vectors[], int max)
MYSQL_CAPFLAG_CLIENT_LOCAL_FILES |
MYSQL_CAPFLAG_CLIENT_MULTI_STATEMENTS |
MYSQL_CAPFLAG_CLIENT_PS_MULTI_RESULTS |
MYSQL_CAPFLAG_CLIENT_PLUGIN_AUTH |
MYSQL_CAPFLAG_CLIENT_SESSION_TRACK);
MYSQL_CAPFLAG_CLIENT_PLUGIN_AUTH);
pos += 4;
int4store(pos, 0);
pos += 4;
Expand Down

0 comments on commit 87dadd4

Please sign in to comment.