mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Bug#22436 Four tests require "innodb" to be configured, fail in "classic" build
- Disable warnings when creating the "innodb" tables if it works anyway. - Move test that are really innodb dependent to innodb_mysql
This commit is contained in:
@ -767,9 +767,3 @@ t1 CREATE TABLE `t1` (
|
|||||||
`i` int(11) default NULL
|
`i` int(11) default NULL
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 MAX_ROWS=4294967295
|
||||||
drop table t1;
|
drop table t1;
|
||||||
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
|
|
||||||
character set utf8 collate utf8_general_ci;
|
|
||||||
Warnings:
|
|
||||||
Warning 1071 Specified key was too long; max key length is 765 bytes
|
|
||||||
insert into t1 values('aaa');
|
|
||||||
drop table t1;
|
|
||||||
|
@ -337,3 +337,9 @@ id select_type table type possible_keys key key_len ref rows Extra
|
|||||||
1 SIMPLE t2 index NULL fkey 5 NULL 5 Using index
|
1 SIMPLE t2 index NULL fkey 5 NULL 5 Using index
|
||||||
1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.fkey 1 Using where
|
1 SIMPLE t1 eq_ref PRIMARY PRIMARY 4 test.t2.fkey 1 Using where
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
|
||||||
|
character set utf8 collate utf8_general_ci;
|
||||||
|
Warnings:
|
||||||
|
Warning 1071 Specified key was too long; max key length is 765 bytes
|
||||||
|
insert into t1 values('aaa');
|
||||||
|
drop table t1;
|
||||||
|
@ -666,12 +666,4 @@ alter table t1 max_rows=100000000000;
|
|||||||
show create table t1;
|
show create table t1;
|
||||||
drop table t1;
|
drop table t1;
|
||||||
|
|
||||||
#
|
|
||||||
# Bug#17530: Incorrect key truncation on table creation caused server crash.
|
|
||||||
#
|
|
||||||
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
|
|
||||||
character set utf8 collate utf8_general_ci;
|
|
||||||
insert into t1 values('aaa');
|
|
||||||
drop table t1;
|
|
||||||
|
|
||||||
# End of 5.0 tests
|
# End of 5.0 tests
|
||||||
|
@ -302,3 +302,11 @@ SELECT COUNT(*) FROM t2 LEFT JOIN t1 ON t2.fkey = t1.id
|
|||||||
WHERE t1.name LIKE 'A%' OR FALSE;
|
WHERE t1.name LIKE 'A%' OR FALSE;
|
||||||
|
|
||||||
DROP TABLE t1,t2;
|
DROP TABLE t1,t2;
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug#17530: Incorrect key truncation on table creation caused server crash.
|
||||||
|
#
|
||||||
|
create table t1(f1 varchar(800) binary not null, key(f1)) engine = innodb
|
||||||
|
character set utf8 collate utf8_general_ci;
|
||||||
|
insert into t1 values('aaa');
|
||||||
|
drop table t1;
|
||||||
|
@ -225,7 +225,10 @@ DROP TABLE t1;
|
|||||||
# Bug #17264: MySQL Server freeze
|
# Bug #17264: MySQL Server freeze
|
||||||
#
|
#
|
||||||
connection locker;
|
connection locker;
|
||||||
|
# Disable warnings to allow test to run also without InnoDB
|
||||||
|
--disable_warnings
|
||||||
create table t1 (f1 int(12) unsigned not null auto_increment, primary key(f1)) engine=innodb;
|
create table t1 (f1 int(12) unsigned not null auto_increment, primary key(f1)) engine=innodb;
|
||||||
|
--enable_warnings
|
||||||
lock tables t1 write;
|
lock tables t1 write;
|
||||||
connection writer;
|
connection writer;
|
||||||
--sleep 2
|
--sleep 2
|
||||||
|
@ -5634,7 +5634,10 @@ drop procedure bug16887|
|
|||||||
# Bug#13575 SP funcs in select with distinct/group and order by can
|
# Bug#13575 SP funcs in select with distinct/group and order by can
|
||||||
# produce bad data
|
# produce bad data
|
||||||
#
|
#
|
||||||
|
# Disable warnings to allow test to run also without InnoDB
|
||||||
|
--disable_warnings
|
||||||
create table t3 (f1 int, f2 varchar(3), primary key(f1)) engine=innodb|
|
create table t3 (f1 int, f2 varchar(3), primary key(f1)) engine=innodb|
|
||||||
|
--enable_warnings
|
||||||
insert into t3 values (1,'aaa'),(2,'bbb'),(3,'ccc')|
|
insert into t3 values (1,'aaa'),(2,'bbb'),(3,'ccc')|
|
||||||
CREATE FUNCTION bug13575 ( p1 integer )
|
CREATE FUNCTION bug13575 ( p1 integer )
|
||||||
returns varchar(3)
|
returns varchar(3)
|
||||||
|
@ -1801,7 +1801,10 @@ drop table t1;
|
|||||||
# underlying tables (BUG#6443)
|
# underlying tables (BUG#6443)
|
||||||
#
|
#
|
||||||
set sql_mode='strict_all_tables';
|
set sql_mode='strict_all_tables';
|
||||||
|
# Disable warnings to allow test to run aslo without InnoDB
|
||||||
|
--disable_warnings
|
||||||
CREATE TABLE t1 (col1 INT NOT NULL, col2 INT NOT NULL) ENGINE = INNODB;
|
CREATE TABLE t1 (col1 INT NOT NULL, col2 INT NOT NULL) ENGINE = INNODB;
|
||||||
|
--enable_warnings
|
||||||
CREATE VIEW v1 (vcol1) AS SELECT col1 FROM t1;
|
CREATE VIEW v1 (vcol1) AS SELECT col1 FROM t1;
|
||||||
CREATE VIEW v2 (vcol1) AS SELECT col1 FROM t1 WHERE col2 > 2;
|
CREATE VIEW v2 (vcol1) AS SELECT col1 FROM t1 WHERE col2 > 2;
|
||||||
-- error 1364
|
-- error 1364
|
||||||
@ -1857,7 +1860,9 @@ drop table t1;
|
|||||||
#
|
#
|
||||||
# Test for bug #11771: wrong query_id in SELECT * FROM <view>
|
# Test for bug #11771: wrong query_id in SELECT * FROM <view>
|
||||||
#
|
#
|
||||||
|
--disable_warnings
|
||||||
CREATE TABLE t1 (f1 char) ENGINE = innodb;
|
CREATE TABLE t1 (f1 char) ENGINE = innodb;
|
||||||
|
--enable_warnings
|
||||||
INSERT INTO t1 VALUES ('A');
|
INSERT INTO t1 VALUES ('A');
|
||||||
CREATE VIEW v1 AS SELECT * FROM t1;
|
CREATE VIEW v1 AS SELECT * FROM t1;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user