Bug#24997 warnings test case failure
- Move the specific test case to a separate file that is run only if we have a disabled handler.
This commit is contained in:
parent
e25b1344cd
commit
a246eb39bb
@ -166,13 +166,6 @@ show variables like 'max_error_count';
|
|||||||
Variable_name Value
|
Variable_name Value
|
||||||
max_error_count 10
|
max_error_count 10
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1 (id int) engine=NDB;
|
|
||||||
Warnings:
|
|
||||||
Warning 1266 Using storage engine MyISAM for table 't1'
|
|
||||||
alter table t1 engine=NDB;
|
|
||||||
Warnings:
|
|
||||||
Warning 1266 Using storage engine MyISAM for table 't1'
|
|
||||||
drop table t1;
|
|
||||||
set table_type=MYISAM;
|
set table_type=MYISAM;
|
||||||
Warnings:
|
Warnings:
|
||||||
Warning 1541 The syntax 'table_type' is deprecated and will be removed in MySQL 5.2. Please use 'storage_engine' instead
|
Warning 1541 The syntax 'table_type' is deprecated and will be removed in MySQL 5.2. Please use 'storage_engine' instead
|
||||||
|
7
mysql-test/r/warnings_engine_disabled.result
Normal file
7
mysql-test/r/warnings_engine_disabled.result
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
create table t1 (id int) engine=NDB;
|
||||||
|
Warnings:
|
||||||
|
Warning 1266 Using storage engine MyISAM for table 't1'
|
||||||
|
alter table t1 engine=NDB;
|
||||||
|
Warnings:
|
||||||
|
Warning 1266 Using storage engine MyISAM for table 't1'
|
||||||
|
drop table t1;
|
@ -109,12 +109,6 @@ show variables like 'max_error_count';
|
|||||||
set max_error_count=10;
|
set max_error_count=10;
|
||||||
show variables like 'max_error_count';
|
show variables like 'max_error_count';
|
||||||
|
|
||||||
#
|
|
||||||
# Test for handler type
|
|
||||||
#
|
|
||||||
drop table t1;
|
|
||||||
create table t1 (id int) engine=NDB;
|
|
||||||
alter table t1 engine=NDB;
|
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
#
|
#
|
||||||
|
1
mysql-test/t/warnings_engine_disabled-master.opt
Normal file
1
mysql-test/t/warnings_engine_disabled-master.opt
Normal file
@ -0,0 +1 @@
|
|||||||
|
--loose-skip-ndb
|
19
mysql-test/t/warnings_engine_disabled.test
Normal file
19
mysql-test/t/warnings_engine_disabled.test
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
#
|
||||||
|
# Only run this test with a compiled in but disabled
|
||||||
|
# engine
|
||||||
|
#
|
||||||
|
disable_query_log;
|
||||||
|
--require r/true.require
|
||||||
|
select support = 'Disabled' as `TRUE` from information_schema.engines where engine = 'ndbcluster';
|
||||||
|
enable_query_log;
|
||||||
|
|
||||||
|
|
||||||
|
#
|
||||||
|
# Test for handler type, will select MyISAM and print a warning
|
||||||
|
# about that - since NDB is disabled
|
||||||
|
#
|
||||||
|
create table t1 (id int) engine=NDB;
|
||||||
|
alter table t1 engine=NDB;
|
||||||
|
drop table t1;
|
||||||
|
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user