Commit 8eac0504 authored by Eugene Kosov's avatar Eugene Kosov Committed by GitHub

Tests: revert unneded changes

parent 21928039
......@@ -1577,6 +1577,171 @@ t1 CREATE TABLE `t1` (
) ENGINE=MyISAM DEFAULT CHARSET=latin1
DROP TABLE t1;
End of 5.1 tests
#
# Bug#34828: OF is taken as OFF and a value of 0 is set for variable SQL_notes.
#
# Checking sql_notes...
SET @sql_notes_saved = @@sql_notes;
SET @@sql_notes = ON;
SELECT @@sql_notes;
@@sql_notes
1
SET @@sql_notes = OF;
ERROR 42000: Variable 'sql_notes' can't be set to the value of 'OF'
SELECT @@sql_notes;
@@sql_notes
1
SET @@sql_notes = OFF;
SELECT @@sql_notes;
@@sql_notes
0
SET @@sql_notes = @sql_notes_saved;
# Checking delay_key_write...
SET @delay_key_write_saved = @@delay_key_write;
SET GLOBAL delay_key_write = ON;
SELECT @@delay_key_write;
@@delay_key_write
ON
SET GLOBAL delay_key_write = OF;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'OF'
SELECT @@delay_key_write;
@@delay_key_write
ON
SET GLOBAL delay_key_write = AL;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'AL'
SELECT @@delay_key_write;
@@delay_key_write
ON
SET GLOBAL delay_key_write = OFF;
SELECT @@delay_key_write;
@@delay_key_write
OFF
SET GLOBAL delay_key_write = ALL;
SELECT @@delay_key_write;
@@delay_key_write
ALL
SET GLOBAL delay_key_write = @delay_key_write_saved;
# Checking sql_safe_updates...
SET @sql_safe_updates_saved = @@sql_safe_updates;
SET @@sql_safe_updates = ON;
SELECT @@sql_safe_updates;
@@sql_safe_updates
1
SET @@sql_safe_updates = OF;
ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'OF'
SELECT @@sql_safe_updates;
@@sql_safe_updates
1
SET @@sql_safe_updates = OFF;
SELECT @@sql_safe_updates;
@@sql_safe_updates
0
SET @@sql_safe_updates = @sql_safe_updates_saved;
# Checking foreign_key_checks...
SET @foreign_key_checks_saved = @@foreign_key_checks;
SET @@foreign_key_checks = ON;
SELECT @@foreign_key_checks;
@@foreign_key_checks
1
SET @@foreign_key_checks = OF;
ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'OF'
SELECT @@foreign_key_checks;
@@foreign_key_checks
1
SET @@foreign_key_checks = OFF;
SELECT @@foreign_key_checks;
@@foreign_key_checks
0
SET @@foreign_key_checks = @foreign_key_checks_saved;
# Checking unique_checks...
SET @unique_checks_saved = @@unique_checks;
SET @@unique_checks = ON;
SELECT @@unique_checks;
@@unique_checks
1
SET @@unique_checks = OF;
ERROR 42000: Variable 'unique_checks' can't be set to the value of 'OF'
SELECT @@unique_checks;
@@unique_checks
1
SET @@unique_checks = OFF;
SELECT @@unique_checks;
@@unique_checks
0
SET @@unique_checks = @unique_checks_saved;
# Checking sql_buffer_result...
SET @sql_buffer_result_saved = @@sql_buffer_result;
SET @@sql_buffer_result = ON;
SELECT @@sql_buffer_result;
@@sql_buffer_result
1
SET @@sql_buffer_result = OF;
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'OF'
SELECT @@sql_buffer_result;
@@sql_buffer_result
1
SET @@sql_buffer_result = OFF;
SELECT @@sql_buffer_result;
@@sql_buffer_result
0
SET @@sql_buffer_result = @sql_buffer_result_saved;
# Checking sql_quote_show_create...
SET @sql_quote_show_create_saved = @@sql_quote_show_create;
SET @@sql_quote_show_create = ON;
SELECT @@sql_quote_show_create;
@@sql_quote_show_create
1
SET @@sql_quote_show_create = OF;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'OF'
SELECT @@sql_quote_show_create;
@@sql_quote_show_create
1
SET @@sql_quote_show_create = OFF;
SELECT @@sql_quote_show_create;
@@sql_quote_show_create
0
SET @@sql_quote_show_create = @sql_quote_show_create_saved;
# End of Bug#34828.
# Make sure we can manipulate with autocommit in the
# along with other variables.
drop table if exists t1;
......
##############################################################################
#
# List the test cases that are to be disabled temporarily.
#
# Separate the test case name and the comment with ':'.
#
# <testcasename> : BUG#<xxxx> <date disabled> <disabler> <comment>
#
# Do not use any TAB characters for whitespace.
#
##############################################################################
......@@ -5,15 +5,14 @@ d CHAR(255),
id INT,
PRIMARY KEY(id)) ENGINE=InnoDB;
create table t2 like t1;
create function getcrash(i INT)
returns VARCHAR(255)
create procedure setcrash(IN i INT)
begin
CASE i
WHEN 1 THEN RETURN "crash_commit_after_prepare";
WHEN 2 THEN RETURN "crash_commit_after_log";
WHEN 3 THEN RETURN "crash_commit_before_unlog";
WHEN 4 THEN RETURN "crash_commit_after";
WHEN 5 THEN RETURN "crash_commit_before";
WHEN 1 THEN SET SESSION debug_dbug="d,crash_commit_after_prepare";
WHEN 2 THEN SET SESSION debug_dbug="d,crash_commit_after_log";
WHEN 3 THEN SET SESSION debug_dbug="d,crash_commit_before_unlog";
WHEN 4 THEN SET SESSION debug_dbug="d,crash_commit_after";
WHEN 5 THEN SET SESSION debug_dbug="d,crash_commit_before";
ELSE BEGIN END;
END CASE;
end //
......@@ -32,12 +31,9 @@ SET binlog_format= mixed;
RESET MASTER;
START TRANSACTION;
insert into t1 select * from t2;
SET @crash= getcrash(5);
SET SESSION debug_dbug=concat("d,", @crash);
call setcrash(5);
COMMIT;
Got one of the listed errors
CRASH_POINT
crash_commit_before
SELECT * FROM t1 ORDER BY id;
a b c d id
SHOW BINLOG EVENTS LIMIT 4,1;
......@@ -47,12 +43,9 @@ SET binlog_format= mixed;
RESET MASTER;
START TRANSACTION;
insert into t1 select * from t2;
SET @crash= getcrash(4);
SET SESSION debug_dbug=concat("d,", @crash);
call setcrash(4);
COMMIT;
Got one of the listed errors
CRASH_POINT
crash_commit_after
SELECT * FROM t1 ORDER BY id;
a b c d id
a b c d 1
......@@ -73,12 +66,9 @@ SET binlog_format= mixed;
RESET MASTER;
START TRANSACTION;
insert into t1 select * from t2;
SET @crash= getcrash(3);
SET SESSION debug_dbug=concat("d,", @crash);
call setcrash(3);
COMMIT;
Got one of the listed errors
CRASH_POINT
crash_commit_before_unlog
SELECT * FROM t1 ORDER BY id;
a b c d id
a b c d 1
......@@ -99,12 +89,9 @@ SET binlog_format= mixed;
RESET MASTER;
START TRANSACTION;
insert into t1 select * from t2;
SET @crash= getcrash(2);
SET SESSION debug_dbug=concat("d,", @crash);
call setcrash(2);
COMMIT;
Got one of the listed errors
CRASH_POINT
crash_commit_after_log
SELECT * FROM t1 ORDER BY id;
a b c d id
a b c d 1
......@@ -125,12 +112,9 @@ SET binlog_format= mixed;
RESET MASTER;
START TRANSACTION;
insert into t1 select * from t2;
SET @crash= getcrash(1);
SET SESSION debug_dbug=concat("d,", @crash);
call setcrash(1);
COMMIT;
Got one of the listed errors
CRASH_POINT
crash_commit_after_prepare
SELECT * FROM t1 ORDER BY id;
a b c d id
SHOW BINLOG EVENTS LIMIT 4,1;
......@@ -138,4 +122,4 @@ Log_name Pos Event_type Server_id End_log_pos Info
delete from t1;
DROP TABLE t1;
DROP TABLE t2;
DROP FUNCTION getcrash;
DROP PROCEDURE setcrash;
......@@ -17,15 +17,14 @@ CREATE TABLE t1(a CHAR(255),
PRIMARY KEY(id)) ENGINE=InnoDB;
create table t2 like t1;
delimiter //;
create function getcrash(i INT)
returns VARCHAR(255)
create procedure setcrash(IN i INT)
begin
CASE i
WHEN 1 THEN RETURN "crash_commit_after_prepare";
WHEN 2 THEN RETURN "crash_commit_after_log";
WHEN 3 THEN RETURN "crash_commit_before_unlog";
WHEN 4 THEN RETURN "crash_commit_after";
WHEN 5 THEN RETURN "crash_commit_before";
WHEN 1 THEN SET SESSION debug_dbug="d,crash_commit_after_prepare";
WHEN 2 THEN SET SESSION debug_dbug="d,crash_commit_after_log";
WHEN 3 THEN SET SESSION debug_dbug="d,crash_commit_before_unlog";
WHEN 4 THEN SET SESSION debug_dbug="d,crash_commit_after";
WHEN 5 THEN SET SESSION debug_dbug="d,crash_commit_before";
ELSE BEGIN END;
END CASE;
end //
......@@ -54,8 +53,8 @@ while ($numtests)
# Write file to make mysql-test-run.pl expect crash
--exec echo "restart" > $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
eval SET @crash= getcrash($numtests);
SET SESSION debug_dbug=concat("d,", @crash);
eval call setcrash($numtests);
# Run the crashing query
--error 2006,2013
COMMIT;
......@@ -63,10 +62,6 @@ while ($numtests)
# Poll the server waiting for it to be back online again.
--source include/wait_until_connected_again.inc
--disable_query_log
eval SET @crash= getcrash($numtests);
SELECT @crash as CRASH_POINT;
--enable_query_log
# table and binlog should be in sync.
SELECT * FROM t1 ORDER BY id;
--replace_column 2 # 5 #
......@@ -80,4 +75,4 @@ while ($numtests)
# final cleanup
DROP TABLE t1;
DROP TABLE t2;
DROP FUNCTION getcrash;
DROP PROCEDURE setcrash;
......@@ -37,8 +37,8 @@ SET @@global.delay_key_write = FALSE0;
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 = OFFF;
ERROR 42000: Variable 'delay_key_write' can't be set to the value of 'OFFF'
SET @@global.delay_key_write = OF;
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 = "";
......
......@@ -43,8 +43,8 @@ SET @@session.foreign_key_checks = TR
ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'TRE'
SET @@session.foreign_key_checks = N;
ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'N'
SET @@session.foreign_key_checks = OFFF;
ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'OFFF'
SET @@session.foreign_key_checks = OF;
ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'OF'
SET @@session.foreign_key_checks = FF;
ERROR 42000: Variable 'foreign_key_checks' can't be set to the value of 'FF'
SET @@session.foreign_key_checks = '';
......
......@@ -66,7 +66,7 @@ SET @@session.innodb_table_locks = TR
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'TRE'
SET @@session.innodb_table_locks = N;
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'N'
SET @@session.innodb_table_locks = OFF;
SET @@session.innodb_table_locks = OF;
SELECT @@session.innodb_table_locks;
@@session.innodb_table_locks
0
......@@ -84,7 +84,7 @@ SET @@global.innodb_table_locks = TR
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'TRE'
SET @@global.innodb_table_locks = QN;
ERROR 42000: Variable 'innodb_table_locks' can't be set to the value of 'QN'
SET @@global.innodb_table_locks = OFF;
SET @@global.innodb_table_locks = OF;
SELECT @@global.innodb_table_locks;
@@global.innodb_table_locks
0
......
......@@ -101,8 +101,8 @@ SET @@session.keep_files_on_create = ONN;
ERROR 42000: Variable 'keep_files_on_create' can't be set to the value of 'ONN'
SET @@session.keep_files_on_create = ONF;
ERROR 42000: Variable 'keep_files_on_create' can't be set to the value of 'ONF'
SET @@session.keep_files_on_create = OFFF;
ERROR 42000: Variable 'keep_files_on_create' can't be set to the value of 'OFFF'
SET @@session.keep_files_on_create = OF;
ERROR 42000: Variable 'keep_files_on_create' can't be set to the value of 'OF'
SET @@session.keep_files_on_create = 'OFN';
ERROR 42000: Variable 'keep_files_on_create' can't be set to the value of 'OFN'
SET @@session.keep_files_on_create = -2;
......
......@@ -50,8 +50,8 @@ SET @@global.log_bin_trust_function_creators = 'ONN';
ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'ONN'
SET @@global.log_bin_trust_function_creators = "OFFF";
ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'OFFF'
SET @@global.log_bin_trust_function_creators = OFFF;
ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'OFFF'
SET @@global.log_bin_trust_function_creators = OF;
ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'OF'
SET @@global.log_bin_trust_function_creators = TTRUE;
ERROR 42000: Variable 'log_bin_trust_function_creators' can't be set to the value of 'TTRUE'
SET @@global.log_bin_trust_function_creators = FELSE;
......
......@@ -101,8 +101,8 @@ SET @@session.low_priority_updates = ONN;
ERROR 42000: Variable 'low_priority_updates' can't be set to the value of 'ONN'
SET @@session.low_priority_updates = ONF;
ERROR 42000: Variable 'low_priority_updates' can't be set to the value of 'ONF'
SET @@session.low_priority_updates = OFFF;
ERROR 42000: Variable 'low_priority_updates' can't be set to the value of 'OFFF'
SET @@session.low_priority_updates = OF;
ERROR 42000: Variable 'low_priority_updates' can't be set to the value of 'OF'
SET @@session.low_priority_updates = 'OFN';
ERROR 42000: Variable 'low_priority_updates' can't be set to the value of 'OFN'
SET @@session.low_priority_updates = -2;
......
......@@ -97,8 +97,8 @@ SET @@session.old_passwords = ONN;
ERROR 42000: Variable 'old_passwords' can't be set to the value of 'ONN'
SET @@session.old_passwords = ONF;
ERROR 42000: Variable 'old_passwords' can't be set to the value of 'ONF'
SET @@session.old_passwords = OFFF;
ERROR 42000: Variable 'old_passwords' can't be set to the value of 'OFFF'
SET @@session.old_passwords = OF;
ERROR 42000: Variable 'old_passwords' can't be set to the value of 'OF'
SET @@session.old_passwords = 'OFN';
ERROR 42000: Variable 'old_passwords' can't be set to the value of 'OFN'
SET @@session.old_passwords = -2;
......
......@@ -104,7 +104,7 @@ SET @@session.optimizer_prune_level = ONF;
ERROR 42000: Incorrect argument type to variable 'optimizer_prune_level'
SET @@session.optimizer_prune_level = ON;
ERROR 42000: Incorrect argument type to variable 'optimizer_prune_level'
SET @@session.optimizer_prune_level = OFFF;
SET @@session.optimizer_prune_level = OF;
ERROR 42000: Incorrect argument type to variable 'optimizer_prune_level'
SET @@session.optimizer_prune_level = 'OFN';
ERROR 42000: Incorrect argument type to variable 'optimizer_prune_level'
......
......@@ -58,8 +58,8 @@ SET @@session.pseudo_slave_mode = TR
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'TRE'
SET @@session.pseudo_slave_mode = N;
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'N'
SET @@session.pseudo_slave_mode = OFFF;
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'OFFF'
SET @@session.pseudo_slave_mode = OF;
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'OF'
SET @@session.pseudo_slave_mode = FF;
ERROR 42000: Variable 'pseudo_slave_mode' can't be set to the value of 'FF'
SET @@session.pseudo_slave_mode = '';
......
......@@ -66,8 +66,8 @@ SET @@session.query_cache_wlock_invalidate = TR
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'TRE'
SET @@session.query_cache_wlock_invalidate = N;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'N'
SET @@session.query_cache_wlock_invalidate = OFFF;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'OFFF'
SET @@session.query_cache_wlock_invalidate = OF;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'OF'
SET @@session.query_cache_wlock_invalidate = FF;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'FF'
SET @@global.query_cache_wlock_invalidate = -1;
......@@ -82,8 +82,8 @@ SET @@global.query_cache_wlock_invalidate = TR
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'TRE'
SET @@global.query_cache_wlock_invalidate = N;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'N'
SET @@global.query_cache_wlock_invalidate = OFFF;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'OFFF'
SET @@global.query_cache_wlock_invalidate = OF;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'OF'
SET @@global.query_cache_wlock_invalidate = FF;
ERROR 42000: Variable 'query_cache_wlock_invalidate' can't be set to the value of 'FF'
'#-------------------FN_DYNVARS_135_05----------------------------#'
......
......@@ -43,8 +43,8 @@ SET @@session.sql_big_selects = TR
ERROR 42000: Variable 'sql_big_selects' can't be set to the value of 'TRE'
SET @@session.sql_big_selects = N;
ERROR 42000: Variable 'sql_big_selects' can't be set to the value of 'N'
SET @@session.sql_big_selects = OFFF;
ERROR 42000: Variable 'sql_big_selects' can't be set to the value of 'OFFF'
SET @@session.sql_big_selects = OF;
ERROR 42000: Variable 'sql_big_selects' can't be set to the value of 'OF'
SET @@session.sql_big_selects = FF;
ERROR 42000: Variable 'sql_big_selects' can't be set to the value of 'FF'
SET @@session.sql_big_selects = '';
......
......@@ -48,7 +48,7 @@ SET @@session.sql_big_tables = TR
ERROR 42000: Variable 'sql_big_tables' can't be set to the value of 'TRÜE'
SET @@session.sql_big_tables = ÕN;
ERROR 42000: Variable 'sql_big_tables' can't be set to the value of 'ÕN'
SET @@session.sql_big_tables = OFFF;
SET @@session.sql_big_tables = OF;
ERROR 42000: Variable 'sql_big_tables' can't be set to the value of 'OF'
SET @@session.sql_big_tables = ÓFF;
ERROR 42000: Variable 'sql_big_tables' can't be set to the value of 'ÓFF'
......
......@@ -48,8 +48,8 @@ SET @@session.sql_buffer_result = TR
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'TRE'
SET @@session.sql_buffer_result = N;
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'N'
SET @@session.sql_buffer_result = OFFF;
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'OFFF'
SET @@session.sql_buffer_result = OF;
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'OF'
SET @@session.sql_buffer_result = FF;
ERROR 42000: Variable 'sql_buffer_result' can't be set to the value of 'FF'
SET @@session.sql_buffer_result = '';
......
......@@ -48,8 +48,8 @@ SET @@session.sql_log_bin = TR
ERROR 42000: Variable 'sql_log_bin' can't be set to the value of 'TRE'
SET @@session.sql_log_bin = N;
ERROR 42000: Variable 'sql_log_bin' can't be set to the value of 'N'
SET @@session.sql_log_bin = OFFF;
ERROR 42000: Variable 'sql_log_bin' can't be set to the value of 'OFFF'
SET @@session.sql_log_bin = OF;
ERROR 42000: Variable 'sql_log_bin' can't be set to the value of 'OF'
SET @@session.sql_log_bin = FF;
ERROR 42000: Variable 'sql_log_bin' can't be set to the value of 'FF'
SET @@session.sql_log_bin = '';
......
......@@ -48,8 +48,8 @@ SET @@session.sql_log_off = TR
ERROR 42000: Variable 'sql_log_off' can't be set to the value of 'TRE'
SET @@session.sql_log_off = N;
ERROR 42000: Variable 'sql_log_off' can't be set to the value of 'N'
SET @@session.sql_log_off = OFFF;
ERROR 42000: Variable 'sql_log_off' can't be set to the value of 'OFFF'
SET @@session.sql_log_off = OF;
ERROR 42000: Variable 'sql_log_off' can't be set to the value of 'OF'
SET @@session.sql_log_off = FF;
ERROR 42000: Variable 'sql_log_off' can't be set to the value of 'FF'
SET @@session.sql_log_off = '';
......
......@@ -63,7 +63,7 @@ SET @@session.sql_low_priority_updates = TR
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'TRE'
SET @@session.sql_low_priority_updates = N;
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'N'
SET @@session.sql_low_priority_updates = OFFF;
SET @@session.sql_low_priority_updates = OF;
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'OF'
SET @@session.sql_low_priority_updates = FF;
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'FF'
......@@ -79,7 +79,7 @@ SET @@global.sql_low_priority_updates = TR
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'TRE'
SET @@global.sql_low_priority_updates = N;
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'N'
SET @@global.sql_low_priority_updates = OFFF;
SET @@global.sql_low_priority_updates = OF;
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'OF'
SET @@global.sql_low_priority_updates = FF;
ERROR 42000: Variable 'sql_low_priority_updates' can't be set to the value of 'FF'
......
......@@ -48,8 +48,8 @@ SET @@session.sql_notes = TR
ERROR 42000: Variable 'sql_notes' can't be set to the value of 'TRÜE'
SET @@session.sql_notes = ÕN;
ERROR 42000: Variable 'sql_notes' can't be set to the value of 'ÕN'
SET @@session.sql_notes = OFFF;
ERROR 42000: Variable 'sql_notes' can't be set to the value of 'OFFF'
SET @@session.sql_notes = OF;
ERROR 42000: Variable 'sql_notes' can't be set to the value of 'OF'
SET @@session.sql_notes = ÓFF;
ERROR 42000: Variable 'sql_notes' can't be set to the value of 'ÓFF'
SET @@session.sql_notes = '¹';
......
......@@ -48,8 +48,8 @@ SET @@session.sql_quote_show_create = TR
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'TRÜE'
SET @@session.sql_quote_show_create = ÕN;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'ÕN'
SET @@session.sql_quote_show_create = OFFF;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'OFFF'
SET @@session.sql_quote_show_create = OF;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'OF'
SET @@session.sql_quote_show_create = ÓFF;
ERROR 42000: Variable 'sql_quote_show_create' can't be set to the value of 'ÓFF'
SET @@session.sql_quote_show_create = '¹';
......
......@@ -48,8 +48,8 @@ SET @@session.sql_safe_updates = TR
ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'TRÜE'
SET @@session.sql_safe_updates = ÕN;
ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'ÕN'
SET @@session.sql_safe_updates = OFFF;
ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'OFFF'
SET @@session.sql_safe_updates = OF;
ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'OF'
SET @@session.sql_safe_updates = ÓFF;
ERROR 42000: Variable 'sql_safe_updates' can't be set to the value of 'ÓFF'
SET @@session.sql_safe_updates = '¹';
......
......@@ -46,8 +46,8 @@ SET @@session.sql_warnings = TR
ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'TRE'
SET @@session.sql_warnings = N;
ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'N'
SET @@session.sql_warnings = OFFF;
ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'OFFF'
SET @@session.sql_warnings = OF;
ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'OF'
SET @@session.sql_warnings = FF;
ERROR 42000: Variable 'sql_warnings' can't be set to the value of 'FF'
SET @@session.sql_warnings = '';
......
......@@ -102,8 +102,8 @@ SET @@session.tx_read_only = ONN;
ERROR 42000: Variable 'tx_read_only' can't be set to the value of 'ONN'
SET @@session.tx_read_only = ONF;
ERROR 42000: Variable 'tx_read_only' can't be set to the value of 'ONF'
SET @@session.tx_read_only = OFFF;
ERROR 42000: Variable 'tx_read_only' can't be set to the value of 'OFFF'
SET @@session.tx_read_only = OF;
ERROR 42000: Variable 'tx_read_only' can't be set to the value of 'OF'
SET @@session.tx_read_only = 'OFN';
ERROR 42000: Variable 'tx_read_only' can't be set to the value of 'OFN'
SET @@session.tx_read_only = -2;
......
......@@ -90,7 +90,7 @@ SET @@global.delay_key_write = FALSE0;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.delay_key_write = ONN;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.delay_key_write = OFFF;
SET @@global.delay_key_write = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.delay_key_write = ' ';
......
......@@ -94,7 +94,7 @@ SET @@session.foreign_key_checks = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.foreign_key_checks = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.foreign_key_checks = OFFF;
SET @@session.foreign_key_checks = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.foreign_key_checks = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -119,7 +119,7 @@ SET @@session.innodb_table_locks = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.innodb_table_locks = N;
SET @@session.innodb_table_locks = OFF;
SET @@session.innodb_table_locks = OF;
SELECT @@session.innodb_table_locks;
--Error ER_WRONG_VALUE_FOR_VAR
......@@ -141,7 +141,7 @@ SET @@global.innodb_table_locks = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.innodb_table_locks = QN;
SET @@global.innodb_table_locks = OFF;
SET @@global.innodb_table_locks = OF;
SELECT @@global.innodb_table_locks;
--Error ER_WRONG_TYPE_FOR_VAR
......
......@@ -132,7 +132,7 @@ SET @@session.keep_files_on_create = ONN;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.keep_files_on_create = ONF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.keep_files_on_create = OFFF;
SET @@session.keep_files_on_create = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.keep_files_on_create = 'OFN';
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -96,7 +96,7 @@ SET @@global.log_bin_trust_function_creators = 'ONN';
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.log_bin_trust_function_creators = "OFFF";
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.log_bin_trust_function_creators = OFFF;
SET @@global.log_bin_trust_function_creators = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.log_bin_trust_function_creators = TTRUE;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -132,7 +132,7 @@ SET @@session.low_priority_updates = ONN;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.low_priority_updates = ONF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.low_priority_updates = OFFF;
SET @@session.low_priority_updates = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.low_priority_updates = 'OFN';
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -131,7 +131,7 @@ SET @@session.old_passwords = ONN;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.old_passwords = ONF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.old_passwords = OFFF;
SET @@session.old_passwords = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.old_passwords = 'OFN';
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -140,7 +140,7 @@ SET @@session.optimizer_prune_level = ONF;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.optimizer_prune_level = ON;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.optimizer_prune_level = OFFF;
SET @@session.optimizer_prune_level = OF;
--Error ER_WRONG_TYPE_FOR_VAR
SET @@session.optimizer_prune_level = 'OFN';
......
......@@ -97,7 +97,7 @@ SET @@session.pseudo_slave_mode = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.pseudo_slave_mode = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.pseudo_slave_mode = OFFF;
SET @@session.pseudo_slave_mode = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.pseudo_slave_mode = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -116,7 +116,7 @@ SET @@session.query_cache_wlock_invalidate = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.query_cache_wlock_invalidate = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.query_cache_wlock_invalidate = OFFF;
SET @@session.query_cache_wlock_invalidate = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.query_cache_wlock_invalidate = FF;
......@@ -135,7 +135,7 @@ SET @@global.query_cache_wlock_invalidate = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.query_cache_wlock_invalidate = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.query_cache_wlock_invalidate = OFFF;
SET @@global.query_cache_wlock_invalidate = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@global.query_cache_wlock_invalidate = FF;
......
......@@ -94,7 +94,7 @@ SET @@session.sql_big_selects = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_big_selects = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_big_selects = OFFF;
SET @@session.sql_big_selects = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_big_selects = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -100,7 +100,7 @@ SET @@session.sql_buffer_result = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_buffer_result = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_buffer_result = OFFF;
SET @@session.sql_buffer_result = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_buffer_result = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -98,7 +98,7 @@ SET @@session.sql_log_bin = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_log_bin = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_log_bin = OFFF;
SET @@session.sql_log_bin = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_log_bin = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -97,7 +97,7 @@ SET @@session.sql_log_off = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_log_off = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_log_off = OFFF;
SET @@session.sql_log_off = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_log_off = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -99,7 +99,7 @@ SET @@session.sql_notes = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_notes = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_notes = OFFF;
SET @@session.sql_notes = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_notes = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -98,7 +98,7 @@ SET @@session.sql_quote_show_create = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_quote_show_create = ÕN;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_quote_show_create = OFFF;
SET @@session.sql_quote_show_create = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_quote_show_create = ÓFF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -97,7 +97,7 @@ SET @@session.sql_safe_updates = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_safe_updates = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_safe_updates = OFFF;
SET @@session.sql_safe_updates = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_safe_updates = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -98,7 +98,7 @@ SET @@session.sql_warnings = TR
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_warnings = N;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_warnings = OFFF;
SET @@session.sql_warnings = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.sql_warnings = FF;
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -116,7 +116,7 @@ SET @@session.tx_read_only = ONN;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.tx_read_only = ONF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.tx_read_only = OFFF;
SET @@session.tx_read_only = OF;
--Error ER_WRONG_VALUE_FOR_VAR
SET @@session.tx_read_only = 'OFN';
--Error ER_WRONG_VALUE_FOR_VAR
......
......@@ -1295,6 +1295,166 @@ DROP TABLE t1;
--echo End of 5.1 tests
###########################################################################
--echo
--echo #
--echo # Bug#34828: OF is taken as OFF and a value of 0 is set for variable SQL_notes.
--echo #
--echo
--echo # Checking sql_notes...
SET @sql_notes_saved = @@sql_notes;
--echo
SET @@sql_notes = ON;
SELECT @@sql_notes;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET @@sql_notes = OF;
SELECT @@sql_notes;
--echo
SET @@sql_notes = OFF;
SELECT @@sql_notes;
--echo
SET @@sql_notes = @sql_notes_saved;
--echo
--echo # Checking delay_key_write...
SET @delay_key_write_saved = @@delay_key_write;
--echo
SET GLOBAL delay_key_write = ON;
SELECT @@delay_key_write;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL delay_key_write = OF;
SELECT @@delay_key_write;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET GLOBAL delay_key_write = AL;
SELECT @@delay_key_write;
--echo
SET GLOBAL delay_key_write = OFF;
SELECT @@delay_key_write;
--echo
SET GLOBAL delay_key_write = ALL;
SELECT @@delay_key_write;
--echo
SET GLOBAL delay_key_write = @delay_key_write_saved;
--echo
--echo # Checking sql_safe_updates...
SET @sql_safe_updates_saved = @@sql_safe_updates;
--echo
SET @@sql_safe_updates = ON;
SELECT @@sql_safe_updates;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET @@sql_safe_updates = OF;
SELECT @@sql_safe_updates;
--echo
SET @@sql_safe_updates = OFF;
SELECT @@sql_safe_updates;
--echo
SET @@sql_safe_updates = @sql_safe_updates_saved;
--echo
--echo # Checking foreign_key_checks...
SET @foreign_key_checks_saved = @@foreign_key_checks;
--echo
SET @@foreign_key_checks = ON;
SELECT @@foreign_key_checks;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET @@foreign_key_checks = OF;
SELECT @@foreign_key_checks;
--echo
SET @@foreign_key_checks = OFF;
SELECT @@foreign_key_checks;
--echo
SET @@foreign_key_checks = @foreign_key_checks_saved;
--echo
--echo # Checking unique_checks...
SET @unique_checks_saved = @@unique_checks;
--echo
SET @@unique_checks = ON;
SELECT @@unique_checks;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET @@unique_checks = OF;
SELECT @@unique_checks;
--echo
SET @@unique_checks = OFF;
SELECT @@unique_checks;
--echo
SET @@unique_checks = @unique_checks_saved;
--echo
--echo # Checking sql_buffer_result...
SET @sql_buffer_result_saved = @@sql_buffer_result;
--echo
SET @@sql_buffer_result = ON;
SELECT @@sql_buffer_result;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET @@sql_buffer_result = OF;
SELECT @@sql_buffer_result;
--echo
SET @@sql_buffer_result = OFF;
SELECT @@sql_buffer_result;
--echo
SET @@sql_buffer_result = @sql_buffer_result_saved;
--echo
--echo # Checking sql_quote_show_create...
SET @sql_quote_show_create_saved = @@sql_quote_show_create;
--echo
SET @@sql_quote_show_create = ON;
SELECT @@sql_quote_show_create;
--echo
--error ER_WRONG_VALUE_FOR_VAR
SET @@sql_quote_show_create = OF;
SELECT @@sql_quote_show_create;
--echo
SET @@sql_quote_show_create = OFF;
SELECT @@sql_quote_show_create;
--echo
SET @@sql_quote_show_create = @sql_quote_show_create_saved;
--echo
--echo # End of Bug#34828.
--echo
--echo # Make sure we can manipulate with autocommit in the
--echo # along with other variables.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment