mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
This patch backports test coverage for:
Bug #22909 Using CREATE ... LIKE is possible to create field with invalid default value Bug #35935 CREATE TABLE under LOCK TABLES ignores FLUSH TABLES WITH READ LOCK Bug #37371 CREATE TABLE LIKE merge loses UNION parameter These bugs were originally fixed in the 6.1-fk tree and the fixes were backported as part of the fix for Bug #42546 "Backup: RESTORE fails, thinking it finds an existing table". This patch backports test coverage missing in the original backport. The patch contains no code changes.
This commit is contained in:
@ -2699,4 +2699,23 @@ LOCK TABLE m1 WRITE;
|
||||
ALTER TABLE m1 ADD INDEX (c1);
|
||||
UNLOCK TABLES;
|
||||
DROP TABLE m1, t1;
|
||||
#
|
||||
# Test for bug #37371 "CREATE TABLE LIKE merge loses UNION parameter"
|
||||
#
|
||||
drop tables if exists t1, m1, m2;
|
||||
create table t1 (i int) engine=myisam;
|
||||
create table m1 (i int) engine=mrg_myisam union=(t1) insert_method=first;
|
||||
create table m2 like m1;
|
||||
# Table definitions should match
|
||||
show create table m1;
|
||||
Table Create Table
|
||||
m1 CREATE TABLE `m1` (
|
||||
`i` int(11) DEFAULT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=FIRST UNION=(`t1`)
|
||||
show create table m2;
|
||||
Table Create Table
|
||||
m2 CREATE TABLE `m2` (
|
||||
`i` int(11) DEFAULT NULL
|
||||
) ENGINE=MRG_MyISAM DEFAULT CHARSET=latin1 INSERT_METHOD=FIRST UNION=(`t1`)
|
||||
drop tables m1, m2, t1;
|
||||
End of 6.0 tests
|
||||
|
Reference in New Issue
Block a user