mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
fix the problem for connect_attr, set db condition, and add a new attribute _server_host
This commit is contained in:
parent
81f52158b4
commit
cdf16c010a
6 changed files with 152 additions and 2 deletions
|
@ -425,6 +425,9 @@ mysqlnd_auth_change_user(MYSQLND_CONN_DATA * const conn,
|
|||
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 (conn->m->get_server_version(conn) >= 50123) {
|
||||
auth_packet->charset_no = conn->charset->nr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue