From 149c7c3a40ae06ad795d1c875a23296d2f681559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Canna=C3=B2?= Date: Sat, 28 Sep 2019 18:10:24 +1000 Subject: [PATCH] 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. --- lib/MySQL_Session.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/MySQL_Session.cpp b/lib/MySQL_Session.cpp index 4e1169443..c07d12acc 100644 --- a/lib/MySQL_Session.cpp +++ b/lib/MySQL_Session.cpp @@ -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;