mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
It is possible that change user tries an user who has old password.
Instead of error message that doesn't say much there is more information now.
This commit is contained in:
parent
0cbfc91628
commit
804b950562
3 changed files with 6 additions and 0 deletions
|
@ -1863,6 +1863,10 @@ MYSQLND_METHOD(mysqlnd_conn, change_user)(MYSQLND * const conn,
|
|||
}
|
||||
conn->charset = conn->greet_charset;
|
||||
memset(&conn->upsert_status, 0, sizeof(conn->upsert_status));
|
||||
} else if (ret == FAIL && chg_user_resp->server_asked_323_auth == TRUE) {
|
||||
/* old authentication with new server !*/
|
||||
DBG_ERR(mysqlnd_old_passwd);
|
||||
SET_CLIENT_ERROR(conn->error_info, CR_UNKNOWN_ERROR, UNKNOWN_SQLSTATE, mysqlnd_old_passwd);
|
||||
}
|
||||
|
||||
SET_ERROR_AFF_ROWS(conn);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue