mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
10.0-monty merge
includes: * remove some remnants of "Bug#14521864: MYSQL 5.1 TO 5.5 BUGS PARTITIONING" * introduce LOCK_share, now LOCK_ha_data is strictly for engines * rea_create_table() always creates .par file (even in "frm-only" mode) * fix a 5.6 bug, temp file leak on dummy ALTER TABLE
This commit is contained in:
@ -25,7 +25,7 @@
|
||||
# where just some indexes have been created must be used.
|
||||
#
|
||||
|
||||
eval SET SESSION STORAGE_ENGINE = $engine_type;
|
||||
eval SET SESSION DEFAULT_STORAGE_ENGINE = $engine_type;
|
||||
|
||||
--disable_warnings
|
||||
drop table if exists t1,t2,t3,t1m,t1i,t2m,t2i,t4;
|
||||
@ -388,7 +388,7 @@ drop table t1;
|
||||
# Bug #13293 Wrongly used index results in endless loop.
|
||||
# (was part of group_min_max.test)
|
||||
#
|
||||
create table t1 (f1 int, f2 char(1), primary key(f1,f2));
|
||||
create table t1 (f1 int, f2 char(1), primary key(f1,f2)) stats_persistent=0;
|
||||
insert into t1 values ( 1,"e"),(2,"a"),( 3,"c"),(4,"d");
|
||||
alter table t1 drop primary key, add primary key (f2, f1);
|
||||
explain select distinct f1 a, f1 b from t1;
|
||||
@ -432,7 +432,7 @@ CREATE TABLE t1 (
|
||||
age tinyint(3) unsigned NOT NULL,
|
||||
PRIMARY KEY (id),
|
||||
INDEX (name,dept)
|
||||
) ENGINE=InnoDB;
|
||||
) ENGINE=InnoDB STATS_PERSISTENT=0;
|
||||
INSERT INTO t1(id, dept, age, name) VALUES
|
||||
(3987, 'cs1', 10, 'rs1'), (3988, 'cs2', 20, 'rs1'), (3995, 'cs3', 10, 'rs2'),
|
||||
(3996, 'cs4', 20, 'rs2'), (4003, 'cs5', 10, 'rs3'), (4004, 'cs6', 20, 'rs3'),
|
||||
@ -546,7 +546,7 @@ CREATE TABLE t2(
|
||||
acct_id int DEFAULT NULL,
|
||||
INDEX idx1 (stat_id, acct_id),
|
||||
INDEX idx2 (acct_id)
|
||||
) ENGINE=InnoDB;
|
||||
) ENGINE=InnoDB STATS_PERSISTENT=0;
|
||||
|
||||
INSERT INTO t1(stat_id,acct_id) VALUES
|
||||
(1,759), (2,831), (3,785), (4,854), (1,921),
|
||||
@ -1579,6 +1579,29 @@ DROP TABLE t1;
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
||||
--echo #
|
||||
--echo # Bug#43600: Incorrect type conversion caused wrong result.
|
||||
--echo #
|
||||
CREATE TABLE t1 (
|
||||
a int NOT NULL
|
||||
) engine= innodb;
|
||||
|
||||
CREATE TABLE t2 (
|
||||
a int NOT NULL,
|
||||
b int NOT NULL,
|
||||
filler char(100) DEFAULT NULL,
|
||||
KEY a (a,b)
|
||||
) engine= innodb;
|
||||
|
||||
insert into t1 values (0),(1),(2),(3),(4);
|
||||
insert into t2 select A.a + 10 *B.a, 1, 'filler' from t1 A, t1 B;
|
||||
|
||||
explain select * from t1, t2 where t2.a=t1.a and t2.b + 1;
|
||||
select * from t1, t2 where t2.a=t1.a and t2.b + 1;
|
||||
|
||||
drop table t1,t2;
|
||||
--echo # End of test case for the bug#43600
|
||||
|
||||
--echo #
|
||||
--echo # Bug#42643: InnoDB does not support replication of TRUNCATE TABLE
|
||||
--echo #
|
||||
|
Reference in New Issue
Block a user