mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
dacd32f955
mysql client displays wrong character-set of server. When a user changes the charset of a server, mysql client 'status' command displays wrong charset but the command "SHOW VARIABLES LIKE "%charset%" displayed correct charset results. The problem is only with the mysql client's 'status' command output. In mysql client, the method mysql_store_lazy_result() returns 0 for success and non-zero for failure. The method com_status() was using this method wrongly. Fixed all such instances according to return value of the method mysql_store_lazy_result().
6 lines
366 B
Text
6 lines
366 B
Text
--echo #
|
|
--echo # Bug#47671 - wrong character-set after upgrade from 5.1.34 to 5.1.39
|
|
--echo #
|
|
--echo # Extract only charset information from 'status' command output using regex
|
|
--replace_regex /.*mysql.*// /Connection.*// /Current.*// /SSL.*// /Using.*// /Server version.*// /Protocol.*// /UNIX.*// /Uptime.*// /Threads.*//
|
|
--exec $MYSQL -u root test -e "status";
|