mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
WL#4738 streamline/simplify @@variable creation process
Bug#16565 mysqld --help --verbose does not order variablesBug#20413 sql_slave_skip_counter is not shown in show variables Bug#20415 Output of mysqld --help --verbose is incomplete Bug#25430 variable not found in SELECT @@global.ft_max_word_len; Bug#32902 plugin variables don't know their names Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#34829 No default value for variable and setting default does not raise error Bug#34834 ? Is accepted as a valid sql mode Bug#34878 Few variables have default value according to documentation but error occurs Bug#34883 ft_boolean_syntax cant be assigned from user variable to global var. Bug#37187 `INFORMATION_SCHEMA`.`GLOBAL_VARIABLES`: inconsistent status Bug#40988 log_output_basic.test succeeded though syntactically false. Bug#41010 enum-style command-line options are not honoured (maria.maria-recover fails) Bug#42103 Setting key_buffer_size to a negative value may lead to very large allocations Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#44797 plugins w/o command-line options have no disabling option in --help Bug#46314 string system variables don't support expressions Bug#46470 sys_vars.max_binlog_cache_size_basic_32 is broken Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#47212 Crash in DBUG_PRINT in mysqltest.cc when trying to print octal number Bug#48758 mysqltest crashes on sys_vars.collation_server_basic in gcov builds Bug#49417 some complaints about mysqld --help --verbose output Bug#49540 DEFAULT value of binlog_format isn't the default value Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters Bug#49646 mysql --show-warnings crashes when server dies CMakeLists.txt: Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled client/mysql.cc: don't crash with --show-warnings when mysqld dies config/ac-macros/plugins.m4: Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled include/my_getopt.h: comments include/my_pthread.h: fix double #define mysql-test/mysql-test-run.pl: run sys_vars suite by default properly recognize envirinment variables (e.g. MTR_MAX_SAVE_CORE) set to 0 escape gdb command line arguments mysql-test/suite/sys_vars/r/rpl_init_slave_func.result: init_slave+utf8 bug mysql-test/suite/sys_vars/t/rpl_init_slave_func.test: init_slave+utf8 bug mysys/my_getopt.c: Bug#34599 MySQLD Option and Variable Reference need to be consistent in formatting! Bug#46586 When using the plugin interface the type "set" for options caused a crash. Bug#49640 ambiguous option '--skip-skip-myisam' (double skip prefix) mysys/typelib.c: support for flagset sql/ha_ndbcluster.cc: backport from telco tree sql/item_func.cc: Bug#49644 init_connect and \0 Bug#49645 init_slave and multi-byte characters sql/sql_builtin.cc.in: Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled sql/sql_plugin.cc: Bug#44691 Some plugins configured as MYSQL_PLUGIN_MANDATORY in can be disabled Bug#32902 plugin variables don't know their names Bug#44797 plugins w/o command-line options have no disabling option in --help sql/sys_vars.cc: all server variables are defined here storage/myisam/ft_parser.c: remove unnecessary updates of param->quot storage/myisam/ha_myisam.cc: myisam_* variables belong here strings/my_vsnprintf.c: %o and %llx unittest/mysys/my_vsnprintf-t.c: %o and %llx tests vio/viosocket.c: bugfix: fix @@wait_timeout to work with socket timeouts (vs. alarm thread)
This commit is contained in:
@ -1615,7 +1615,7 @@ DROP TABLE t1;
|
||||
# BUG#46961 - archive engine loses rows during self joining select!
|
||||
#
|
||||
SET @save_join_buffer_size= @@join_buffer_size;
|
||||
SET @@join_buffer_size= 8228;
|
||||
SET @@join_buffer_size= 8192;
|
||||
CREATE TABLE t1(a CHAR(255)) ENGINE=archive;
|
||||
INSERT INTO t1 VALUES('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
|
||||
('aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'),
|
||||
|
@ -1 +1 @@
|
||||
--skip-grant-tables --skip-name-resolve --safemalloc-mem-limit=4000000
|
||||
--skip-grant-tables --skip-name-resolve --loose-safemalloc-mem-limit=4000000
|
||||
|
@ -3,6 +3,8 @@
|
||||
--echo # sort_buffer_size cannot allocate
|
||||
--echo #
|
||||
|
||||
--source include/have_debug.inc
|
||||
|
||||
call mtr.add_suppression("Out of memory at line .*, 'my_alloc.c'");
|
||||
call mtr.add_suppression("needed .* byte .*k., memory in use: .* bytes .*k");
|
||||
|
||||
|
@ -20,7 +20,7 @@ SET @@session.max_join_size = default;
|
||||
SELECT @@session.sql_big_selects;
|
||||
# On some machines the following will result into a warning
|
||||
--disable_warnings
|
||||
SET @@global.max_join_size = -1;
|
||||
SET @@global.max_join_size = 18446744073709551615;
|
||||
--enable_warnings
|
||||
SET @@session.max_join_size = default;
|
||||
--echo change_user
|
||||
|
@ -16,83 +16,78 @@ FROM information_schema.session_variables
|
||||
WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
|
||||
ORDER BY variable_name;
|
||||
|
||||
#
|
||||
# Test setting a lot of different formats to see which formats are accepted and
|
||||
# which aren't
|
||||
#
|
||||
|
||||
SET time_format='%H%i%s';
|
||||
SET time_format='%H:%i:%s.%f';
|
||||
SET time_format='%h-%i-%s.%f%p';
|
||||
SET time_format='%h:%i:%s.%f %p';
|
||||
SET time_format='%h:%i:%s%p';
|
||||
|
||||
SET date_format='%Y%m%d';
|
||||
SET date_format='%Y.%m.%d';
|
||||
SET date_format='%d.%m.%Y';
|
||||
SET date_format='%m-%d-%Y';
|
||||
|
||||
set datetime_format= '%Y%m%d%H%i%s';
|
||||
set datetime_format= '%Y-%m-%d %H:%i:%s';
|
||||
set datetime_format= '%m-%d-%y %H:%i:%s.%f';
|
||||
set datetime_format= '%d-%m-%Y %h:%i:%s%p';
|
||||
set datetime_format= '%H:%i:%s %Y-%m-%d';
|
||||
set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
|
||||
set datetime_format= '%h:%i:%s %p %Y-%m-%d';
|
||||
set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
|
||||
|
||||
SELECT variable_name, variable_value
|
||||
FROM information_schema.session_variables
|
||||
WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
|
||||
ORDER BY variable_name;
|
||||
|
||||
--error 1231
|
||||
SET time_format='%h:%i:%s';
|
||||
--error 1231
|
||||
SET time_format='%H %i:%s';
|
||||
--error 1231
|
||||
SET time_format='%H::%i:%s';
|
||||
--error 1231
|
||||
SET time_format='%H:%i:%s%f';
|
||||
--error 1231
|
||||
SET time_format='%H:%i.%f:%s';
|
||||
--error 1231
|
||||
SET time_format='%H:%i:%s%p';
|
||||
--error 1231
|
||||
SET time_format='%h:%i:%s.%f %p %Y-%m-%d';
|
||||
--error 1231
|
||||
SET time_format='%H%i%s.%f';
|
||||
--error 1231
|
||||
SET time_format='%H:%i-%s.%f';
|
||||
--error 1231
|
||||
SET date_format='%d.%m.%d';
|
||||
--error 1231
|
||||
SET datetime_format='%h.%m.%y %d.%i.%s';
|
||||
--error 1231
|
||||
set datetime_format= '%H:%i:%s.%f %p %Y-%m-%d';
|
||||
|
||||
#
|
||||
# Test GLOBAL values
|
||||
|
||||
set GLOBAL datetime_format= '%H:%i:%s %Y-%m-%d';
|
||||
SET SESSION datetime_format=default;
|
||||
select @@global.datetime_format, @@session.datetime_format;
|
||||
SET GLOBAL datetime_format=default;
|
||||
SET SESSION datetime_format=default;
|
||||
select @@global.datetime_format, @@session.datetime_format;
|
||||
|
||||
SET GLOBAL date_format=default;
|
||||
SET GLOBAL time_format=default;
|
||||
SET GLOBAL datetime_format=default;
|
||||
SET time_format=default;
|
||||
SET date_format=default;
|
||||
SET datetime_format=default;
|
||||
|
||||
#
|
||||
# The following tests will work only when we at some point will enable
|
||||
# dynamic changing of formats
|
||||
#
|
||||
|
||||
# SET time_format='%H%i%s';
|
||||
# SET time_format='%H:%i:%s.%f';
|
||||
# SET time_format='%h-%i-%s.%f%p';
|
||||
# SET time_format='%h:%i:%s.%f %p';
|
||||
# SET time_format='%h:%i:%s%p';
|
||||
#
|
||||
# SET date_format='%Y%m%d';
|
||||
# SET date_format='%Y.%m.%d';
|
||||
# SET date_format='%d.%m.%Y';
|
||||
# SET date_format='%m-%d-%Y';
|
||||
#
|
||||
# set datetime_format= '%Y%m%d%H%i%s';
|
||||
# set datetime_format= '%Y-%m-%d %H:%i:%s';
|
||||
# set datetime_format= '%m-%d-%y %H:%i:%s.%f';
|
||||
# set datetime_format= '%d-%m-%Y %h:%i:%s%p';
|
||||
# set datetime_format= '%H:%i:%s %Y-%m-%d';
|
||||
# set datetime_format= '%H:%i:%s.%f %m-%d-%Y';
|
||||
# set datetime_format= '%h:%i:%s %p %Y-%m-%d';
|
||||
# set datetime_format= '%h:%i:%s.%f %p %Y-%m-%d';
|
||||
#
|
||||
# SELECT variable_name, variable_value
|
||||
# FROM information_schema.session_variables
|
||||
# WHERE variable_name IN ('date_format', 'datetime_format', 'time_format')
|
||||
# ORDER BY variable_name;
|
||||
#
|
||||
# --error 1231
|
||||
# SET time_format='%h:%i:%s';
|
||||
# --error 1231
|
||||
# SET time_format='%H %i:%s';
|
||||
# --error 1231
|
||||
# SET time_format='%H::%i:%s';
|
||||
# --error 1231
|
||||
# SET time_format='%H:%i:%s%f';
|
||||
# --error 1231
|
||||
# SET time_format='%H:%i.%f:%s';
|
||||
# --error 1231
|
||||
# SET time_format='%H:%i:%s%p';
|
||||
# --error 1231
|
||||
# SET time_format='%h:%i:%s.%f %p %Y-%m-%d';
|
||||
# --error 1231
|
||||
# SET time_format='%H%i%s.%f';
|
||||
# --error 1231
|
||||
# SET time_format='%H:%i-%s.%f';
|
||||
# --error 1231
|
||||
# SET date_format='%d.%m.%d';
|
||||
# --error 1231
|
||||
# SET datetime_format='%h.%m.%y %d.%i.%s';
|
||||
# --error 1231
|
||||
# set datetime_format= '%H:%i:%s.%f %p %Y-%m-%d';
|
||||
#
|
||||
# #
|
||||
# # Test GLOBAL values
|
||||
#
|
||||
# set GLOBAL datetime_format= '%H:%i:%s %Y-%m-%d';
|
||||
# SET SESSION datetime_format=default;
|
||||
# select @@global.datetime_format, @@session.datetime_format;
|
||||
# SET GLOBAL datetime_format=default;
|
||||
# SET SESSION datetime_format=default;
|
||||
# select @@global.datetime_format, @@session.datetime_format;
|
||||
#
|
||||
# SET GLOBAL date_format=default;
|
||||
# SET GLOBAL time_format=default;
|
||||
# SET GLOBAL datetime_format=default;
|
||||
# SET time_format=default;
|
||||
# SET date_format=default;
|
||||
# SET datetime_format=default;
|
||||
|
||||
# SET date_format='%d.%m.%Y';
|
||||
# select CAST('01.01.2001' as DATE) as a;
|
||||
# SET datetime_format='%d.%m.%Y %H.%i.%s';
|
||||
|
@ -148,7 +148,7 @@ set names koi8r|
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_koi8r.views.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --databases mysqltest1 > $views_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --databases mysqltest1 > $views_dump1
|
||||
|
||||
# - Clean mysqltest1;
|
||||
|
||||
@ -408,22 +408,22 @@ set names koi8r|
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest1
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest1
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_koi8r.sp.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest1 > $sp_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest1 > $sp_dump1
|
||||
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest2
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest2
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest2 to ddl_i18n_koi8r.sp.mysqltest2.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest2 > $sp_dump2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest2 > $sp_dump2
|
||||
|
||||
# - Clean mysqltest1, mysqltest2;
|
||||
|
||||
@ -685,22 +685,22 @@ use mysqltest1|
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest1
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest1
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_koi8r.triggers.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest1 > $triggers_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest1 > $triggers_dump1
|
||||
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest2
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest2
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest2 to ddl_i18n_koi8r.triggers.mysqltest2.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest2 > $triggers_dump2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest2 > $triggers_dump2
|
||||
|
||||
# - Clean mysqltest1, mysqltest2;
|
||||
|
||||
@ -946,22 +946,22 @@ set names koi8r|
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest1
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest1
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_koi8r.events.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest1 > $events_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest1 > $events_dump1
|
||||
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest2
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest2
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest2 to ddl_i18n_koi8r.events.mysqltest2.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest2 > $events_dump2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest2 > $events_dump2
|
||||
|
||||
# - Clean mysqltest1, mysqltest2;
|
||||
|
||||
|
@ -148,7 +148,7 @@ set names utf8|
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_utf8views.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --databases mysqltest1 > $views_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --databases mysqltest1 > $views_dump1
|
||||
|
||||
# - Clean mysqltest1;
|
||||
|
||||
@ -408,22 +408,22 @@ set names utf8|
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest1
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest1
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_utf8sp.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest1 > $sp_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest1 > $sp_dump1
|
||||
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest2
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest2
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest2 to ddl_i18n_utf8sp.mysqltest2.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --routines --databases mysqltest2 > $sp_dump2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --routines --databases mysqltest2 > $sp_dump2
|
||||
|
||||
# - Clean mysqltest1, mysqltest2;
|
||||
|
||||
@ -685,22 +685,22 @@ use mysqltest1|
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest1
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest1
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_utf8triggers.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest1 > $triggers_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest1 > $triggers_dump1
|
||||
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest2
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest2
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest2 to ddl_i18n_utf8triggers.mysqltest2.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --triggers --databases mysqltest2 > $triggers_dump2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --triggers --databases mysqltest2 > $triggers_dump2
|
||||
|
||||
# - Clean mysqltest1, mysqltest2;
|
||||
|
||||
@ -946,22 +946,22 @@ set names utf8|
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest1
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest1
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to ddl_i18n_utf8events.mysqltest1.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest1 > $events_dump1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest1 > $events_dump1
|
||||
|
||||
--echo
|
||||
--echo ---> Dump of mysqltest2
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest2
|
||||
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest2 to ddl_i18n_utf8events.mysqltest2.sql
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --compact --events --databases mysqltest2 > $events_dump2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --compact --events --databases mysqltest2 > $events_dump2
|
||||
|
||||
# - Clean mysqltest1, mysqltest2;
|
||||
|
||||
|
@ -102,8 +102,11 @@ drop table t1;
|
||||
drop table t2;
|
||||
drop function f1;
|
||||
drop function f2;
|
||||
|
||||
#
|
||||
# testing the value encoding in the error messages of set_var
|
||||
# testing the value encoding in the error messages
|
||||
#
|
||||
# should be TR\xC3\x9CE, TR<54>E, TR<54>E
|
||||
#
|
||||
SET NAMES utf8;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
@ -125,9 +128,9 @@ SET sql_quote_show_create= _utf8 x'5452C39C45';
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET sql_quote_show_create=_latin1 x'5452DC45';
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET sql_quote_show_create='TR.E';
|
||||
SET sql_quote_show_create='TR<EFBFBD>E';
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET sql_quote_show_create=TR.E;
|
||||
SET sql_quote_show_create=TR<EFBFBD>E;
|
||||
|
||||
SET NAMES binary;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
@ -136,3 +139,4 @@ SET sql_quote_show_create= _binary x'5452C39C45';
|
||||
SET sql_quote_show_create= _utf8 x'5452C39C45';
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET sql_quote_show_create=_latin1 x'5452DC45';
|
||||
|
||||
|
@ -25,15 +25,6 @@ set names utf8;
|
||||
create event задачка on schedule every 123 minute starts now() ends now() + interval 1 month do select 1;
|
||||
drop event задачка;
|
||||
|
||||
# event_scheduler is a global var
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set event_scheduler=off;
|
||||
# event_scheduler could be only either 1 or 2
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global event_scheduler=3;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global event_scheduler=disabled;
|
||||
|
||||
--echo "DISABLE the scheduler. Testing that it does not work when the variable is 0"
|
||||
set global event_scheduler=off;
|
||||
select definer, name, db from mysql.event;
|
||||
|
@ -1199,14 +1199,14 @@ DROP USER mysqltest_u1@localhost;
|
||||
drop procedure if exists p;
|
||||
--enable_warnings
|
||||
set @old_mode= @@sql_mode;
|
||||
set @@sql_mode= pow(2,32)-1;
|
||||
set @@sql_mode= cast(pow(2,32)-1 as unsigned integer);
|
||||
create event e1 on schedule every 1 day do select 1;
|
||||
select @@sql_mode;
|
||||
select @@sql_mode into @full_mode;
|
||||
set @@sql_mode= @old_mode;
|
||||
# Rename SQL modes that differ in name between the server and the table definition.
|
||||
select replace(@full_mode, '?', 'NOT_USED') into @full_mode;
|
||||
select replace(@full_mode, ',,,', ',NOT_USED,') into @full_mode;
|
||||
select replace(@full_mode, 'ALLOW_INVALID_DATES', 'INVALID_DATES') into @full_mode;
|
||||
select name from mysql.event where name = 'p' and sql_mode = @full_mode;
|
||||
select name from mysql.event where name = 'e1' and sql_mode = @full_mode;
|
||||
drop event e1;
|
||||
|
||||
#
|
||||
|
@ -36,7 +36,6 @@ select @@optimizer_switch;
|
||||
set optimizer_switch='default,index_merge_sort_union=off';
|
||||
select @@optimizer_switch;
|
||||
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set optimizer_switch=4;
|
||||
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
-- source include/have_innodb.inc
|
||||
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_commit_concurrency=0;
|
||||
select @@innodb_commit_concurrency;
|
||||
set global innodb_commit_concurrency=1;
|
||||
@ -14,7 +14,7 @@ set global innodb_commit_concurrency=42;
|
||||
select @@innodb_commit_concurrency;
|
||||
set global innodb_commit_concurrency=DEFAULT;
|
||||
select @@innodb_commit_concurrency;
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_commit_concurrency=0;
|
||||
select @@innodb_commit_concurrency;
|
||||
set global innodb_commit_concurrency=1;
|
||||
|
@ -7,10 +7,10 @@
|
||||
|
||||
set global innodb_commit_concurrency=0;
|
||||
select @@innodb_commit_concurrency;
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_commit_concurrency=1;
|
||||
select @@innodb_commit_concurrency;
|
||||
--error ER_WRONG_ARGUMENTS
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set global innodb_commit_concurrency=42;
|
||||
select @@innodb_commit_concurrency;
|
||||
set global innodb_commit_concurrency=0;
|
||||
|
@ -149,10 +149,13 @@ show status like 'key_blocks_used';
|
||||
--replace_result 1812 KEY_BLOCKS_UNUSED 1793 KEY_BLOCKS_UNUSED 1674 KEY_BLOCKS_UNUSED 1818 KEY_BLOCKS_UNUSED 1824 KEY_BLOCKS_UNUSED
|
||||
show status like 'key_blocks_unused';
|
||||
|
||||
|
||||
# Cleanup
|
||||
# We don't reset keycache2 as we want to ensure that mysqld will reset it
|
||||
create table t1 (a int primary key);
|
||||
cache index t1 in keycache2;
|
||||
insert t1 values (1),(2),(3),(4),(5),(6),(7),(8);
|
||||
# delete keycache2, t1 is reassigned to default
|
||||
set global keycache2.key_buffer_size=0;
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
# Test to set up a too small size for a key cache (bug #2064)
|
||||
set global keycache3.key_buffer_size=100;
|
||||
@ -216,6 +219,7 @@ set global key_cache_block_size= @my_key_cache_block_size;
|
||||
# Bug#10473 - Can't set 'key_buffer_size' system variable to ZERO
|
||||
# (One cannot drop the default key cache.)
|
||||
#
|
||||
--error ER_WARN_CANT_DROP_DEFAULT_KEYCACHE
|
||||
set @@global.key_buffer_size=0;
|
||||
select @@global.key_buffer_size;
|
||||
|
||||
|
1
mysql-test/t/mysql-bug45236-master.opt
Normal file
1
mysql-test/t/mysql-bug45236-master.opt
Normal file
@ -0,0 +1 @@
|
||||
--loose-skip-safemalloc
|
@ -128,10 +128,10 @@ DROP DATABASE IF EXISTS `ó`;
|
||||
#
|
||||
--echo
|
||||
--echo iso88592
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQL --character-sets-dir=$CHARSETSDIR --default-character-set=auto test -e "SELECT @@character_set_client"
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQLADMIN --character-sets-dir=$CHARSETSDIR -uroot -S $MASTER_MYSOCK -P $MASTER_MYPORT --default-character-set=auto create ó
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQL_SHOW --character-sets-dir=$CHARSETSDIR --default-character-set=auto ó
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQL_CHECK --character-sets-dir=$CHARSETSDIR--default-character-set=auto "ó"
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQL --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=auto test -e "SELECT @@character_set_client"
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQLADMIN --character-sets-dir=$MYSQL_SHAREDIR/charsets -uroot -S $MASTER_MYSOCK -P $MASTER_MYPORT --default-character-set=auto create ó
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQL_SHOW --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=auto ó
|
||||
--exec LC_ALL=cs_CZ.iso88592 $MYSQL_CHECK --character-sets-dir=$MYSQL_SHAREDIR/charsets--default-character-set=auto "ó"
|
||||
|
||||
|
||||
# {"iso88597", "greek", my_cs_exact},
|
||||
@ -163,10 +163,10 @@ DROP DATABASE IF EXISTS `ó`;
|
||||
|
||||
--echo
|
||||
--echo koi8r
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQL --character-sets-dir=$CHARSETSDIR --default-character-set=auto test -e "SELECT @@character_set_client"
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQLADMIN --character-sets-dir=$CHARSETSDIR -uroot -S $MASTER_MYSOCK -P $MASTER_MYPORT --default-character-set=auto create ó
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQL_SHOW --character-sets-dir=$CHARSETSDIR --default-character-set=auto ó
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQL_CHECK --character-sets-dir=$CHARSETSDIR --default-character-set=auto "ó"
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQL --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=auto test -e "SELECT @@character_set_client"
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQLADMIN --character-sets-dir=$MYSQL_SHAREDIR/charsets -uroot -S $MASTER_MYSOCK -P $MASTER_MYPORT --default-character-set=auto create ó
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQL_SHOW --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=auto ó
|
||||
--exec LC_ALL=ru_RU.koi8r $MYSQL_CHECK --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=auto "ó"
|
||||
|
||||
|
||||
# {"Shift_JIS", "sjis", my_cs_exact},
|
||||
|
8
mysql-test/t/mysqld--help-notwin.test
Normal file
8
mysql-test/t/mysqld--help-notwin.test
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# mysqld --help
|
||||
#
|
||||
--source include/not_embedded.inc
|
||||
--source include/not_windows.inc
|
||||
|
||||
--source include/mysqld--help.inc
|
||||
|
8
mysql-test/t/mysqld--help-win.test
Normal file
8
mysql-test/t/mysqld--help-win.test
Normal file
@ -0,0 +1,8 @@
|
||||
#
|
||||
# mysqld --help
|
||||
#
|
||||
--source include/not_embedded.inc
|
||||
--source include/windows.inc
|
||||
|
||||
--source include/mysqld--help.inc
|
||||
|
@ -168,7 +168,7 @@ drop database mysqldump_test_db;
|
||||
|
||||
CREATE TABLE t1 (a CHAR(10));
|
||||
INSERT INTO t1 VALUES (_latin1 '<27><><EFBFBD><EFBFBD>');
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments test t1
|
||||
|
||||
--echo #
|
||||
--echo # Bug#8063 make test mysqldump [ fail ]
|
||||
@ -178,10 +178,10 @@ INSERT INTO t1 VALUES (_latin1 '
|
||||
--echo # checking that "mysqldump" is compiled with "latin1"
|
||||
--echo #
|
||||
|
||||
#--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1
|
||||
#--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --compatible=mysql323 test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --compatible=mysql323 --default-character-set=cp850 test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --default-character-set=cp850 --compatible=mysql323 test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --default-character-set=utf8 --compatible=mysql323 test t1
|
||||
DROP TABLE t1;
|
||||
|
||||
--echo #
|
||||
@ -1673,14 +1673,14 @@ drop database db42635;
|
||||
|
||||
SET NAMES utf8;
|
||||
CREATE TABLE `straße` ( f1 INT );
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=latin1 --compatible=mysql323 test
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --default-character-set=utf8 --compatible=mysql323 test
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --default-character-set=latin1 --compatible=mysql323 test
|
||||
DROP TABLE `straße`;
|
||||
|
||||
CREATE TABLE `כדשגכחךלדגכחשךדגחכךלדגכ` ( f1 INT );
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=utf8 --compatible=mysql323 test
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --default-character-set=utf8 --compatible=mysql323 test
|
||||
--error 2
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --skip-comments --default-character-set=latin1 --compatible=mysql323 test
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --skip-comments --default-character-set=latin1 --compatible=mysql323 test
|
||||
DROP TABLE `כדשגכחךלדגכחשךדגחכךלדגכ`;
|
||||
SET NAMES latin1;
|
||||
|
||||
@ -1837,7 +1837,7 @@ set names latin1;
|
||||
--echo
|
||||
--echo # Dump mysqldump_test_db to bug30027.sql.
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --default-character-set=latin1 --databases mysqldump_test_db > $MYSQLTEST_VARDIR/tmp/bug30027.sql
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=latin1 --databases mysqldump_test_db > $MYSQLTEST_VARDIR/tmp/bug30027.sql
|
||||
|
||||
--echo
|
||||
--echo # Drop mysqldump_test_db.
|
||||
@ -1923,7 +1923,7 @@ WHERE table_schema = 'mysqldump_test_db' AND table_name = 'v1';
|
||||
--echo
|
||||
|
||||
--echo ---> Dumping mysqldump_test_db to bug30217.sql
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --databases mysqldump_test_db > $MYSQLTEST_VARDIR/tmp/bug30217.sql
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --databases mysqldump_test_db > $MYSQLTEST_VARDIR/tmp/bug30217.sql
|
||||
|
||||
--echo
|
||||
|
||||
@ -2079,7 +2079,7 @@ INSERT INTO t1 VALUES (1, 'ABC-АБВ', 'DEF-ÂÃÄ'), (2, NULL, NULL);
|
||||
|
||||
--echo # default '--default-charset' (binary):
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--echo ##################################################
|
||||
--cat_file $file
|
||||
--echo ##################################################
|
||||
@ -2092,7 +2092,7 @@ SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
|
||||
|
||||
--echo # utf8:
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --default-character-set=utf8 --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=utf8 --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--echo ##################################################
|
||||
--cat_file $file
|
||||
--echo ##################################################
|
||||
@ -2105,7 +2105,7 @@ SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
|
||||
|
||||
--echo # latin1 (data corruption is expected):
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --default-character-set=latin1 --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=latin1 --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--echo ##################################################
|
||||
--cat_file $file
|
||||
--echo ##################################################
|
||||
@ -2118,7 +2118,7 @@ SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
|
||||
|
||||
--echo # koi8r (data corruption is expected):
|
||||
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$CHARSETSDIR --default-character-set=koi8r --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--exec $MYSQL_DUMP --character-sets-dir=$MYSQL_SHAREDIR/charsets --default-character-set=koi8r --tab=$MYSQLTEST_VARDIR/tmp/ test t1
|
||||
--echo ##################################################
|
||||
--cat_file $file
|
||||
--echo ##################################################
|
||||
|
@ -9,7 +9,7 @@ DROP TABLE IF EXISTS t1, t2, v, x;
|
||||
--echo # Verifing that reads/writes use the key cache correctly
|
||||
SELECT @org_key_cache_buffer_size:= @@global.default.key_buffer_size;
|
||||
--echo # Minimize default key cache (almost disabled).
|
||||
SET @@global.default.key_buffer_size = 1;
|
||||
SET @@global.default.key_buffer_size = 4096;
|
||||
CREATE TABLE t1 (
|
||||
a INT,
|
||||
b INT,
|
||||
|
@ -9,10 +9,6 @@ show profile all;
|
||||
show session variables like 'profil%';
|
||||
select @@profiling;
|
||||
|
||||
# setting global variable is an error
|
||||
--error ER_LOCAL_VARIABLE
|
||||
set global profiling = ON;
|
||||
|
||||
# But size is okay
|
||||
set @start_value= @@global.profiling_history_size;
|
||||
set global profiling_history_size=100;
|
||||
|
@ -940,9 +940,9 @@ set global query_cache_size=0;
|
||||
create table t1 (a int);
|
||||
insert into t1 values (1),(2),(3);
|
||||
set GLOBAL query_cache_type=1;
|
||||
set GLOBAL query_cache_limit=10000;
|
||||
set GLOBAL query_cache_limit=10240;
|
||||
set GLOBAL query_cache_min_res_unit=0;
|
||||
set GLOBAL query_cache_size= 100000;
|
||||
set GLOBAL query_cache_size= 102400;
|
||||
|
||||
# default_week_format
|
||||
reset query cache;
|
||||
@ -1010,7 +1010,7 @@ set GLOBAL query_cache_size= default;
|
||||
# Bug#28897 UUID() returns non-unique values when query cache is enabled
|
||||
#
|
||||
|
||||
set GLOBAL query_cache_size=1000000;
|
||||
set GLOBAL query_cache_size=1024000;
|
||||
|
||||
create table t1 (a char);
|
||||
insert into t1 values ('c');
|
||||
@ -1179,7 +1179,7 @@ SET GLOBAL query_cache_size= default;
|
||||
--echo #
|
||||
--echo # Bug#25132 disabled query cache: Qcache_free_blocks = 1
|
||||
--echo #
|
||||
set global query_cache_size=100000;
|
||||
set global query_cache_size=102400;
|
||||
set global query_cache_size=0;
|
||||
set global query_cache_type=0;
|
||||
show status like 'Qcache_free_blocks';
|
||||
|
@ -6,7 +6,7 @@
|
||||
drop table if exists t1;
|
||||
--enable_warnings
|
||||
|
||||
SET SQL_SAFE_UPDATES=1,SQL_SELECT_LIMIT=4, SQL_MAX_JOIN_SIZE=9;
|
||||
SET SQL_SAFE_UPDATES=1,SQL_SELECT_LIMIT=4, MAX_JOIN_SIZE=9;
|
||||
create table t1 (a int auto_increment primary key, b char(20));
|
||||
insert into t1 values(1,"test");
|
||||
SELECT SQL_BUFFER_RESULT * from t1;
|
||||
@ -85,6 +85,6 @@ set local max_join_size=1;
|
||||
select * from (select 1 union select 2 union select 3) x;
|
||||
drop table t1;
|
||||
|
||||
SET SQL_SAFE_UPDATES=0,SQL_SELECT_LIMIT=DEFAULT, SQL_MAX_JOIN_SIZE=DEFAULT;
|
||||
SET SQL_SAFE_UPDATES=0,SQL_SELECT_LIMIT=DEFAULT, MAX_JOIN_SIZE=DEFAULT;
|
||||
|
||||
# End of 4.1 tests
|
||||
|
@ -903,7 +903,7 @@ CREATE TABLE t1(
|
||||
--echo
|
||||
--echo ---> Dumping mysqltest1 to outfile1
|
||||
|
||||
--exec $MYSQL_DUMP --default-character-set=latin1 --character-sets-dir=$CHARSETSDIR --databases mysqltest1 > $outfile1
|
||||
--exec $MYSQL_DUMP --default-character-set=latin1 --character-sets-dir=$MYSQL_SHAREDIR/charsets --databases mysqltest1 > $outfile1
|
||||
|
||||
# - Clean mysqltest1;
|
||||
|
||||
|
@ -3748,7 +3748,7 @@ begin
|
||||
end|
|
||||
|
||||
set @qcs1 = @@query_cache_size|
|
||||
set global query_cache_size = 100000|
|
||||
set global query_cache_size = 102400|
|
||||
set @x = 1|
|
||||
insert into t1 values ("qc", 42)|
|
||||
select bug9902() from t1|
|
||||
@ -8204,14 +8204,13 @@ DROP FUNCTION f1;
|
||||
drop procedure if exists p;
|
||||
--enable_warnings
|
||||
set @old_mode= @@sql_mode;
|
||||
set @@sql_mode= pow(2,32)-1;
|
||||
set @@sql_mode= cast(pow(2,32)-1 as unsigned integer);
|
||||
select @@sql_mode into @full_mode;
|
||||
create procedure p() begin end;
|
||||
call p();
|
||||
select @@sql_mode;
|
||||
set @@sql_mode= @old_mode;
|
||||
# Rename SQL modes that differ in name between the server and the table definition.
|
||||
select replace(@full_mode, '?', 'NOT_USED') into @full_mode;
|
||||
select replace(@full_mode, ',,,', ',NOT_USED,') into @full_mode;
|
||||
select replace(@full_mode, 'ALLOW_INVALID_DATES', 'INVALID_DATES') into @full_mode;
|
||||
select name from mysql.proc where name = 'p' and sql_mode = @full_mode;
|
||||
drop procedure p;
|
||||
|
@ -132,7 +132,7 @@ drop user mysqltest_1@localhost;
|
||||
select @@session.max_user_connections, @@global.max_user_connections;
|
||||
# Local max_user_connections variable can't be set directly
|
||||
# since this limit is per-account
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
--error ER_VARIABLE_IS_READONLY
|
||||
set session max_user_connections= 2;
|
||||
# But it is ok to set global max_user_connections
|
||||
set global max_user_connections= 2;
|
||||
|
@ -122,8 +122,6 @@ select coercibility(@v1),coercibility(@v2),coercibility(@v3),coercibility(@v4);
|
||||
#
|
||||
--error 1064
|
||||
set session @honk=99;
|
||||
--error 1382
|
||||
set one_shot @honk=99;
|
||||
|
||||
#
|
||||
# Bug #10724 @@local not preserved in column name of select
|
||||
|
@ -33,7 +33,7 @@ set @my_query_cache_type =@@global.query_cache_type;
|
||||
set @my_rpl_recovery_rank =@@global.rpl_recovery_rank;
|
||||
set @my_server_id =@@global.server_id;
|
||||
set @my_slow_launch_time =@@global.slow_launch_time;
|
||||
set @my_storage_engine =@@global.storage_engine;
|
||||
set @my_storage_engine =@@global.default_storage_engine;
|
||||
set @my_thread_cache_size =@@global.thread_cache_size;
|
||||
set @my_max_allowed_packet =@@global.max_allowed_packet;
|
||||
set @my_join_buffer_size =@@global.join_buffer_size;
|
||||
@ -132,12 +132,12 @@ set global timed_mutexes=0;
|
||||
show variables like 'timed_mutexes';
|
||||
select * from information_schema.session_variables where variable_name like 'timed_mutexes';
|
||||
|
||||
set storage_engine=MYISAM, storage_engine="HEAP", global storage_engine="MERGE";
|
||||
show local variables like 'storage_engine';
|
||||
select * from information_schema.session_variables where variable_name like 'storage_engine';
|
||||
show global variables like 'storage_engine';
|
||||
select * from information_schema.global_variables where variable_name like 'storage_engine';
|
||||
set GLOBAL query_cache_size=100000;
|
||||
set default_storage_engine=MYISAM, default_storage_engine="HEAP", global default_storage_engine="MERGE";
|
||||
show local variables like 'default_storage_engine';
|
||||
select * from information_schema.session_variables where variable_name like 'default_storage_engine';
|
||||
show global variables like 'default_storage_engine';
|
||||
select * from information_schema.global_variables where variable_name like 'default_storage_engine';
|
||||
set GLOBAL query_cache_size=102400;
|
||||
|
||||
set GLOBAL myisam_max_sort_file_size=2000000;
|
||||
show global variables like 'myisam_max_sort_file_size';
|
||||
@ -213,7 +213,6 @@ set @@query_alloc_block_size=1024*17+2;
|
||||
set @@query_prealloc_size=1024*18-1023;
|
||||
set @@transaction_alloc_block_size=1024*20-1;
|
||||
set @@transaction_prealloc_size=1024*21-1;
|
||||
select @@query_alloc_block_size;
|
||||
--echo ==+ Check manipulated values ==+
|
||||
SHOW VARIABLES WHERE variable_name IN ('range_alloc_block_size',
|
||||
'query_alloc_block_size', 'query_prealloc_size',
|
||||
@ -250,14 +249,12 @@ set unknown_variable=1;
|
||||
--error ER_WRONG_TYPE_FOR_VAR
|
||||
set max_join_size="hello";
|
||||
--error ER_UNKNOWN_STORAGE_ENGINE
|
||||
set storage_engine=UNKNOWN_TABLE_TYPE;
|
||||
set default_storage_engine=UNKNOWN_TABLE_TYPE;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set storage_engine=MERGE, big_tables=2;
|
||||
show local variables like 'storage_engine';
|
||||
set default_storage_engine=MERGE, big_tables=2;
|
||||
show local variables like 'default_storage_engine';
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set SESSION query_cache_size=10000;
|
||||
--error ER_NO_DEFAULT
|
||||
set GLOBAL storage_engine=DEFAULT;
|
||||
--error ER_UNKNOWN_CHARACTER_SET
|
||||
set character_set_client=UNKNOWN_CHARACTER_SET;
|
||||
--error ER_UNKNOWN_COLLATION
|
||||
@ -266,18 +263,12 @@ set collation_connection=UNKNOWN_COLLATION;
|
||||
set character_set_client=NULL;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
set collation_connection=NULL;
|
||||
--error ER_LOCAL_VARIABLE
|
||||
set global autocommit=1;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@global.timestamp;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
set @@version='';
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set @@concurrent_insert=1;
|
||||
--error ER_LOCAL_VARIABLE
|
||||
set @@global.sql_auto_is_null=1;
|
||||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
|
||||
select @@global.sql_auto_is_null;
|
||||
--error ER_GLOBAL_VARIABLE
|
||||
set myisam_max_sort_file_size=100;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
@ -357,8 +348,6 @@ set sql_log_bin=1;
|
||||
set sql_log_off=1;
|
||||
set sql_log_update=1;
|
||||
set sql_low_priority_updates=1;
|
||||
set sql_max_join_size=200;
|
||||
select @@sql_max_join_size,@@max_join_size;
|
||||
set sql_quote_show_create=1;
|
||||
set sql_safe_updates=1;
|
||||
set sql_select_limit=1;
|
||||
@ -366,7 +355,7 @@ set sql_select_limit=1;
|
||||
set sql_select_limit=default;
|
||||
set sql_warnings=1;
|
||||
set global table_open_cache=100;
|
||||
set storage_engine=myisam;
|
||||
set default_storage_engine=myisam;
|
||||
set global thread_cache_size=100;
|
||||
set timestamp=1, timestamp=default;
|
||||
set tmp_table_size=100;
|
||||
@ -832,7 +821,7 @@ set global query_cache_type =@my_query_cache_type;
|
||||
set global rpl_recovery_rank =@my_rpl_recovery_rank;
|
||||
set global server_id =@my_server_id;
|
||||
set global slow_launch_time =@my_slow_launch_time;
|
||||
set global storage_engine =@my_storage_engine;
|
||||
set global default_storage_engine =@my_storage_engine;
|
||||
set global thread_cache_size =@my_thread_cache_size;
|
||||
set global max_allowed_packet =@my_max_allowed_packet;
|
||||
set global join_buffer_size =@my_join_buffer_size;
|
||||
@ -1187,7 +1176,7 @@ SET GLOBAL auto_increment_offset=0;
|
||||
#
|
||||
|
||||
--enable_metadata
|
||||
select @@storage_engine;
|
||||
select @@default_storage_engine;
|
||||
--disable_metadata
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user