summaryrefslogtreecommitdiff
path: root/sql/sql_connect.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2019-02-02 10:02:03 +0100
committerVladislav Vaintroub <wlad@mariadb.com>2019-02-02 17:29:33 +0100
commite214aa1cd35d282c27c1888bcd6cf943340c67ff (patch)
tree52968f0055558b5dda022c4906b392a8912aab71 /sql/sql_connect.cc
parent14a58cea59a8c173923ad1cde9516e6c01ac0ef9 (diff)
downloadmariadb-git-e214aa1cd35d282c27c1888bcd6cf943340c67ff.tar.gz
MDEV-18281 COM_RESET_CONNECTION changes the connection encoding
Store original charset during client authentication, and restore it for COM_RESET_CONNECTION
Diffstat (limited to 'sql/sql_connect.cc')
-rw-r--r--sql/sql_connect.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_connect.cc b/sql/sql_connect.cc
index b48070b9c8f..6881ca5956e 100644
--- a/sql/sql_connect.cc
+++ b/sql/sql_connect.cc
@@ -796,6 +796,7 @@ bool thd_init_client_charset(THD *thd, uint cs_number)
cs->csname);
return true;
}
+ thd->org_charset= cs;
thd->update_charset(cs,cs,cs);
}
return false;