mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Add support for connect attributes, as of MySQL 5.6
This commit is contained in:
parent
be07f815f2
commit
1ff4352263
8 changed files with 171 additions and 8 deletions
|
@ -28,7 +28,6 @@
|
|||
#include "mysqlnd_charset.h"
|
||||
#include "mysqlnd_debug.h"
|
||||
|
||||
|
||||
/* {{{ mysqlnd_auth_handshake */
|
||||
enum_func_status
|
||||
mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn,
|
||||
|
@ -99,6 +98,10 @@ mysqlnd_auth_handshake(MYSQLND_CONN_DATA * conn,
|
|||
auth_packet->auth_data = auth_plugin_data;
|
||||
auth_packet->auth_data_len = auth_plugin_data_len;
|
||||
auth_packet->auth_plugin_name = auth_protocol;
|
||||
|
||||
if (conn->server_capabilities & CLIENT_CONNECT_ATTRS) {
|
||||
auth_packet->connect_attr = conn->options->connect_attr;
|
||||
}
|
||||
|
||||
if (!PACKET_WRITE(auth_packet, conn)) {
|
||||
goto end;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue