1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-02 09:41:40 +03:00

Manual merge of WL#4738 from mysql-next-mr:

- backported code that handles %f/%g arguments in 
my_vsnprintf.c from 6.0 
- backported %f/%g tests in unittest/mysys/my_vsnprintf-t.c 
from 6.0 
- replaced snprintf("%g") in sql/set_var.cc with my_gcvt() 
- removed unnecessary "--replace-result"s for Windows in 
mysql-test/suite/sys_vars/t/long_query_time_basic.test 
- some test results adjustments
This commit is contained in:
Alexey Kopytov
2009-12-28 15:54:16 +03:00
753 changed files with 16228 additions and 15036 deletions

View File

@@ -6,12 +6,8 @@ Grants for mysqltest_1@localhost
GRANT USAGE ON *.* TO 'mysqltest_1'@'localhost'
**** Variable SQL_LOG_BIN ****
[root]
set global sql_log_bin = 1;
ERROR HY000: Variable 'sql_log_bin' is a SESSION variable and can't be used with SET GLOBAL
set session sql_log_bin = 1;
[plain]
set global sql_log_bin = 1;
ERROR HY000: Variable 'sql_log_bin' is a SESSION variable and can't be used with SET GLOBAL
set session sql_log_bin = 1;
ERROR 42000: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
**** Variable BINLOG_FORMAT ****

View File

@@ -22,14 +22,10 @@ connect (root,localhost,root,,test);
connection root;
--echo [root]
--error ER_LOCAL_VARIABLE
set global sql_log_bin = 1;
set session sql_log_bin = 1;
connection plain;
--echo [plain]
--error ER_LOCAL_VARIABLE
set global sql_log_bin = 1;
--error ER_SPECIFIC_ACCESS_DENIED_ERROR
set session sql_log_bin = 1;

View File

@@ -173,19 +173,19 @@ select @@innodb_file_format;
@@innodb_file_format
Barracuda
set global innodb_file_format=`2`;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of '2'
set global innodb_file_format=`-1`;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of '-1'
set global innodb_file_format=`Antelope`;
set global innodb_file_format=`Barracuda`;
set global innodb_file_format=`Cheetah`;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'Cheetah'
set global innodb_file_format=`abc`;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'abc'
set global innodb_file_format=`1a`;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of '1a'
set global innodb_file_format=``;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of ''
set global innodb_file_per_table = on;
set global innodb_file_format = `1`;
set innodb_strict_mode = off;

View File

@@ -15,10 +15,10 @@ select @@innodb_file_format_check;
@@innodb_file_format_check
Antelope
set global innodb_file_format_check = cheetah;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format_check' can't be set to the value of 'cheetah'
set global innodb_file_format_check = Bear;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format_check' can't be set to the value of 'Bear'
set global innodb_file_format_check = on;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format_check' can't be set to the value of 'ON'
set global innodb_file_format_check = off;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format_check' can't be set to the value of 'off'

View File

@@ -8,7 +8,7 @@ Antelope
set global innodb_file_format=antelope;
set global innodb_file_format=barracuda;
set global innodb_file_format=cheetah;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'cheetah'
select @@innodb_file_format;
@@innodb_file_format
Barracuda
@@ -17,16 +17,16 @@ select @@innodb_file_format;
@@innodb_file_format
Antelope
set global innodb_file_format=on;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'ON'
set global innodb_file_format=off;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'off'
select @@innodb_file_format;
@@innodb_file_format
Antelope
set global innodb_file_format_check=antelope;
set global innodb_file_format_check=barracuda;
set global innodb_file_format_check=cheetah;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format_check' can't be set to the value of 'cheetah'
select @@innodb_file_format_check;
@@innodb_file_format_check
Barracuda
@@ -35,9 +35,9 @@ select @@innodb_file_format_check;
@@innodb_file_format_check
Barracuda
set global innodb_file_format=on;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'ON'
set global innodb_file_format=off;
ERROR HY000: Incorrect arguments to SET
ERROR 42000: Variable 'innodb_file_format' can't be set to the value of 'off'
select @@innodb_file_format_check;
@@innodb_file_format_check
Barracuda

View File

@@ -142,19 +142,19 @@ set global innodb_file_format=`0`;
select @@innodb_file_format;
set global innodb_file_format=`1`;
select @@innodb_file_format;
-- error ER_WRONG_ARGUMENTS
-- error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=`2`;
-- error ER_WRONG_ARGUMENTS
-- error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=`-1`;
set global innodb_file_format=`Antelope`;
set global innodb_file_format=`Barracuda`;
-- error ER_WRONG_ARGUMENTS
-- error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=`Cheetah`;
-- error ER_WRONG_ARGUMENTS
-- error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=`abc`;
-- error ER_WRONG_ARGUMENTS
-- error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=`1a`;
-- error ER_WRONG_ARGUMENTS
-- error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=``;
#test strict mode.

View File

@@ -31,15 +31,15 @@ select @@innodb_file_format_check;
# Following are negative tests, all should fail.
--disable_warnings
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format_check = cheetah;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format_check = Bear;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format_check = on;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format_check = off;
--enable_warnings

View File

@@ -9,26 +9,26 @@ select @@innodb_file_format;
select @@innodb_file_format_check;
set global innodb_file_format=antelope;
set global innodb_file_format=barracuda;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=cheetah;
select @@innodb_file_format;
set global innodb_file_format=default;
select @@innodb_file_format;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=on;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=off;
select @@innodb_file_format;
set global innodb_file_format_check=antelope;
set global innodb_file_format_check=barracuda;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format_check=cheetah;
select @@innodb_file_format_check;
set global innodb_file_format_check=default;
select @@innodb_file_format_check;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=on;
--error ER_WRONG_ARGUMENTS
--error ER_WRONG_VALUE_FOR_VAR
set global innodb_file_format=off;
select @@innodb_file_format_check;

View File

@@ -18,11 +18,15 @@ Variable_name Value
ndb_autoincrement_prefetch_sz #
ndb_cache_check_time #
ndb_connectstring #
ndb_distribution #
ndb_extra_logging #
ndb_force_send #
ndb_index_stat_cache_entries #
ndb_index_stat_enable #
ndb_index_stat_update_freq #
ndb_mgmd_host #
ndb_nodeid #
ndb_optimized_node_selection #
ndb_report_thresh_binlog_epoch_slip #
ndb_report_thresh_binlog_mem_usage #
ndb_use_copying_alter_table #

View File

@@ -14,7 +14,7 @@ ADD UNDOFILE 'undofile02.dat'
INITIAL_SIZE = 4M
ENGINE=XYZ;
Warnings:
Warning 1286 Unknown table engine 'XYZ'
Warning 1286 Unknown storage engine 'XYZ'
Warning 1478 Table storage engine 'MyISAM' does not support the create option 'TABLESPACE or LOGFILE GROUP'
CREATE TABLESPACE ts1
ADD DATAFILE 'datafile.dat'

View File

@@ -308,6 +308,7 @@ ENGINE = NDB;
DROP USER mysqltest_u1@localhost;
DROP USER mysqltest_u2@localhost;
DROP DATABASE mysqltest2;
# -----------------------------------------------------------------
# End 6.0 test

View File

@@ -462,6 +462,7 @@ ENGINE = NDB;
DROP USER mysqltest_u1@localhost;
DROP USER mysqltest_u2@localhost;
DROP DATABASE mysqltest2;
--echo
--echo # -----------------------------------------------------------------

View File

@@ -116,8 +116,7 @@ latin5
select @@character_set_server;
@@character_set_server
latin5
set one_shot max_join_size=10;
ERROR HY000: The 'SET ONE_SHOT' syntax is reserved for purposes internal to the MySQL server
set one_shot max_join_size=1000000;
set character_set_client=9999999;
ERROR 42000: Unknown character set: '9999999'
set collation_server=9999998;

View File

@@ -42,7 +42,7 @@ Variable_name Slave_heartbeat_period
Value 4.000
set @@global.slave_net_timeout= 3 /* must be a warning */;
Warnings:
Warning 1624 The currect value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
Warning 1624 The current value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
reset slave;
drop table if exists t1;
set @@global.slave_net_timeout= 10;

View File

@@ -38,7 +38,7 @@ RESET SLAVE;
*** Warning if updated slave_net_timeout < slave_heartbeat_timeout ***
SET @@global.slave_net_timeout=FLOOR(SLAVE_HEARTBEAT_TIMEOUT)-1;
Warnings:
Warning 1624 The currect value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
Warning 1624 The current value for master_heartbeat_period exceeds the new value of `slave_net_timeout' sec. A sensible value for the period should be less than the timeout.
SET @@global.slave_net_timeout=@restore_slave_net_timeout;
RESET SLAVE;

View File

@@ -113,7 +113,7 @@ a b
set global slave_exec_mode='IDEMPOTENT';
set global slave_exec_mode='STRICT';
set global slave_exec_mode='IDEMPOTENT,STRICT';
ERROR HY000: Ambiguous slave modes combination.
ERROR 42000: Variable 'slave_exec_mode' can't be set to the value of 'IDEMPOTENT,STRICT'
select @@global.slave_exec_mode /* must be STRICT */;
@@global.slave_exec_mode
STRICT

View File

@@ -17,6 +17,8 @@ reset slave;
set @my_max_binlog_size= @@global.max_binlog_size;
set global max_binlog_size=8192;
set global max_relay_log_size=8192-1;
Warnings:
Warning 1292 Truncated incorrect max_relay_log_size value: '8191'
select @@global.max_relay_log_size;
@@global.max_relay_log_size
4096

View File

@@ -17,6 +17,8 @@ reset slave;
set @my_max_binlog_size= @@global.max_binlog_size;
set global max_binlog_size=8192;
set global max_relay_log_size=8192-1;
Warnings:
Warning 1292 Truncated incorrect max_relay_log_size value: '8191'
select @@global.max_relay_log_size;
@@global.max_relay_log_size
4096

View File

@@ -23,7 +23,7 @@ binlog_format ROW
set global binlog_format=DEFAULT;
show global variables like "binlog_format%";
Variable_name Value
binlog_format MIXED
binlog_format STATEMENT
set global binlog_format=MIXED;
show global variables like "binlog_format%";
Variable_name Value

View File

@@ -6,7 +6,6 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
start slave;
==== Initialization ====
[on master]
SET @m_pseudo_thread_id= @@global.pseudo_thread_id;
SET @m_auto_increment_increment= @@global.auto_increment_increment;
SET @m_auto_increment_offset= @@global.auto_increment_offset;
SET @m_character_set_client= @@global.character_set_client;
@@ -16,7 +15,6 @@ SET @m_time_zone= @@global.time_zone;
SET @m_lc_time_names= @@global.lc_time_names;
SET @m_collation_database= @@global.collation_database;
[on slave]
SET @s_pseudo_thread_id= @@global.pseudo_thread_id;
SET @s_auto_increment_increment= @@global.auto_increment_increment;
SET @s_auto_increment_offset= @@global.auto_increment_offset;
SET @s_character_set_client= @@global.character_set_client;
@@ -25,7 +23,6 @@ SET @s_collation_server= @@global.collation_server;
SET @s_time_zone= @@global.time_zone;
SET @s_lc_time_names= @@global.lc_time_names;
SET @s_collation_database= @@global.collation_database;
SET @@global.pseudo_thread_id= 4711;
SET @@global.auto_increment_increment=19;
SET @@global.auto_increment_offset=4;
SET @@global.character_set_client='latin2';
@@ -505,7 +502,6 @@ DROP PROCEDURE proc;
DROP FUNCTION func;
DROP TRIGGER trig;
DROP TABLE tstmt, tproc, tfunc, ttrig, tprep, trigger_table;
SET @@global.pseudo_thread_id= @m_pseudo_thread_id;
SET @@global.auto_increment_increment= @m_auto_increment_increment;
SET @@global.auto_increment_offset= @m_auto_increment_offset;
SET @@global.character_set_client= @m_character_set_client;
@@ -515,7 +511,6 @@ SET @@global.time_zone= @m_time_zone;
SET @@global.lc_time_names= @m_lc_time_names;
SET @@global.collation_database= @m_collation_database;
[on slave]
SET @@global.pseudo_thread_id= @s_pseudo_thread_id;
SET @@global.auto_increment_increment= @s_auto_increment_increment;
SET @@global.auto_increment_offset= @s_auto_increment_offset;
SET @@global.character_set_client= @s_character_set_client;

View File

@@ -165,7 +165,7 @@ set global slave_exec_mode='IDEMPOTENT';
set global slave_exec_mode='STRICT';
# checking mutual exclusion for the options
--error ER_SLAVE_AMBIGOUS_EXEC_MODE
--error ER_WRONG_VALUE_FOR_VAR
set global slave_exec_mode='IDEMPOTENT,STRICT';
select @@global.slave_exec_mode /* must be STRICT */;

View File

@@ -1 +1 @@
--log_bin_trust_routine_creators=1
--log_bin_trust_function_creators=1

View File

@@ -1 +1 @@
--log_bin_trust_routine_creators=1
--log_bin_trust_function_creators=1

View File

@@ -63,7 +63,6 @@ source include/have_binlog_format_mixed_or_statement.inc;
--echo [on master]
connection master;
SET @m_pseudo_thread_id= @@global.pseudo_thread_id;
SET @m_auto_increment_increment= @@global.auto_increment_increment;
SET @m_auto_increment_offset= @@global.auto_increment_offset;
SET @m_character_set_client= @@global.character_set_client;
@@ -75,7 +74,6 @@ SET @m_collation_database= @@global.collation_database;
--echo [on slave]
connection slave;
SET @s_pseudo_thread_id= @@global.pseudo_thread_id;
SET @s_auto_increment_increment= @@global.auto_increment_increment;
SET @s_auto_increment_offset= @@global.auto_increment_offset;
SET @s_character_set_client= @@global.character_set_client;
@@ -85,7 +83,6 @@ SET @s_time_zone= @@global.time_zone;
SET @s_lc_time_names= @@global.lc_time_names;
SET @s_collation_database= @@global.collation_database;
SET @@global.pseudo_thread_id= 4711;
SET @@global.auto_increment_increment=19;
SET @@global.auto_increment_offset=4;
SET @@global.character_set_client='latin2';
@@ -612,7 +609,6 @@ DROP FUNCTION func;
DROP TRIGGER trig;
DROP TABLE tstmt, tproc, tfunc, ttrig, tprep, trigger_table;
SET @@global.pseudo_thread_id= @m_pseudo_thread_id;
SET @@global.auto_increment_increment= @m_auto_increment_increment;
SET @@global.auto_increment_offset= @m_auto_increment_offset;
SET @@global.character_set_client= @m_character_set_client;
@@ -624,7 +620,6 @@ SET @@global.collation_database= @m_collation_database;
--echo [on slave]
connection slave;
SET @@global.pseudo_thread_id= @s_pseudo_thread_id;
SET @@global.auto_increment_increment= @s_auto_increment_increment;
SET @@global.auto_increment_offset= @s_auto_increment_offset;
SET @@global.character_set_client= @s_character_set_client;

View File

@@ -924,4 +924,5 @@ DELETE FROM t1;
--- End test 5 key partition testing ---
--- Do Cleanup ---
DROP TABLE IF EXISTS t1;
set @@global.slave_exec_mode= DEFAULT;
drop table mysql.ndb_apply_status;

View File

@@ -924,4 +924,5 @@ DELETE FROM t1;
--- End test 5 key partition testing ---
--- Do Cleanup ---
DROP TABLE IF EXISTS t1;
set @@global.slave_exec_mode= DEFAULT;
drop table mysql.ndb_apply_status;

View File

@@ -31,5 +31,6 @@ CREATE TABLE mysql.ndb_apply_status
--source extra/rpl_tests/rpl_ndb_2multi_eng.test
set @@global.slave_exec_mode= DEFAULT;
--connection slave
drop table mysql.ndb_apply_status;

View File

@@ -30,5 +30,6 @@ CREATE TABLE mysql.ndb_apply_status
--source extra/rpl_tests/rpl_ndb_2multi_eng.test
set @@global.slave_exec_mode= DEFAULT;
--connection slave
drop table mysql.ndb_apply_status;

View File

@@ -1,3 +0,0 @@
Some of these tests allocate more than 4GB RAM.
So, assure that the machine on which the suite will be executed has more than 4GB RAM.

View File

@@ -115,7 +115,6 @@ SET @@session.bulk_insert_buffer_size = 42949672950;
SELECT @@session.bulk_insert_buffer_size;
SET @@session.bulk_insert_buffer_size = -2;
SELECT @@session.bulk_insert_buffer_size;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.bulk_insert_buffer_size = test;

View File

@@ -79,7 +79,6 @@ SET @@global.delayed_insert_limit = -1024;
SELECT @@global.delayed_insert_limit;
SET @@global.delayed_insert_limit = 42949672950;
SELECT @@global.delayed_insert_limit;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.delayed_insert_limit = 429496729.5;

View File

@@ -77,7 +77,6 @@ SET @@global.delayed_queue_size = -1024;
SELECT @@global.delayed_queue_size;
SET @@global.delayed_queue_size = 42949672950;
SELECT @@global.delayed_queue_size;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.delayed_queue_size = 429496729.5;

View File

@@ -45,40 +45,24 @@ SELECT @start_session_value;
# Display the DEFAULT value of join_buffer_size #
################################################################
SET @@global.join_buffer_size = 8200;
SET @@global.join_buffer_size = DEFAULT;
SELECT @@global.join_buffer_size;
SET @@session.join_buffer_size = 8200;
SET @@session.join_buffer_size = DEFAULT;
SELECT @@session.join_buffer_size;
--echo '#--------------------FN_DYNVARS_053_02-------------------------#'
###################################################################
# Check the DEFAULT value of join_buffer_size #
###################################################################
SET @@global.join_buffer_size = DEFAULT;
SELECT @@global.join_buffer_size = 131072;
SET @@session.join_buffer_size = DEFAULT;
SELECT @@session.join_buffer_size = 131072;
--echo '#--------------------FN_DYNVARS_053_03-------------------------#'
##########################################################################
# Change the value of join_buffer_size to a valid value for GLOBAL Scope #
##########################################################################
SET @@global.join_buffer_size = 8200;
SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
SELECT @@global.join_buffer_size;
SET @@global.join_buffer_size = 65536;
SELECT @@global.join_buffer_size;
SET @@global.join_buffer_size = 4294967295;
SELECT @@global.join_buffer_size;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--echo '#--------------------FN_DYNVARS_053_04-------------------------#'
###########################################################################
@@ -86,13 +70,11 @@ echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable
###########################################################################
SET @@session.join_buffer_size = 8200;
SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
SELECT @@session.join_buffer_size;
SET @@session.join_buffer_size = 65536;
SELECT @@session.join_buffer_size;
SET @@session.join_buffer_size = 4294967295;
SELECT @@session.join_buffer_size;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--echo '#------------------FN_DYNVARS_053_05-----------------------#'
############################################################
@@ -100,40 +82,38 @@ echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable
############################################################
SET @@global.join_buffer_size = 0;
SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
SELECT @@global.join_buffer_size;
SET @@global.join_buffer_size = -1024;
SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
SET @@global.join_buffer_size = 8199;
SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
SELECT @@global.join_buffer_size;
SET @@global.join_buffer_size = 127;
SELECT @@global.join_buffer_size;
SET @@global.join_buffer_size = 42949672951;
SELECT @@global.join_buffer_size;
--Error ER_PARSE_ERROR
SET @@global.join_buffer_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.join_buffer_size = 65530.34;
SELECT @@global.join_buffer_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.join_buffer_size = test;
SELECT @@global.join_buffer_size;
SET @@session.join_buffer_size = 0;
SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
SET @@session.join_buffer_size = -2;
SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
SET @@session.join_buffer_size = 8199;
SELECT @@session.join_buffer_size=8200 OR @@session.join_buffer_size= 8228;
SELECT @@session.join_buffer_size;
SET @@session.join_buffer_size = -1024;
SELECT @@session.join_buffer_size;
SET @@session.join_buffer_size = 127;
SELECT @@session.join_buffer_size;
SET @@session.join_buffer_size = 42949672951;
SELECT @@session.join_buffer_size;
--Error ER_PARSE_ERROR
SET @@session.join_buffer_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.join_buffer_size = 65530.34;
SELECT @@session.join_buffer_size;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.join_buffer_size = test;
SELECT @@session.join_buffer_size;
--echo '#------------------FN_DYNVARS_053_06-----------------------#'
####################################################################
# Check if the value in GLOBAL Table matches value in variable #
@@ -160,11 +140,7 @@ WHERE VARIABLE_NAME='join_buffer_size';
####################################################################
SET @@global.join_buffer_size = TRUE;
SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
SET @@global.join_buffer_size = FALSE;
SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
--echo 'Bug: Errors are not coming on assigning TRUE/FALSE to variable';
--echo '#---------------------FN_DYNVARS_001_09----------------------#'
#################################################################################
@@ -174,7 +150,6 @@ SELECT @@global.join_buffer_size=8200 OR @@global.join_buffer_size= 8228;
SET @@global.join_buffer_size = 10;
SELECT @@join_buffer_size = @@global.join_buffer_size;
--echo '#---------------------FN_DYNVARS_001_10----------------------#'
########################################################################################################
# Check if accessing variable with SESSION,LOCAL and without SCOPE points to same session variable #
@@ -184,14 +159,13 @@ SET @@join_buffer_size = 100;
SELECT @@join_buffer_size = @@local.join_buffer_size;
SELECT @@local.join_buffer_size = @@session.join_buffer_size;
--echo '#---------------------FN_DYNVARS_001_11----------------------#'
##############################################################################
# Check if join_buffer_size can be accessed with and without @@ sign #
##############################################################################
SET join_buffer_size = 1;
SELECT @@join_buffer_size=8200 OR @@join_buffer_size= 8228;
SELECT @@join_buffer_size;
--Error ER_UNKNOWN_TABLE
SELECT local.join_buffer_size;
--Error ER_UNKNOWN_TABLE
@@ -199,7 +173,6 @@ SELECT session.join_buffer_size;
--Error ER_BAD_FIELD_ERROR
SELECT join_buffer_size = @@session.join_buffer_size;
####################################
# Restore initial value #
####################################

View File

@@ -43,10 +43,7 @@ SELECT @start_value;
# Display the DEFAULT value of key_cache_age_threshold #
################################################################################
SET @@global.key_cache_age_threshold = 99;
--Error ER_NO_DEFAULT
SET @@global.key_cache_age_threshold = DEFAULT;
--echo 'Bug# 34878: This variable has default value according to documentation';
SELECT @@global.key_cache_age_threshold;
@@ -72,8 +69,6 @@ SET @@global.key_cache_age_threshold = 1800;
SELECT @@global.key_cache_age_threshold;
SET @@global.key_cache_age_threshold = 65535;
SELECT @@global.key_cache_age_threshold;
--echo 'Bug# 34877 : Invalid Values are coming in variable on assigning valid values and Out Of Memory Warnings are coming';
--echo '#--------------------FN_DYNVARS_056_04-------------------------#'
###########################################################################
@@ -92,8 +87,6 @@ SELECT @@global.key_cache_age_threshold;
SET @@global.key_cache_age_threshold = 99;
SELECT @@global.key_cache_age_threshold;
echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.key_cache_age_threshold = ON;
SELECT @@global.key_cache_age_threshold;

View File

@@ -109,8 +109,8 @@ SET @@global.log_warnings = 100000000000;
SELECT @@global.log_warnings;
SET @@global.log_warnings = -1024;
SELECT @@global.log_warnings;
--Error ER_PARSE_ERROR
SET @@global.log_warnings = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.log_warnings = 65530.34;
SELECT @@global.log_warnings;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.log_warnings = test;
@@ -120,9 +120,8 @@ SET @@session.log_warnings = 100000000000;
SELECT @@session.log_warnings;
SET @@session.log_warnings = -2;
SELECT @@session.log_warnings;
--Error ER_PARSE_ERROR
SET @@session.log_warnings = 65530.34.;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.log_warnings = 65530.34;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.log_warnings = test;

View File

@@ -46,7 +46,6 @@ SELECT @start_value;
SET @@global.max_connect_errors = 5000;
SET @@global.max_connect_errors = DEFAULT;
SELECT @@global.max_connect_errors;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
--echo '#---------------------FN_DYNVARS_073_02-------------------------#'
###############################################
@@ -71,7 +70,6 @@ SET @@global.max_connect_errors = 1;
SELECT @@global.max_connect_errors;
SET @@global.max_connect_errors = 2;
SELECT @@global.max_connect_errors;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
--echo '#--------------------FN_DYNVARS_073_04-------------------------#'
@@ -93,8 +91,6 @@ SELECT @@global.max_connect_errors;
SET @@global.max_connect_errors = 4294967296;
SELECT @@global.max_connect_errors;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_connect_errors = ON;
SELECT @@global.max_connect_errors;

View File

@@ -110,8 +110,8 @@ SET @@global.max_seeks_for_key = -1024;
SELECT @@global.max_seeks_for_key;
SET @@global.max_seeks_for_key = 4294967296;
SELECT @@global.max_seeks_for_key;
--Error ER_PARSE_ERROR
SET @@global.max_seeks_for_key = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_seeks_for_key = 65530.34;
SELECT @@global.max_seeks_for_key;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_seeks_for_key = test;
@@ -121,11 +121,10 @@ SET @@session.max_seeks_for_key = 0;
SELECT @@session.max_seeks_for_key;
SET @@session.max_seeks_for_key = -2;
SELECT @@session.max_seeks_for_key;
--Error ER_PARSE_ERROR
SET @@session.max_seeks_for_key = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.max_seeks_for_key = 65530.34;
SET @@session.max_seeks_for_key = 4294967296;
SELECT @@session.max_seeks_for_key;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.max_seeks_for_key = test;

View File

@@ -121,8 +121,8 @@ SET @@global.max_tmp_tables = -1;
SELECT @@global.max_tmp_tables;
SET @@global.max_tmp_tables = 429496729500;
SELECT @@global.max_tmp_tables;
--Error ER_PARSE_ERROR
SET @@global.max_tmp_tables = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_tmp_tables = 65530.34;
SELECT @@global.max_tmp_tables;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_tmp_tables = test;
@@ -136,8 +136,8 @@ SET @@session.max_tmp_tables = 429496729500;
SELECT @@session.max_tmp_tables;
SET @@session.max_tmp_tables = -001;
SELECT @@session.max_tmp_tables;
--Error ER_PARSE_ERROR
SET @@session.max_tmp_tables = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.max_tmp_tables = 65530.34;
SET @@session.max_tmp_tables = 10737418241;
SELECT @@session.max_tmp_tables;
--Error ER_WRONG_TYPE_FOR_VAR

View File

@@ -88,8 +88,8 @@ SET @@global.max_write_lock_count = -1;
SELECT @@global.max_write_lock_count;
SET @@global.max_write_lock_count = 429496729500;
SELECT @@global.max_write_lock_count;
--Error ER_PARSE_ERROR
SET @@global.max_write_lock_count = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_write_lock_count = 65530.34;
SELECT @@global.max_write_lock_count;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.max_write_lock_count = test;

View File

@@ -116,8 +116,8 @@ SET @@global.min_examined_row_limit = -1024;
SELECT @@global.min_examined_row_limit;
SET @@global.min_examined_row_limit = 429496729500;
SELECT @@global.min_examined_row_limit;
--Error ER_PARSE_ERROR
SET @@global.min_examined_row_limit = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.min_examined_row_limit = 65530.34;
SELECT @@global.min_examined_row_limit;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.min_examined_row_limit = test;
@@ -127,11 +127,10 @@ SET @@session.min_examined_row_limit = 4294967296;
SELECT @@session.min_examined_row_limit;
SET @@session.min_examined_row_limit = -1;
SELECT @@session.min_examined_row_limit;
--Error ER_PARSE_ERROR
SET @@session.min_examined_row_limit = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.min_examined_row_limit = 65530.34;
SET @@session.min_examined_row_limit = 4294967295021;
SELECT @@session.min_examined_row_limit;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.min_examined_row_limit = test;

View File

@@ -47,8 +47,6 @@ SET @@global.myisam_max_sort_file_size = 500000;
SET @@global.myisam_max_sort_file_size = DEFAULT;
SELECT @@global.myisam_max_sort_file_size;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
--echo '#--------------------FN_DYNVARS_094_02-------------------------#'
###################################################################
# Check the DEFAULT value of myisam_max_sort_file_size #
@@ -102,8 +100,8 @@ SET @@global.myisam_max_sort_file_size = -2147483648;
SELECT @@global.myisam_max_sort_file_size;
SET @@global.myisam_max_sort_file_size = -2147483649;
SELECT @@global.myisam_max_sort_file_size;
--Error ER_PARSE_ERROR
SET @@global.myisam_max_sort_file_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.myisam_max_sort_file_size = 65530.34;
SELECT @@global.myisam_max_sort_file_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.myisam_max_sort_file_size = 2147483649.56;
@@ -111,9 +109,6 @@ SELECT @@global.myisam_max_sort_file_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.myisam_max_sort_file_size = 1G;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--echo '#------------------FN_DYNVARS_094_06-----------------------#'
####################################################################
# Check if the value in GLOBAL Table matches value in variable #

View File

@@ -114,8 +114,8 @@ SET @@global.myisam_repair_threads = 429496729533;
SELECT @@global.myisam_repair_threads ;
--Error ER_PARSE_ERROR
SET @@global.myisam_repair_threads = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.myisam_repair_threads = 65530.34;
SELECT @@global.myisam_repair_threads ;
--Error ER_WRONG_TYPE_FOR_VAR
@@ -141,9 +141,8 @@ SELECT @@session.myisam_repair_threads ;
SET @@session.myisam_repair_threads = -2;
SELECT @@session.myisam_repair_threads ;
--Error ER_PARSE_ERROR
SET @@session.myisam_repair_threads = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.myisam_repair_threads = 65530.34;
SELECT @@session.myisam_repair_threads ;

View File

@@ -113,8 +113,8 @@ SET @@global.myisam_sort_buffer_size = 429496729533;
SELECT @@global.myisam_sort_buffer_size ;
--Error ER_PARSE_ERROR
SET @@global.myisam_sort_buffer_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.myisam_sort_buffer_size = 65530.34;
SELECT @@global.myisam_sort_buffer_size ;
--Error ER_WRONG_TYPE_FOR_VAR
@@ -140,9 +140,8 @@ SELECT @@session.myisam_sort_buffer_size ;
SET @@session.myisam_sort_buffer_size = -2;
SELECT @@session.myisam_sort_buffer_size ;
--Error ER_PARSE_ERROR
SET @@session.myisam_sort_buffer_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.myisam_sort_buffer_size = 65530.34;
SELECT @@session.myisam_sort_buffer_size ;

View File

@@ -111,8 +111,8 @@ SET @@global.net_retry_count = 4294967296;
SELECT @@global.net_retry_count;
SET @@global.net_retry_count = 429496729500;
SELECT @@global.net_retry_count;
--Error ER_PARSE_ERROR
SET @@global.net_retry_count = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.net_retry_count = 65530.34;
SELECT @@global.net_retry_count;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.net_retry_count = test;
@@ -122,15 +122,13 @@ SET @@session.net_retry_count = 0;
SELECT @@session.net_retry_count;
SET @@session.net_retry_count = -2;
SELECT @@session.net_retry_count;
--Error ER_PARSE_ERROR
SET @@session.net_retry_count = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.net_retry_count = 65530.34;
SET @@session.net_retry_count = 6555015425;
SELECT @@session.net_retry_count;
SET @@session.net_retry_count = 4294967296;
SELECT @@session.net_retry_count;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.net_retry_count = test;
SELECT @@session.net_retry_count;

View File

@@ -82,9 +82,6 @@ SELECT @@global.query_alloc_block_size;
SET @@global.query_alloc_block_size = 65536;
SELECT @@global.query_alloc_block_size;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
--echo '#--------------------FN_DYNVARS_130_04-------------------------#'
#################################################################################
# Change the value of query_alloc_block_size to a valid value for SESSION Scope #
@@ -114,8 +111,8 @@ SET @@global.query_alloc_block_size = 1023;
SELECT @@global.query_alloc_block_size;
SET @@global.query_alloc_block_size = 4294967296;
SELECT @@global.query_alloc_block_size;
--Error ER_PARSE_ERROR
SET @@global.query_alloc_block_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.query_alloc_block_size = 65530.34;
SELECT @@global.query_alloc_block_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.query_alloc_block_size = test;
@@ -125,13 +122,12 @@ SET @@session.query_alloc_block_size = 64;
SELECT @@session.query_alloc_block_size;
SET @@session.query_alloc_block_size = -2;
SELECT @@session.query_alloc_block_size;
--Error ER_PARSE_ERROR
SET @@session.query_alloc_block_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.query_alloc_block_size = 65530.34;
SET @@session.query_alloc_block_size = 1023;
SELECT @@session.query_alloc_block_size;
SET @@session.query_alloc_block_size = 4294967296;
SELECT @@session.query_alloc_block_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
#SET @@session.query_alloc_block_size = 4294967296;
#SELECT @@session.query_alloc_block_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.query_alloc_block_size = test;
@@ -144,7 +140,6 @@ SELECT @@session.query_alloc_block_size;
#SET @@global.query_alloc_block_size = 1;
#SET @@session.query_alloc_block_size = 12;
--echo 'Bug# 34877: OutOFMemeory errors are coming if we dont assign these values to variable before comparision statement';
SET @@global.query_alloc_block_size = 1;
SET @@session.query_alloc_block_size = 12;

View File

@@ -91,7 +91,6 @@ SET @@global.query_cache_limit = -1024;
SELECT @@global.query_cache_limit;
SET @@global.query_cache_limit = 42949672950;
SELECT @@global.query_cache_limit;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.query_cache_limit = ON;

View File

@@ -70,12 +70,10 @@ SET @@global.query_cache_min_res_unit = 0;
SELECT @@global.query_cache_min_res_unit;
SET @@global.query_cache_min_res_unit = 1;
SELECT @@global.query_cache_min_res_unit;
--echo 'Bug#34842: FN_DYNVARS_132_03 - Minimum value according to documentation is 0, and here it is 512';
SET @@global.query_cache_min_res_unit = 512;
SELECT @@global.query_cache_min_res_unit;
SET @@global.query_cache_min_res_unit = 513;
SELECT @@global.query_cache_min_res_unit;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
SET @@global.query_cache_min_res_unit = 1048576;
SELECT @@global.query_cache_min_res_unit;
SET @@global.query_cache_min_res_unit = 1048575;
@@ -100,7 +98,6 @@ SET @@global.query_cache_min_res_unit = -1024;
SELECT @@global.query_cache_min_res_unit;
SET @@global.query_cache_min_res_unit = 42949672950;
SELECT @@global.query_cache_min_res_unit;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.query_cache_min_res_unit = ON;

View File

@@ -68,8 +68,6 @@ SET @@global.query_cache_size = 512;
SELECT @@global.query_cache_size;
SET @@global.query_cache_size = 1024;
SELECT @@global.query_cache_size;
--echo : 'Bug#34880: Warnings are coming on assinging valid values to variable
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
SET @@global.query_cache_size = 1048576;
SELECT @@global.query_cache_size;
SET @@global.query_cache_size = 1048575;
@@ -93,8 +91,6 @@ SET @@global.query_cache_size = -1024;
SELECT @@global.query_cache_size;
SET @@global.query_cache_size = 42949672950;
SELECT @@global.query_cache_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.query_cache_size = ON;
SELECT @@global.query_cache_size;

View File

@@ -73,12 +73,10 @@ SELECT @@session.range_alloc_block_size = 2048;
SET @@global.range_alloc_block_size = 2048;
SELECT @@global.range_alloc_block_size;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
SET @@global.range_alloc_block_size = 4294967295;
SELECT @@global.range_alloc_block_size;
SET @@global.range_alloc_block_size = 4294967294;
SELECT @@global.range_alloc_block_size;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
--echo '#--------------------FN_DYNVARS_137_04-------------------------#'
@@ -105,8 +103,8 @@ SET @@global.range_alloc_block_size = -1024;
SELECT @@global.range_alloc_block_size;
SET @@global.range_alloc_block_size = 42949672951;
SELECT @@global.range_alloc_block_size;
--Error ER_PARSE_ERROR
SET @@global.range_alloc_block_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.range_alloc_block_size = 65530.34;
SELECT @@global.range_alloc_block_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.range_alloc_block_size = test;
@@ -116,11 +114,10 @@ SET @@session.range_alloc_block_size = 0;
SELECT @@session.range_alloc_block_size;
SET @@session.range_alloc_block_size = -2;
SELECT @@session.range_alloc_block_size;
--Error ER_PARSE_ERROR
SET @@session.range_alloc_block_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.range_alloc_block_size = 65530.34;
SET @@session.range_alloc_block_size = 4294967296;
SELECT @@session.range_alloc_block_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.range_alloc_block_size = test;

View File

@@ -93,8 +93,8 @@ SET @@global.rpl_recovery_rank = -2147483648;
SELECT @@global.rpl_recovery_rank;
SET @@global.rpl_recovery_rank = -2147483649;
SELECT @@global.rpl_recovery_rank;
--Error ER_PARSE_ERROR
SET @@global.rpl_recovery_rank = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.rpl_recovery_rank = 65530.34;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.rpl_recovery_rank = 2147483649.56;
--Error ER_WRONG_TYPE_FOR_VAR

View File

@@ -105,10 +105,8 @@ SELECT @@global.slave_transaction_retries;
SET @@global.slave_transaction_retries = 2147483649*2147483649;
SELECT @@global.slave_transaction_retries;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
--Error ER_PARSE_ERROR
SET @@global.slave_transaction_retries = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.slave_transaction_retries = 65530.34;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.slave_transaction_retries = '100';
--Error ER_WRONG_TYPE_FOR_VAR

View File

@@ -40,12 +40,6 @@
# Save initial value #
#############################################################
# due to differences when running on Windows (Bug#36695)
--source include/not_windows.inc
let $kbrange32 = BETWEEN 32776 AND 32999;
let $mbrange2 = BETWEEN 2097116 AND 2100000;
--disable_warnings
SET @start_global_value = @@global.sort_buffer_size;
@@ -59,12 +53,12 @@ SET @start_session_value = @@session.sort_buffer_size;
SET @@global.sort_buffer_size = 1000;
SET @@global.sort_buffer_size = DEFAULT;
eval
SELECT @@global.sort_buffer_size $mbrange2;
SELECT @@global.sort_buffer_size;
SET @@session.sort_buffer_size = 2000;
SET @@session.sort_buffer_size = DEFAULT;
eval
SELECT @@session.sort_buffer_size $mbrange2;
SELECT @@session.sort_buffer_size;
--echo '#--------------------FN_DYNVARS_151_02-------------------------#'
@@ -74,11 +68,11 @@ SELECT @@session.sort_buffer_size $mbrange2;
SET @@global.sort_buffer_size = DEFAULT;
eval
SELECT @@global.sort_buffer_size $mbrange2;
SELECT @@global.sort_buffer_size;
SET @@session.sort_buffer_size = DEFAULT;
eval
SELECT @@session.sort_buffer_size $mbrange2;
SELECT @@session.sort_buffer_size;
--echo '#--------------------FN_DYNVARS_151_03-------------------------#'
@@ -88,10 +82,10 @@ SELECT @@session.sort_buffer_size $mbrange2;
SET @@global.sort_buffer_size = 32776;
eval
SELECT @@global.sort_buffer_size $kbrange32;
SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = 32777;
eval
SELECT @@global.sort_buffer_size $kbrange32;
SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = 4294967295;
SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = 4294967294;
@@ -104,10 +98,10 @@ SELECT @@global.sort_buffer_size;
SET @@session.sort_buffer_size = 32776;
eval
SELECT @@session.sort_buffer_size $kbrange32;
SELECT @@session.sort_buffer_size;
SET @@session.sort_buffer_size = 32777;
eval
SELECT @@session.sort_buffer_size $kbrange32;
SELECT @@session.sort_buffer_size;
SET @@session.sort_buffer_size = 4294967295;
SELECT @@session.sort_buffer_size;
SET @@session.sort_buffer_size = 4294967294;
@@ -121,14 +115,14 @@ SELECT @@session.sort_buffer_size;
SET @@global.sort_buffer_size = 32775;
eval
SELECT @@global.sort_buffer_size $kbrange32;
SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = -1024;
eval
SELECT @@global.sort_buffer_size $kbrange32;
SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = 4294967296;
SELECT @@global.sort_buffer_size;
--Error ER_PARSE_ERROR
SET @@global.sort_buffer_size = 65530.34.;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.sort_buffer_size = 65530.34;
SELECT @@global.sort_buffer_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@global.sort_buffer_size = test;
@@ -136,12 +130,12 @@ SELECT @@global.sort_buffer_size;
SET @@session.sort_buffer_size = 32775;
eval
SELECT @@session.sort_buffer_size $kbrange32;
SELECT @@session.sort_buffer_size;
SET @@session.sort_buffer_size = -2;
eval
SELECT @@session.sort_buffer_size $kbrange32;
--Error ER_PARSE_ERROR
SET @@session.sort_buffer_size = 65530.34.;
SELECT @@session.sort_buffer_size;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.sort_buffer_size = 65530.34;
SET @@session.sort_buffer_size = 4294967296;
SELECT @@session.sort_buffer_size;
@@ -173,10 +167,10 @@ INFORMATION_SCHEMA.SESSION_VARIABLES WHERE VARIABLE_NAME='sort_buffer_size';
SET @@global.sort_buffer_size = TRUE;
eval
SELECT @@global.sort_buffer_size $kbrange32;
SELECT @@global.sort_buffer_size;
SET @@global.sort_buffer_size = FALSE;
eval
SELECT @@global.sort_buffer_size $kbrange32;
SELECT @@global.sort_buffer_size;
--echo '#---------------------FN_DYNVARS_151_09----------------------#'
####################################################################################
@@ -203,7 +197,7 @@ SELECT @@local.sort_buffer_size = @@session.sort_buffer_size;
SET sort_buffer_size = 9100;
eval
SELECT @@sort_buffer_size $kbrange32;
SELECT @@sort_buffer_size;
--Error ER_UNKNOWN_TABLE
SELECT local.sort_buffer_size;
--Error ER_UNKNOWN_TABLE

View File

@@ -82,7 +82,6 @@ SELECT @@global.transaction_alloc_block_size;
SET @@global.transaction_alloc_block_size = 4294967295;
SELECT @@global.transaction_alloc_block_size;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
--echo '#--------------------FN_DYNVARS_005_04-------------------------#'
###################################################################
@@ -97,7 +96,6 @@ SELECT @@session.transaction_alloc_block_size;
SET @@session.transaction_alloc_block_size = 65535;
SELECT @@session.transaction_alloc_block_size;
--echo 'Bug# 34877: Invalid Values are coming in variable on assigning valid values';
--echo '#------------------FN_DYNVARS_005_05-----------------------#'
@@ -115,8 +113,6 @@ SELECT @@global.transaction_alloc_block_size;
SET @@global.transaction_alloc_block_size = 123456789201;
SELECT @@global.transaction_alloc_block_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@global.transaction_alloc_block_size = ON;
@@ -143,8 +139,6 @@ SELECT @@global.transaction_alloc_block_size;
SET @@session.transaction_alloc_block_size = 12345678901;
SELECT @@session.transaction_alloc_block_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@session.transaction_alloc_block_size = ON;

View File

@@ -39,8 +39,6 @@ SELECT @start_global_value;
SET @start_session_value = @@session.transaction_prealloc_size;
SELECT @start_session_value;
--echo 'Bug# 34876: This variable has invalid default value as compared to documentation';
--echo '#--------------------FN_DYNVARS_005_01-------------------------#'
########################################################################
# Display the DEFAULT value of transaction_prealloc_size #
@@ -106,8 +104,6 @@ SELECT @@global.transaction_prealloc_size;
SET @@global.transaction_prealloc_size = -1024;
SELECT @@global.transaction_prealloc_size;
--echo 'Bug # 34837: Errors are not coming on assigning invalid values to variable';
-- Error ER_WRONG_TYPE_FOR_VAR
SET @@global.transaction_prealloc_size = ON;

View File

@@ -0,0 +1,12 @@
create table t1 (test_name text);
load data infile "MYSQLTEST_VARDIR/tmp/sys_vars.all_vars.txt" into table t1;
select variable_name as `There should be *no* variables listed below:`
from information_schema.global_variables
left join t1 on variable_name=test_name where
test_name is null
union
select variable_name from information_schema.session_variables
left join t1 on variable_name=test_name where
test_name is null;
There should be *no* variables listed below:
drop table t1;

View File

@@ -71,8 +71,8 @@ Warning 1292 Truncated incorrect auto_increment_increment value: '65536'
SELECT @@global.auto_increment_increment;
@@global.auto_increment_increment
65535
SET @@global.auto_increment_increment = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
SET @@global.auto_increment_increment = 65530.34;
ERROR 42000: Incorrect argument type to variable 'auto_increment_increment'
SELECT @@global.auto_increment_increment;
@@global.auto_increment_increment
65535
@@ -93,15 +93,14 @@ Warning 1292 Truncated incorrect auto_increment_increment value: '-2'
SELECT @@session.auto_increment_increment;
@@session.auto_increment_increment
1
SET @@session.auto_increment_increment = 65530.34.;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '.' at line 1
SET @@session.auto_increment_increment = 65530.34;
ERROR 42000: Incorrect argument type to variable 'auto_increment_increment'
SET @@session.auto_increment_increment = 65550;
Warnings:
Warning 1292 Truncated incorrect auto_increment_increment value: '65550'
SELECT @@session.auto_increment_increment;
@@session.auto_increment_increment
65535
'Bug # 34837: Errors are not coming on assigning invalid values to variable';
SET @@session.auto_increment_increment = test;
ERROR 42000: Incorrect argument type to variable 'auto_increment_increment'
SELECT @@session.auto_increment_increment;

View File

@@ -95,8 +95,6 @@ id name
113 Record_8
115 Record_9
116 Record_10
'Bug#35362: Here Record_10 id should be 120 instead of 115 because we'
'have set the value of variable to 5'
SET @@session.auto_increment_increment = 1;
SELECT @@auto_increment_increment;
@@auto_increment_increment
@@ -189,7 +187,6 @@ id name
127 Record_16
128 Record_17
129 Record_18
'Bug#35364: Variable is incrementing some random values on assigning -ve value'
## Disconnecting test_con2 ##
## Dropping table t1 ##
DROP table if exists t1;

View File

@@ -104,7 +104,6 @@ Warning 1292 Truncated incorrect auto_increment_offset value: '65550'
SELECT @@session.auto_increment_offset;
@@session.auto_increment_offset
65535
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@session.auto_increment_offset = ON;
ERROR 42000: Incorrect argument type to variable 'auto_increment_offset'
SELECT @@session.auto_increment_offset;

View File

@@ -84,8 +84,6 @@ id name
## Setting value of variable less than last insert id ##
SET @@session.auto_increment_offset = 5;
INSERT into t1(name) values('Record_9');
'Bug#35367: Random value of id is increasing on assigning value to';
'variable that is less than current offset';
INSERT into t1(name) values('Record_10');
INSERT into t1(name) values('Record_11');
INSERT into t1(name) values('Record_12');
@@ -125,8 +123,6 @@ id name
125 Record_12
134 Record_13
140 Record_14
'Bug#35369: Some invalid value of id is increasing on assigning value to';
'variable that is greater than auto_increment_increment';
'#--------------------FN_DYNVARS_002_06-------------------------#'
## Changing datatype of column id with primary key to SmallInt ##
ALTER table t1 modify id SMALLINT NOT NULL auto_increment;
@@ -206,8 +202,6 @@ id name
180 Record_18
181 Record_17
191 Record_18
'Bug#35370: Some invalid value of id is increasing on assigning negative';
' value in variable';
## Assigning value that is out of range of variable ##
SET @@auto_increment_offset = 65536;
Warnings:

View File

@@ -1,4 +1,4 @@
SET @start_value = @@autocommit;
SET @start_value = @@global.autocommit;
SELECT @start_value;
@start_value
1
@@ -7,8 +7,7 @@ SET @@autocommit = 0;
SET @@autocommit = DEFAULT;
SELECT @@autocommit;
@@autocommit
0
'Bug: variable DEFAULT value not working and is not throwing error'
1
'#---------------------FN_DYNVARS_003_02-------------------------#'
SET @@autocommit = @start_value;
SELECT @@autocommit = 1;
@@ -50,16 +49,16 @@ SET @@autocommit = '';
ERROR 42000: Variable 'autocommit' can't be set to the value of ''
'#-------------------FN_DYNVARS_003_05----------------------------#'
SET @@global.autocommit = 0;
ERROR HY000: Variable 'autocommit' is a SESSION variable and can't be used with SET GLOBAL
SELECT @@global.autocommit;
ERROR HY000: Variable 'autocommit' is a SESSION variable
@@global.autocommit
0
SET @@global.autocommit = 1;
'#----------------------FN_DYNVARS_003_06------------------------#'
SELECT IF(@@session.autocommit, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='autocommit';
IF(@@session.autocommit, "ON", "OFF") = VARIABLE_VALUE
1
Bug # 34839: Values in variable and information_schema do not match for autocommit
'#----------------------FN_DYNVARS_003_07------------------------#'
SET @@autocommit = 1;
SELECT IF(@@autocommit, "ON", "OFF") = VARIABLE_VALUE
@@ -111,7 +110,7 @@ SELECT session.autocommit;
ERROR 42S02: Unknown table 'session' in field list
SELECT autocommit = @@session.autocommit;
ERROR 42S22: Unknown column 'autocommit' in 'field list'
SET @@autocommit = @start_value;
SELECT @@autocommit;
@@autocommit
SET @@global.autocommit = @start_value;
SELECT @@global.autocommit;
@@global.autocommit
1

View File

@@ -89,7 +89,6 @@ id name
1 Record_1
2 Record_2
3 Record_3
'Bug#35373: Records donot get committed in transaction on switching connections'
INSERT into t1(name) values('Record_6');
SELECT * from t1;
id name

View File

@@ -58,7 +58,6 @@ FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='automatic_sp_privileges';
IF(@@global.automatic_sp_privileges, "ON", "OFF") = VARIABLE_VALUE
1
'Bug# 34839: Values in variable and information_schema donot match'
'#---------------------FN_DYNVARS_004_07----------------------#'
SET @@global.automatic_sp_privileges = OFF;
SELECT @@global.automatic_sp_privileges;

View File

@@ -0,0 +1,21 @@
select @@global.back_log;
@@global.back_log
50
select @@session.back_log;
ERROR HY000: Variable 'back_log' is a GLOBAL variable
show global variables like 'back_log';
Variable_name Value
back_log 50
show session variables like 'back_log';
Variable_name Value
back_log 50
select * from information_schema.global_variables where variable_name='back_log';
VARIABLE_NAME VARIABLE_VALUE
BACK_LOG 50
select * from information_schema.session_variables where variable_name='back_log';
VARIABLE_NAME VARIABLE_VALUE
BACK_LOG 50
set global back_log=1;
ERROR HY000: Variable 'back_log' is a read only variable
set session back_log=1;
ERROR HY000: Variable 'back_log' is a read only variable

View File

@@ -7,8 +7,7 @@ SET @@big_tables = 1;
SET @@big_tables = DEFAULT;
SELECT @@big_tables;
@@big_tables
1
'Bug# 34829: No default value for variable and setting default does not raise error';
0
'#--------------------FN_DYNVARS_005_02------------------------#'
SET @@big_tables = 0;
SELECT @@big_tables;
@@ -44,17 +43,17 @@ ERROR 42000: Variable 'big_tables' can't be set to the value of ' '
SET @@big_tables = '';
ERROR 42000: Variable 'big_tables' can't be set to the value of ''
'#-------------------FN_DYNVARS_005_04----------------------------#'
SET @@global.big_tables = 0;
ERROR HY000: Variable 'big_tables' is a SESSION variable and can't be used with SET GLOBAL
SET @@global.big_tables = 1-@@global.big_tables;
SELECT @@global.big_tables;
ERROR HY000: Variable 'big_tables' is a SESSION variable
@@global.big_tables
1
SET @@global.big_tables = 1-@@global.big_tables;
'#----------------------FN_DYNVARS_005_05------------------------#'
SELECT IF(@@big_tables, "ON", "OFF") = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='big_tables';
IF(@@big_tables, "ON", "OFF") = VARIABLE_VALUE
1
Bug # 34839: Values in variable and information_schema do not match for autocommit
'#---------------------FN_DYNVARS_005_06----------------------#'
SET @@big_tables = OFF;
SELECT @@big_tables;

View File

@@ -21,14 +21,20 @@ SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
4096
SET @@global.binlog_cache_size = 4294967295;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '4294967295'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
4294963200
SET @@global.binlog_cache_size = 10000;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '10000'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
8192
SET @@global.binlog_cache_size = 21221204;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '21221204'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
21217280

View File

@@ -21,14 +21,20 @@ SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
4096
SET @@global.binlog_cache_size = 4294967295;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '4294967295'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
4294963200
SET @@global.binlog_cache_size = 10000;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '10000'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
8192
SET @@global.binlog_cache_size = 21221204;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '21221204'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
21217280
@@ -49,6 +55,8 @@ SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
4096
SET @@global.binlog_cache_size = 42949672950;
Warnings:
Warning 1292 Truncated incorrect binlog_cache_size value: '42949672950'
SELECT @@global.binlog_cache_size;
@@global.binlog_cache_size
42949668864

View File

@@ -91,7 +91,6 @@ Warning 1292 Truncated incorrect bulk_insert_buffer_size value: '-2'
SELECT @@session.bulk_insert_buffer_size;
@@session.bulk_insert_buffer_size
0
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@session.bulk_insert_buffer_size = test;
ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
SET @@session.bulk_insert_buffer_size = 429496.10;

View File

@@ -87,7 +87,6 @@ Warning 1292 Truncated incorrect bulk_insert_buffer_size value: '-2'
SELECT @@session.bulk_insert_buffer_size;
@@session.bulk_insert_buffer_size
0
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@session.bulk_insert_buffer_size = test;
ERROR 42000: Incorrect argument type to variable 'bulk_insert_buffer_size'
SET @@session.bulk_insert_buffer_size = 429496.10;

View File

@@ -162,11 +162,8 @@ SET @@character_set_client = utf8;
SELECT @@character_set_client;
@@character_set_client
utf8
'Bug: Assignment of ucs2 to session character-set does not raise error';
'but selecting variable after setting it does.';
'Even catching this does not allow any further character-set to be set.';
'Offending querry seems to be:';
'SET @@character_set_client = ucs2;'
SET @@character_set_client = ucs2;
ERROR 42000: Variable 'character_set_client' can't be set to the value of 'ucs2'
SET @@character_set_client = cp866;
SELECT @@character_set_client;
@@character_set_client
@@ -426,9 +423,6 @@ SET @total_charset = (SELECT count(*) FROM INFORMATION_SCHEMA.CHARACTER_SETS);
SELECT @total_charset;
@total_charset
36
'Bug # 34843: character sets are mapped in such a way that 100 and following';
'numbers gives error, and before 100 the 36 mapped wraps arround';
'several times.';
'#--------------------FN_DYNVARS_010_10-------------------------#'
SET @@character_set_client = abc;
ERROR 42000: Unknown character set: 'abc'

View File

@@ -10,7 +10,6 @@ utf8
SELECT @@session.character_set_client;
@@session.character_set_client
latin1
'Bug# 35372: session character_set_client is not effected by global character_set_client'
'#--------------------FN_DYNVARS_010_02-------------------------#'
'connection default'
SHOW VARIABLES like 'character_set_client';
@@ -22,16 +21,16 @@ CREATE TABLE t1(a CHAR(3) character set utf8);
'For latin1 characterset';
SET @@session.character_set_client = latin1;
INSERT INTO t1 values('<03>');
SELECT a,CHAR_LENGTH(a) FROM t1;
a CHAR_LENGTH(a)
<03> 2
SELECT hex(a),CHAR_LENGTH(a) FROM t1;
hex(a) CHAR_LENGTH(a)
03C3A8 2
DELETE FROM t1;
'For utf8 characterset';
SET @@session.character_set_client = utf8;
INSERT INTO t1 values('<03>');
SELECT a,CHAR_LENGTH(a) FROM t1;
a CHAR_LENGTH(a)
 1
SELECT hex(a),CHAR_LENGTH(a) FROM t1;
hex(a) CHAR_LENGTH(a)
03 1
DELETE FROM t1;
DROP TABLE IF EXISTS t1;
SET @@global.character_set_client = @global_character_set_client;

View File

@@ -425,9 +425,6 @@ SET @total_charset = (SELECT count(*) FROM INFORMATION_SCHEMA.CHARACTER_SETS);
SELECT @total_charset;
@total_charset
36
'Bug # 34843: character sets are mapped in such a way that 100 and following ';
'numbers gives error, and before 100 the 36 mapped wraps arround';
'several times.';
'#--------------------FN_DYNVARS_011_10-------------------------#'
SET @@character_set_connection = abc;
ERROR 42000: Unknown character set: 'abc'

View File

@@ -425,8 +425,6 @@ SET @total_charset = (SELECT count(*) FROM INFORMATION_SCHEMA.CHARACTER_SETS);
SELECT @total_charset;
@total_charset
36
'Bug # 34843: character sets are mapped in such a way that 100 and following';
'numbers gives error, and before 100 the 36 mapped wraps arround several times.';
'#--------------------FN_DYNVARS_012_10-------------------------#'
SET @@character_set_database = "grek";
ERROR 42000: Unknown character set: 'grek'

View File

@@ -12,7 +12,6 @@ utf8
SELECT @@session.character_set_database;
@@session.character_set_database
latin1
'Bug#35356: session character_set_database differ from global character_set_database'
'#--------------------FN_DYNVARS_008_02-------------------------#'
'connection default'
DROP TABLE IF EXISTS t1;
@@ -39,7 +38,6 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=utf8
DROP TABLE t1;
DROP DATABASE db1;
'Bug#35357: character_set_database does not effects CREATE DATABASE without characater set'
'--ascii character set specified--'
CREATE DATABASE db1 CHARACTER SET ascii;
USE db1;
@@ -72,7 +70,6 @@ SELECT count(*) FROM t1 WHERE CHAR_LENGTH(a)>1;
count(*)
1
DROP TABLE IF EXISTS t1;
'Bug#27208: If no current database, character_set_database !=character_set_server'
SET GLOBAL character_set_server=latin5;
CREATE DATABASE csdb CHARACTER SET = utf8;
USE csdb;

View File

@@ -403,8 +403,6 @@ SET @total_charset = (SELECT count(*) FROM INFORMATION_SCHEMA.CHARACTER_SETS);
SELECT @total_charset;
@total_charset
36
'Bug # 34843: character sets are mapped in such a way that 100 and following '
'numbers give error, and before 100 the 36 mapped wraps arround several times.'
'#--------------------FN_DYNVARS_008_10-------------------------#'
SET @@character_set_filesystem = abc;
ERROR 42000: Unknown character set: 'abc'

View File

@@ -29,6 +29,8 @@ ERROR 42S22: Unknown column 'session' in 'field list'
SET global character_set_server=utf8;
SELECT global character_set_server;
ERROR 42S22: Unknown column 'global' in 'field list'
SET @@character_set_server = null;
ERROR 42000: Variable 'character_set_server' can't be set to the value of 'NULL'
'#--------------------FN_DYNVARS_009_02-------------------------#'
SET @@character_set_server = latin5;
SET @@character_set_server = DEFAULT;
@@ -417,13 +419,6 @@ SELECT @@global.character_set_server;
cp1250
SET @@global.character_set_server = 100;
ERROR 42000: Unknown character set: '100'
SET @total_charset = (SELECT count(*) FROM INFORMATION_SCHEMA.CHARACTER_SETS);
SELECT @total_charset;
@total_charset
36
'Bug # 34843: character sets are mapped in such a way that 100 and following ';
'numbers gives error, and before 100 the 36 mapped wraps arround ';
'several times.';
'#--------------------FN_DYNVARS_009_10-------------------------#'
SET @@character_set_server = abc;
ERROR 42000: Unknown character set: 'abc'

View File

@@ -0,0 +1,21 @@
select @@global.character_sets_dir;
@@global.character_sets_dir
MYSQL_SHAREDIR/charsets/
select @@session.character_sets_dir;
ERROR HY000: Variable 'character_sets_dir' is a GLOBAL variable
show global variables like 'character_sets_dir';
Variable_name Value
character_sets_dir MYSQL_SHAREDIR/charsets/
show session variables like 'character_sets_dir';
Variable_name Value
character_sets_dir MYSQL_SHAREDIR/charsets/
select * from information_schema.global_variables where variable_name='character_sets_dir';
VARIABLE_NAME VARIABLE_VALUE
CHARACTER_SETS_DIR MYSQL_SHAREDIR/charsets/
select * from information_schema.session_variables where variable_name='character_sets_dir';
VARIABLE_NAME VARIABLE_VALUE
CHARACTER_SETS_DIR MYSQL_SHAREDIR/charsets/
set global character_sets_dir="foo";
ERROR HY000: Variable 'character_sets_dir' is a read only variable
set session character_sets_dir="foo";
ERROR HY000: Variable 'character_sets_dir' is a read only variable

View File

@@ -32,9 +32,12 @@ ERROR 42S22: Unknown column 'global' in 'field list'
'#--------------------FN_DYNVARS_016_02-------------------------#'
SET @@collation_database = latin1_bin;
SET @@collation_database = DEFAULT;
SELECT DEFAULT_COLLATION_NAME FROM INFORMATION_SCHEMA.SCHEMATA WHERE SCHEMA_NAME=DATABASE();
DEFAULT_COLLATION_NAME
latin1_swedish_ci
SELECT @@collation_database AS DEFAULT_VALUE;
DEFAULT_VALUE
utf8_unicode_ci
latin1_swedish_ci
SET @@global.collation_database = latin1_bin;
SET @@global.collation_database = DEFAULT;
SELECT @@global.collation_database;

View File

@@ -11,7 +11,6 @@ latin1_danish_ci
SELECT @@session.collation_database;
@@session.collation_database
latin1_swedish_ci
'Bug#35378: New session collation_database is not change by global collation_database'
'#--------------------FN_DYNVARS_011_02-------------------------#'
'connection default'
DROP TABLE IF EXISTS t1,t2;
@@ -31,7 +30,6 @@ USE db1;
SHOW CREATE DATABASE db1;
Database Create Database
db1 CREATE DATABASE `db1` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_roman_ci */
'Bug#35380: collation_database does not effects CREATE DATABASE without characater set'
CREATE TABLE t1(a CHAR(20));
SHOW CREATE TABLE t1;
Table Create Table

View File

@@ -1,58 +1,74 @@
SET @start_global_value = @@global.completion_type;
SELECT @start_global_value;
@start_global_value
0
NO_CHAIN
SET @start_session_value = @@session.completion_type;
SELECT @start_session_value;
@start_session_value
0
NO_CHAIN
'#--------------------FN_DYNVARS_017_01-------------------------#'
SET @@global.completion_type = 2;
SET @@global.completion_type = DEFAULT;
SELECT @@global.completion_type;
@@global.completion_type
0
NO_CHAIN
SET @@session.completion_type = 1;
SET @@session.completion_type = DEFAULT;
SELECT @@session.completion_type;
@@session.completion_type
0
'#--------------------FN_DYNVARS_017_02-------------------------#'
SET @@global.completion_type = @start_global_value;
SELECT @@global.completion_type = 0;
@@global.completion_type = 0
1
SET @@session.completion_type = @start_session_value;
SELECT @@session.completion_type = 0;
@@session.completion_type = 0
1
NO_CHAIN
'#--------------------FN_DYNVARS_017_03-------------------------#'
SET @@global.completion_type = 0;
SELECT @@global.completion_type;
@@global.completion_type
0
NO_CHAIN
SET @@global.completion_type = 1;
SELECT @@global.completion_type;
@@global.completion_type
1
CHAIN
SET @@global.completion_type = 2;
SELECT @@global.completion_type;
@@global.completion_type
2
RELEASE
SET @@global.completion_type = NO_CHAIN;
SELECT @@global.completion_type;
@@global.completion_type
NO_CHAIN
SET @@global.completion_type = CHAIN;
SELECT @@global.completion_type;
@@global.completion_type
CHAIN
SET @@global.completion_type = 'RELEASE';
SELECT @@global.completion_type;
@@global.completion_type
RELEASE
'#--------------------FN_DYNVARS_017_04-------------------------#'
SET @@session.completion_type = 0;
SELECT @@session.completion_type;
@@session.completion_type
0
NO_CHAIN
SET @@session.completion_type = 1;
SELECT @@session.completion_type;
@@session.completion_type
1
CHAIN
SET @@session.completion_type = 2;
SELECT @@session.completion_type;
@@session.completion_type
2
RELEASE
SET @@session.completion_type = 'NO_CHAIN';
SELECT @@session.completion_type;
@@session.completion_type
NO_CHAIN
SET @@session.completion_type = 'CHAIN';
SELECT @@session.completion_type;
@@session.completion_type
CHAIN
SET @@session.completion_type = 'RELEASE';
SELECT @@session.completion_type;
@@session.completion_type
RELEASE
'#------------------FN_DYNVARS_017_05-----------------------#'
set sql_mode=TRADITIONAL;
SET @@global.completion_type = 10;
ERROR 42000: Variable 'completion_type' can't be set to the value of '10'
SET @@global.completion_type = -1024;
@@ -60,7 +76,7 @@ ERROR 42000: Variable 'completion_type' can't be set to the value of '-1024'
SET @@global.completion_type = 2.4;
ERROR 42000: Incorrect argument type to variable 'completion_type'
SET @@global.completion_type = OFF;
ERROR 42000: Incorrect argument type to variable 'completion_type'
ERROR 42000: Variable 'completion_type' can't be set to the value of 'OFF'
SET @@session.completion_type = 10;
ERROR 42000: Variable 'completion_type' can't be set to the value of '10'
SET @@session.completion_type = -2;
@@ -68,7 +84,7 @@ ERROR 42000: Variable 'completion_type' can't be set to the value of '-2'
SET @@session.completion_type = 1.2;
ERROR 42000: Incorrect argument type to variable 'completion_type'
SET @@session.completion_type = ON;
ERROR 42000: Incorrect argument type to variable 'completion_type'
ERROR 42000: Variable 'completion_type' can't be set to the value of 'ON'
'#------------------FN_DYNVARS_017_06-----------------------#'
SELECT @@global.completion_type = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
@@ -84,11 +100,11 @@ WHERE VARIABLE_NAME='completion_type';
SET @@global.completion_type = TRUE;
SELECT @@global.completion_type;
@@global.completion_type
1
CHAIN
SET @@global.completion_type = FALSE;
SELECT @@global.completion_type;
@@global.completion_type
0
NO_CHAIN
'#---------------------FN_DYNVARS_001_08----------------------#'
SET @@completion_type = 1;
SELECT @@completion_type = @@local.completion_type;
@@ -101,7 +117,7 @@ SELECT @@local.completion_type = @@session.completion_type;
SET completion_type = 1;
SELECT @@completion_type;
@@completion_type
1
CHAIN
SET local.completion_type = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'completion_type = 1' at line 1
SELECT local.completion_type;
@@ -115,8 +131,9 @@ ERROR 42S22: Unknown column 'completion_type' in 'field list'
SET @@global.completion_type = @start_global_value;
SELECT @@global.completion_type;
@@global.completion_type
0
NO_CHAIN
SET @@session.completion_type = @start_session_value;
SELECT @@session.completion_type;
@@session.completion_type
0
NO_CHAIN
set sql_mode='';

View File

@@ -1,65 +1,70 @@
SET @start_value = @@global.concurrent_insert;
SELECT @start_value;
@start_value
1
AUTO
'#--------------------FN_DYNVARS_018_01------------------------#'
SET @@global.concurrent_insert = 0;
SET @@global.concurrent_insert = DEFAULT;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
1
AUTO
'#---------------------FN_DYNVARS_018_02-------------------------#'
SET @@global.concurrent_insert = DEFAULT;
SELECT @@global.concurrent_insert = 1;
@@global.concurrent_insert = 1
1
0
Warnings:
Warning 1292 Truncated incorrect DOUBLE value: 'AUTO'
'#--------------------FN_DYNVARS_018_03------------------------#'
SET @@global.concurrent_insert = 0;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
0
NEVER
SET @@global.concurrent_insert = 1;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
1
AUTO
SET @@global.concurrent_insert = 2;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
2
ALWAYS
SET @@global.concurrent_insert = NEVER;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
NEVER
SET @@global.concurrent_insert = AUTO;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
AUTO
SET @@global.concurrent_insert = ALWAYS;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
ALWAYS
'#--------------------FN_DYNVARS_018_04-------------------------#'
SET @@global.concurrent_insert = -1;
Warnings:
Warning 1292 Truncated incorrect concurrent_insert value: '-1'
Select @@global.concurrent_insert;
@@global.concurrent_insert
0
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of '-1'
SET @@global.concurrent_insert = 100;
Warnings:
Warning 1292 Truncated incorrect concurrent_insert value: '100'
Select @@global.concurrent_insert;
@@global.concurrent_insert
2
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of '100'
SET @@global.concurrent_insert = TRUEF;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'TRUEF'
SET @@global.concurrent_insert = TRUE_F;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'TRUE_F'
SET @@global.concurrent_insert = FALSE0;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'FALSE0'
SET @@global.concurrent_insert = OON;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'OON'
SET @@global.concurrent_insert = ONN;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'ONN'
SET @@global.concurrent_insert = OOFF;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'OOFF'
SET @@global.concurrent_insert = 0FF;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of '0FF'
SET @@global.concurrent_insert = ' ';
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of ' '
SET @@global.concurrent_insert = " ";
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of ' '
SET @@global.concurrent_insert = '';
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of ''
'#-------------------FN_DYNVARS_018_05----------------------------#'
SET @@session.concurrent_insert = 1;
ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
@@ -73,18 +78,18 @@ WHERE VARIABLE_NAME='concurrent_insert';
1
'#---------------------FN_DYNVARS_018_07----------------------#'
SET @@global.concurrent_insert = OFF;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'OFF'
SET @@global.concurrent_insert = ON;
ERROR 42000: Incorrect argument type to variable 'concurrent_insert'
ERROR 42000: Variable 'concurrent_insert' can't be set to the value of 'ON'
'#---------------------FN_DYNVARS_018_08----------------------#'
SET @@global.concurrent_insert = TRUE;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
1
AUTO
SET @@global.concurrent_insert = FALSE;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
0
NEVER
'#---------------------FN_DYNVARS_018_09----------------------#'
SET @@global.concurrent_insert = 1;
SELECT @@concurrent_insert = @@global.concurrent_insert;
@@ -95,7 +100,7 @@ SET concurrent_insert = 1;
ERROR HY000: Variable 'concurrent_insert' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@concurrent_insert;
@@concurrent_insert
1
AUTO
SET global.concurrent_insert = 1;
ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'concurrent_insert = 1' at line 1
SELECT global.concurrent_insert;
@@ -105,4 +110,4 @@ ERROR 42S22: Unknown column 'concurrent_insert' in 'field list'
SET @@global.concurrent_insert = @start_value;
SELECT @@global.concurrent_insert;
@@global.concurrent_insert
1
AUTO

View File

@@ -82,7 +82,7 @@ Record_6
Record_5
SELECT @@concurrent_insert;
@@concurrent_insert
2
ALWAYS
connection default;
## Unlocking table ##
UNLOCK TABLES;

View File

@@ -45,7 +45,6 @@ Warning 1292 Truncated incorrect connect_timeout value: '42949672950'
SELECT @@global.connect_timeout;
@@global.connect_timeout
31536000
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.connect_timeout = 21221204.10;
ERROR 42000: Incorrect argument type to variable 'connect_timeout'
SET @@global.connect_timeout = ON;

View File

@@ -0,0 +1,21 @@
select @@global.date_format;
@@global.date_format
%Y-%m-%d
select @@session.date_format;
ERROR HY000: Variable 'date_format' is a GLOBAL variable
show global variables like 'date_format';
Variable_name Value
date_format %Y-%m-%d
show session variables like 'date_format';
Variable_name Value
date_format %Y-%m-%d
select * from information_schema.global_variables where variable_name='date_format';
VARIABLE_NAME VARIABLE_VALUE
DATE_FORMAT %Y-%m-%d
select * from information_schema.session_variables where variable_name='date_format';
VARIABLE_NAME VARIABLE_VALUE
DATE_FORMAT %Y-%m-%d
set global date_format="foo";
ERROR HY000: Variable 'date_format' is a read only variable
set session date_format="foo";
ERROR HY000: Variable 'date_format' is a read only variable

View File

@@ -0,0 +1,21 @@
select @@global.datetime_format;
@@global.datetime_format
%Y-%m-%d %H:%i:%s
select @@session.datetime_format;
ERROR HY000: Variable 'datetime_format' is a GLOBAL variable
show global variables like 'datetime_format';
Variable_name Value
datetime_format %Y-%m-%d %H:%i:%s
show session variables like 'datetime_format';
Variable_name Value
datetime_format %Y-%m-%d %H:%i:%s
select * from information_schema.global_variables where variable_name='datetime_format';
VARIABLE_NAME VARIABLE_VALUE
DATETIME_FORMAT %Y-%m-%d %H:%i:%s
select * from information_schema.session_variables where variable_name='datetime_format';
VARIABLE_NAME VARIABLE_VALUE
DATETIME_FORMAT %Y-%m-%d %H:%i:%s
set global datetime_format="foo";
ERROR HY000: Variable 'datetime_format' is a read only variable
set session datetime_format="foo";
ERROR HY000: Variable 'datetime_format' is a read only variable

View File

@@ -0,0 +1,25 @@
set session debug="L";
select @@global.debug="1";
@@global.debug="1"
0
select @@session.debug;
@@session.debug
L
show global variables like 'debug';
Variable_name Value
debug #
show session variables like 'debug';
Variable_name Value
debug L
select * from information_schema.global_variables where variable_name="debug";
VARIABLE_NAME VARIABLE_VALUE
DEBUG #
select * from information_schema.session_variables where variable_name="debug";
VARIABLE_NAME VARIABLE_VALUE
DEBUG L
set @@global.debug=1;
ERROR 42000: Incorrect argument type to variable 'debug'
set @@global.debug=1.1;
ERROR 42000: Incorrect argument type to variable 'debug'
set @@global.debug=1e1;
ERROR 42000: Incorrect argument type to variable 'debug'

View File

@@ -0,0 +1,21 @@
select @@global.debug_sync;
ERROR HY000: Variable 'debug_sync' is a SESSION variable
select @@session.debug_sync;
@@session.debug_sync
ON - current signal: ''
show global variables like "debug_sync";
Variable_name Value
show session variables like "debug_sync";
Variable_name Value
debug_sync ON - current signal: ''
select * from information_schema.global_variables where variable_name="debug_sync";
VARIABLE_NAME VARIABLE_VALUE
select * from information_schema.session_variables where variable_name="debug_sync";
VARIABLE_NAME VARIABLE_VALUE
DEBUG_SYNC ON - current signal: ''
set @@session.debug_sync=1;
ERROR 42000: Incorrect argument type to variable 'debug_sync'
set @@session.debug_sync=1.1;
ERROR 42000: Incorrect argument type to variable 'debug_sync'
set @@session.debug_sync=1e1;
ERROR 42000: Incorrect argument type to variable 'debug_sync'

View File

@@ -0,0 +1,117 @@
SET @start_global_value = @@global.default_storage_engine;
SELECT @start_global_value;
@start_global_value
MyISAM
SET @start_session_value = @@session.default_storage_engine;
SELECT @start_session_value;
@start_session_value
MyISAM
'#--------------------FN_DYNVARS_005_01-------------------------#'
SET @@global.default_storage_engine = INNODB;
SET @@global.default_storage_engine = DEFAULT;
SELECT @@global.default_storage_engine;
@@global.default_storage_engine
MyISAM
SET @@session.default_storage_engine = INNODB;
SET @@session.default_storage_engine = DEFAULT;
SELECT @@session.default_storage_engine;
@@session.default_storage_engine
MyISAM
'#--------------------FN_DYNVARS_005_02-------------------------#'
SET @@global.default_storage_engine = MYISAM;
SELECT @@global.default_storage_engine;
@@global.default_storage_engine
MyISAM
SET @@global.default_storage_engine = MERGE;
SELECT @@global.default_storage_engine;
@@global.default_storage_engine
MRG_MYISAM
SET @@global.default_storage_engine = MEMORY;
SELECT @@global.default_storage_engine;
@@global.default_storage_engine
MEMORY
SET @@global.default_storage_engine = INNODB;
SELECT @@global.default_storage_engine;
@@global.default_storage_engine
InnoDB
'#--------------------FN_DYNVARS_005_03-------------------------#'
SET @@session.default_storage_engine = MYISAM;
SELECT @@session.default_storage_engine;
@@session.default_storage_engine
MyISAM
SET @@session.default_storage_engine = MERGE;
SELECT @@session.default_storage_engine;
@@session.default_storage_engine
MRG_MYISAM
SET @@session.default_storage_engine = MEMORY;
SELECT @@session.default_storage_engine;
@@session.default_storage_engine
MEMORY
SET @@session.default_storage_engine = INNODB;
SELECT @@session.default_storage_engine;
@@session.default_storage_engine
InnoDB
'#------------------FN_DYNVARS_005_04-----------------------#'
SET @@global.default_storage_engine = 8199;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
SET @@global.default_storage_engine = NULL;
ERROR 42000: Variable 'default_storage_engine' can't be set to the value of 'NULL'
SET @@global.default_storage_engine = -1024;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
SET @@global.default_storage_engine = 65530.34;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
SET @@global.default_storage_engine = FILE;
ERROR 42000: Unknown storage engine 'FILE'
SET @@session.default_storage_engine = 8199;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
SET @@session.default_storage_engine = 65530.34;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
SET @@session.default_storage_engine = RECORD;
ERROR 42000: Unknown storage engine 'RECORD'
'#------------------FN_DYNVARS_005_05-----------------------#'
SELECT @@global.default_storage_engine =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
WHERE VARIABLE_NAME='default_storage_engine';
@@global.default_storage_engine =
VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_06-----------------------#'
SELECT @@session.default_storage_engine =
VARIABLE_VALUE FROM INFORMATION_SCHEMA.SESSION_VARIABLES
WHERE VARIABLE_NAME='default_storage_engine';
@@session.default_storage_engine =
VARIABLE_VALUE
1
'#------------------FN_DYNVARS_005_07-----------------------#'
SET @@global.default_storage_engine = TRUE;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
SET @@global.default_storage_engine = FALSE;
ERROR 42000: Incorrect argument type to variable 'default_storage_engine'
'#---------------------FN_DYNVARS_001_8----------------------#'
SET @@default_storage_engine = MYISAM;
SELECT @@default_storage_engine = @@local.default_storage_engine;
@@default_storage_engine = @@local.default_storage_engine
1
SELECT @@local.default_storage_engine = @@session.default_storage_engine;
@@local.default_storage_engine = @@session.default_storage_engine
1
'#---------------------FN_DYNVARS_001_9----------------------#'
SET default_storage_engine = MEMORY;
SELECT @@default_storage_engine;
@@default_storage_engine
MEMORY
SELECT local.default_storage_engine;
ERROR 42S02: Unknown table 'local' in field list
SELECT session.default_storage_engine;
ERROR 42S02: Unknown table 'session' in field list
SELECT default_storage_engine = @@session.default_storage_engine;
ERROR 42S22: Unknown column 'default_storage_engine' in 'field list'
SET @@default_storage_engine = @start_global_value;
SET @@global.default_storage_engine = @start_global_value;
SELECT @@global.default_storage_engine;
@@global.default_storage_engine
MyISAM
SET @@session.default_storage_engine = @start_session_value;
SELECT @@session.default_storage_engine;
@@session.default_storage_engine
MyISAM

View File

@@ -113,7 +113,6 @@ Warning 1292 Truncated incorrect default_week_format value: '65550'
SELECT @@session.default_week_format;
@@session.default_week_format
7
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
'#------------------FN_DYNVARS_022_06-----------------------#'
SELECT @@global.default_week_format = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES

View File

@@ -5,12 +5,9 @@ ON
'#--------------------FN_DYNVARS_023_01------------------------#'
SET @@global.delay_key_write = OFF;
SET @@global.delay_key_write = DEFAULT;
ERROR 42000: Variable 'delay_key_write' doesn't have a default value
'Bug # 34878: Documentation specifies a DEFAULT value of ON for variable but';
'its not supported';
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
ON
'#---------------------FN_DYNVARS_023_02-------------------------#'
SET @@global.delay_key_write = NULL;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'NULL'
@@ -41,10 +38,7 @@ ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'FALSE0'
SET @@global.delay_key_write = ONN;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'ONN'
SET @@global.delay_key_write = OF;
SELECT @@global.delay_key_write;
@@global.delay_key_write
OFF
'Bug# 34828: Variable is incorrectly accepting OF as a value'
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'OF'
SET @@global.delay_key_write = ' ';
ERROR 42000: Variable 'delay_key_write' can't be set to the value of ' '
SET @@global.delay_key_write = "";

View File

@@ -45,7 +45,6 @@ Warning 1292 Truncated incorrect delayed_insert_limit value: '42949672950'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
4294967295
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.delayed_insert_limit = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_limit'
SELECT @@global.delayed_insert_limit;

View File

@@ -43,7 +43,6 @@ SET @@global.delayed_insert_limit = 42949672950;
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
42949672950
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.delayed_insert_limit = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_limit'
SELECT @@global.delayed_insert_limit;

View File

@@ -45,7 +45,6 @@ Warning 1292 Truncated incorrect delayed_insert_timeout value: '42949672950'
SELECT @@global.delayed_insert_timeout;
@@global.delayed_insert_timeout
31536000
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.delayed_insert_timeout = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_timeout'
SELECT @@global.delayed_insert_timeout;

View File

@@ -45,7 +45,6 @@ Warning 1292 Truncated incorrect delayed_queue_size value: '42949672950'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
4294967295
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.delayed_queue_size = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@global.delayed_queue_size;

View File

@@ -43,7 +43,6 @@ SET @@global.delayed_queue_size = 42949672950;
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
42949672950
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.delayed_queue_size = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@global.delayed_queue_size;

View File

@@ -113,7 +113,6 @@ Warning 1292 Truncated incorrect div_precision_increment value: '65550'
SELECT @@session.div_precision_increment;
@@session.div_precision_increment
30
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.div_precision_increment = 65530.30;
ERROR 42000: Incorrect argument type to variable 'div_precision_increment'
SELECT @@global.div_precision_increment;

View File

@@ -5,7 +5,7 @@ CREATE TABLE t1
id INT NOT NULL auto_increment,
PRIMARY KEY (id),
name VARCHAR(30),
salary LONG
salary INT
);
'#--------------------FN_DYNVARS_027_01-------------------------#'
## Setting initial session value of variable to 3 ##
@@ -18,8 +18,7 @@ SELECT name, salary, ((salary * 2.5)/1000) AS INCOME from t1;
name salary INCOME
Record_1 100011 250.0275
Record_2 501 1.2525
Record_3 210 0.525
'Bug#35374: div_precision is not working with table column'
Record_3 210 0.5250
## Verifying variable's behavior with direct division ##
SELECT 1/7;
1/7
@@ -32,7 +31,7 @@ CREATE TABLE t1
id INT NOT NULL auto_increment,
PRIMARY KEY (id),
name VARCHAR(30),
salary LONG,
salary INT,
income_tax FLOAT
);
## Creating new connection test_con1 ##

View File

@@ -57,22 +57,19 @@ SELECT @@global.engine_condition_pushdown;
SET @@session.engine_condition_pushdown = -1;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '-1'
SET @@session.engine_condition_pushdown = 1.6;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '2'
ERROR 42000: Incorrect argument type to variable 'engine_condition_pushdown'
SET @@session.engine_condition_pushdown = "T";
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'T'
SET @@session.engine_condition_pushdown = "Y";
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'Y'
SET @@session.engine_condition_pushdown = TR<54>E;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'TRÜE'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'TR<EFBFBD>E'
SET @@session.engine_condition_pushdown = <20>N;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'ÕN'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '<EFBFBD>N'
SET @@session.engine_condition_pushdown = OF;
SELECT @@session.engine_condition_pushdown;
@@session.engine_condition_pushdown
0
'Bug# 34828: OF is taken as OFF and a value of 0 is set.'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'OF'
SET @@session.engine_condition_pushdown = <20>FF;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'ÓFF'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '<EFBFBD>FF'
SET @@global.engine_condition_pushdown = -1;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '-1'
SET @@global.engine_condition_pushdown = 2;
@@ -82,16 +79,13 @@ ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '
SET @@global.engine_condition_pushdown = "Y";
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'Y'
SET @@global.engine_condition_pushdown = TR<54>E;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'TRÜE'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'TR<EFBFBD>E'
SET @@global.engine_condition_pushdown = <20>N;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'ÕN'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '<EFBFBD>N'
SET @@global.engine_condition_pushdown = OF;
SELECT @@global.engine_condition_pushdown;
@@global.engine_condition_pushdown
0
'Bug# 34828: OF is taken as OFF and a value of 0 is set.'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'OF'
SET @@global.engine_condition_pushdown = <20>FF;
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of 'ÓFF'
ERROR 42000: Variable 'engine_condition_pushdown' can't be set to the value of '<EFBFBD>FF'
'#-------------------FN_DYNVARS_028_05----------------------------#'
SET @@global.engine_condition_pushdown = 0;
SET @@session.engine_condition_pushdown = 1;

View File

@@ -4,8 +4,9 @@ SELECT @start_value;
OFF
'#---------------------FN_DYNVARS_004_01-------------------------#'
SET @@global.event_scheduler = DEFAULT;
ERROR 42000: Variable 'event_scheduler' doesn't have a default value
'Bug# 34878: According to documentation the default value of variable is OFF';
SELECT @@global.event_scheduler;
@@global.event_scheduler
OFF
'#--------------------FN_DYNVARS_004_02------------------------#'
SET @@global.event_scheduler = ON;
SELECT @@global.event_scheduler;

View File

@@ -66,7 +66,6 @@ Warning 1292 Truncated incorrect expire_logs_days value: '42949672950'
SELECT @@global.expire_logs_days;
@@global.expire_logs_days
99
'Bug # 34837: Errors are not coming on assigning invalid values to variable'
SET @@global.expire_logs_days = ON;
ERROR 42000: Incorrect argument type to variable 'expire_logs_days'
SELECT @@global.expire_logs_days;

Some files were not shown because too many files have changed in this diff Show More