Skip to content

Commit e2bf227

Browse files
committed
Merge 11.4 into 11.8
2 parents 5eeccca + 4ffa1ff commit e2bf227

File tree

87 files changed

+735
-631
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+735
-631
lines changed

.github/workflows/windows-arm64.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,10 @@ jobs:
4848
$env:PATH = "C:\Strawberry\perl\bin;$env:PATH;C:\Program Files (x86)\Windows Kits\10\Debuggers\arm64"
4949
#Calculate parallel as 4 * number of processors
5050
$parallel = 4 * [int]$env:NUMBER_OF_PROCESSORS
51-
perl bld\mysql-test\mysql-test-run.pl --force --parallel=$parallel --suite=main --mysqld=--loose-innodb-flush-log-at-trx-commit=2
51+
# create case-sensitive directory to run tests in
52+
$tmp = (Get-Item $env:TEMP).FullName
53+
$tmp = $tmp -replace '\\','/'
54+
$cidir = "$tmp/ci"
55+
mkdir $cidir
56+
fsutil file setCaseSensitiveInfo $cidir enable
57+
perl bld\mysql-test\mysql-test-run.pl --force --parallel=$parallel --suite=main,innodb --vardir=$cidir/var --mysqld=--lower-case-table-names=0 --mysqld=--loose-innodb-flush-log-at-trx-commit=2
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
CREATE TABLE `FAMILY_PARENT` (
2+
`PARENT_ID` char(36) NOT NULL,
3+
`PARENT_NAME` varchar(200) NOT NULL,
4+
PRIMARY KEY (`PARENT_ID`)
5+
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
6+
CREATE TABLE `FAMILY_CHILD` (
7+
`PARENT_ID` char(36) NOT NULL,
8+
`CHILD_NAME` varchar(200) NOT NULL,
9+
PRIMARY KEY (`PARENT_ID`,`CHILD_NAME`),
10+
CONSTRAINT `CHILD_FK` FOREIGN KEY (`PARENT_ID`) REFERENCES `FAMILY_PARENT` (`PARENT_ID`) ON DELETE CASCADE
11+
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
12+
SHOW CREATE TABLE FAMILY_CHILD;
13+
Table Create Table
14+
FAMILY_CHILD CREATE TABLE `FAMILY_CHILD` (
15+
`PARENT_ID` char(36) NOT NULL,
16+
`CHILD_NAME` varchar(200) NOT NULL,
17+
PRIMARY KEY (`PARENT_ID`,`CHILD_NAME`),
18+
CONSTRAINT `CHILD_FK` FOREIGN KEY (`PARENT_ID`) REFERENCES `FAMILY_PARENT` (`PARENT_ID`) ON DELETE CASCADE
19+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin
20+
DROP TABLE FAMILY_CHILD;
21+
DROP TABLE FAMILY_PARENT;
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# echo MDEV-34953 tablename of CONSTRAINT FOREIGN KEY REFERENCES
2+
--source include/have_lowercase0.inc
3+
--source include/have_innodb.inc
4+
CREATE TABLE `FAMILY_PARENT` (
5+
`PARENT_ID` char(36) NOT NULL,
6+
`PARENT_NAME` varchar(200) NOT NULL,
7+
PRIMARY KEY (`PARENT_ID`)
8+
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
9+
10+
CREATE TABLE `FAMILY_CHILD` (
11+
`PARENT_ID` char(36) NOT NULL,
12+
`CHILD_NAME` varchar(200) NOT NULL,
13+
PRIMARY KEY (`PARENT_ID`,`CHILD_NAME`),
14+
CONSTRAINT `CHILD_FK` FOREIGN KEY (`PARENT_ID`) REFERENCES `FAMILY_PARENT` (`PARENT_ID`) ON DELETE CASCADE
15+
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
16+
17+
# check that foreign key constraint name
18+
SHOW CREATE TABLE FAMILY_CHILD;
19+
20+
DROP TABLE FAMILY_CHILD;
21+
DROP TABLE FAMILY_PARENT;
22+

mysql-test/main/grant_lowercase.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# test cases for strmov(tmp_db, db) -> strnmov replacement in sql_acl.cc
22
--source include/not_embedded.inc
3+
--source include/have_lowercase1.inc
34

45
#
56
# http://seclists.org/fulldisclosure/2012/Dec/4

mysql-test/main/grant_repair.result

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,6 @@ create role r1;
8888
drop role r1;
8989
rename table mysql.roles_mapping_bak to mysql.roles_mapping;
9090
#
91-
# MDEV-35622 SEGV, ASAN use-after-poison when reading system table with less than expected number of columns
92-
#
93-
call mtr.add_suppression("mysql.servers");
94-
alter table mysql.servers drop column owner;
95-
insert into mysql.servers values(0,0,0,0,0,0,0,0,0);
96-
flush privileges;
97-
ERROR HY000: Cannot load from mysql.servers. The table is probably corrupted
98-
alter table mysql.servers add column Owner varchar(512) not null default '';
99-
#
10091
# MDEV-28482 SIGSEGV in get_access_value_from_val_int
10192
#
10293
create temporary table t1 select * from mysql.tables_priv;

mysql-test/main/grant_repair.test

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,16 +104,6 @@ create role r1;
104104
drop role r1;
105105
rename table mysql.roles_mapping_bak to mysql.roles_mapping;
106106

107-
--echo #
108-
--echo # MDEV-35622 SEGV, ASAN use-after-poison when reading system table with less than expected number of columns
109-
--echo #
110-
call mtr.add_suppression("mysql.servers");
111-
alter table mysql.servers drop column owner;
112-
insert into mysql.servers values(0,0,0,0,0,0,0,0,0);
113-
--error ER_CANNOT_LOAD_FROM_TABLE_V2
114-
flush privileges;
115-
alter table mysql.servers add column Owner varchar(512) not null default '';
116-
117107
--echo #
118108
--echo # MDEV-28482 SIGSEGV in get_access_value_from_val_int
119109
--echo #

mysql-test/main/lowercase_fs_off.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# i.e. lower_case_filesystem=OFF
44
#
55
-- source include/have_case_sensitive_file_system.inc
6+
-- source include/have_lowercase0.inc
67
-- source include/not_embedded.inc
78
-- source include/have_perfschema.inc
89

mysql-test/main/lowercase_table.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
--source include/have_lowercase1.inc
12
#
23
# Test of --lower-case-table-names
34
#

mysql-test/main/lowercase_table_grant.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Don't test with embedded server
22
-- source include/not_embedded.inc
3+
-- source include/have_lowercase1.inc
34

45
# Test of grants when lower_case_table_names is on
56
use mysql;

mysql-test/main/lowercase_table_qcache.test

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#
33
# Test of query cache with --lower-case-table-names
44
#
5+
-- source include/have_lowercase1.inc
56
-- source include/no_view_protocol.inc
67

78
set @save_query_cache_size=@@query_cache_size;

0 commit comments

Comments
 (0)