1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Bug #11972: client uses wrong character set after reconnect.

The mysql client uses the default character set on reconnect.  The default character set is now controled by the client charset command while the client is running.  The charset command now also issues a SET NAMES command to the server to make sure that the client's charset settings are in sync with the server's.


client/mysql.cc:
  Client charset command now changes the default character set and issues a SET NAMES command to the server.
mysql-test/r/mysql.result:
  Corrected results for new behaviour.
mysql-test/t/mysql.test:
  Removed redundant commands from test.
This commit is contained in:
unknown
2006-08-24 11:15:08 -04:00
parent 734a4c55ad
commit 689fae6406
3 changed files with 12 additions and 9 deletions

View File

@ -59,16 +59,16 @@ database()
test
unlock tables;
drop table t1;
<EFBFBD>\
<EFBFBD>\
c_cp932
<EFBFBD>\
<EFBFBD>\
<EFBFBD>\
<EFBFBD>\
<EFBFBD>\
+----------------------+------------+--------+
| concat('>',col1,'<') | col2 | col3 |
+----------------------+------------+--------+