mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Bug#22648 LC_TIME_NAMES: Setting GLOBAL has no effect
Problem: setting/displaying @@LC_TIME_NAMES didn't distinguish between GLOBAL and SESSION variable types - always SESSION variable was set/shonw. Fix: set either global or session value. Also, "mysqld --lc-time-names" was added to set "global default" value. mysql-test/r/variables.result: Adding test cases mysql-test/t/variables.test: Adding test cases sql/mysql_priv.h: Declaring variable for global default. sql/mysqld.cc: Adding --lc-time-names sql/set_var.cc: Distinguish between GLOBAL and SESSION variables. sql/sql_class.cc: Don't initialize to en_US, use global_system_variables value instead.
This commit is contained in:
@ -504,6 +504,30 @@ select @@lc_time_names;
|
||||
set lc_time_names=0;
|
||||
select @@lc_time_names;
|
||||
|
||||
#
|
||||
# Bug #22648 LC_TIME_NAMES: Setting GLOBAL has no effect
|
||||
#
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
set @@global.lc_time_names=fr_FR;
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
--echo New connection
|
||||
connect (con1,localhost,root,,);
|
||||
connection con1;
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
set @@lc_time_names=ru_RU;
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
disconnect con1;
|
||||
connection default;
|
||||
--echo Returnung to default connection
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
set lc_time_names=default;
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
set @@global.lc_time_names=default;
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
set @@lc_time_names=default;
|
||||
select @@global.lc_time_names, @@lc_time_names;
|
||||
|
||||
|
||||
#
|
||||
# Bug #13334: query_prealloc_size default less than minimum
|
||||
#
|
||||
|
Reference in New Issue
Block a user