More verbose output for error 2019 #2273

If the backend doesn't support the charset required by the client, an error is returned.
This commit adds more verbosity.
pull/2280/head
René Cannaò 7 years ago
parent 1ed79a724d
commit 149c7c3a40

@ -2907,6 +2907,7 @@ bool MySQL_Session::handler_again___status_CHANGING_CHARSET(int *_rc) {
int myerr=mysql_errno(myconn->mysql);
if (myerr >= 2000) {
if (myerr == 2019) {
proxy_error("Client trying to set a charset/collation (%d) not supported by backend (%s:%d). Changing it to %d\n", client_myds->myconn->options.charset, myconn->parent->address, myconn->parent->port, mysql_thread___default_charset);
client_myds->myconn->options.charset = mysql_thread___default_charset;
}
bool retry_conn=false;

Loading…
Cancel
Save