mirror of
https://github.com/sogou/workflow.git
synced 2026-10-25 17:10:05 +08:00
MySQL client add CLIENT_SESSION_TRACK.
This commit is contained in:
@@ -190,6 +190,7 @@ 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)
|
||||
{
|
||||
@@ -336,7 +337,8 @@ 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_PLUGIN_AUTH |
|
||||
MYSQL_CAPFLAG_CLIENT_SESSION_TRACK);
|
||||
pos += 4;
|
||||
int4store(pos, 0);
|
||||
pos += 4;
|
||||
@@ -374,7 +376,8 @@ 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_PLUGIN_AUTH |
|
||||
MYSQL_CAPFLAG_CLIENT_SESSION_TRACK);
|
||||
pos += 4;
|
||||
int4store(pos, 0);
|
||||
pos += 4;
|
||||
|
||||
Reference in New Issue
Block a user