Skip to content

Commit b218766

Browse files
committed
Merge branch '10.5' into 10.6
2 parents 98ca71a + 7970ac7 commit b218766

File tree

68 files changed

+2319
-409
lines changed

Some content is hidden

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

68 files changed

+2319
-409
lines changed

cmake/maintainer.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ ENDIF()
2323
SET(MY_WARNING_FLAGS
2424
-Wall
2525
-Wdeclaration-after-statement
26+
-Wenum-compare
27+
-Wenum-conversion
2628
-Wextra
2729
-Wformat-security
2830
-Wno-format-truncation

mysql-test/include/have_log_bin.inc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
source include/not_embedded.inc;
1010

11-
-- require include/have_log_bin.require
12-
disable_query_log;
13-
show variables like 'log_bin';
14-
enable_query_log;
11+
if (`select not @@log_bin`) {
12+
skip Test requires: 'have_log_bin';
13+
}

mysql-test/include/have_log_bin.require

Lines changed: 0 additions & 2 deletions
This file was deleted.

mysql-test/main/insert.result

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,14 @@ select 1 in (select count(*) from t t1 join (t t2 join t t3 on (t1.a != 0)));
776776
ERROR 42S22: Unknown column 't1.a' in 'on clause'
777777
drop table t;
778778
#
779+
# MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECT
780+
#
781+
create table t1 (i int) ;
782+
create table t2 (j int) ;
783+
create table t4 select * from t1 join t2 on (select t3.i);
784+
ERROR 42S22: Unknown column 't3.i' in 'field list'
785+
drop table t1, t2;
786+
#
779787
# End of 10.4 tests
780788
#
781789
#

mysql-test/main/insert.test

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,15 @@ create table t (a int);
640640
select 1 in (select count(*) from t t1 join (t t2 join t t3 on (t1.a != 0)));
641641
drop table t;
642642

643+
--echo #
644+
--echo # MDEV-28578 Server crashes in Item_field::fix_outer_field after CREATE SELECT
645+
--echo #
646+
create table t1 (i int) ;
647+
create table t2 (j int) ;
648+
--error ER_BAD_FIELD_ERROR
649+
create table t4 select * from t1 join t2 on (select t3.i);
650+
drop table t1, t2;
651+
643652
--echo #
644653
--echo # End of 10.4 tests
645654
--echo #
@@ -660,4 +669,3 @@ drop table t1;
660669
--echo #
661670
--echo # End of 10.5 tests
662671
--echo #
663-

mysql-test/suite/compat/oracle/r/events.result

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,12 @@ COUNT(*)
1616
1
1717
DROP TABLE t1;
1818
SET GLOBAL event_scheduler=off;
19+
#
20+
# MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
21+
#
22+
CREATE EVENT ev ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR DO BEGIN END;
23+
Warnings:
24+
Warning 1105 Event scheduler is switched off, use SET GLOBAL event_scheduler=ON to enable it.
25+
SELECT EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='test' AND EVENT_NAME='ev';
26+
EVENT_DEFINITION BEGIN END
27+
DROP EVENT ev;

mysql-test/suite/compat/oracle/r/sp.result

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2549,7 +2549,18 @@ idx
25492549
1
25502550
DROP PROCEDURE p1;
25512551
#
2552-
# Start of 10.4 tests
2552+
# MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
2553+
#
2554+
SET sql_mode=ORACLE;
2555+
BEGIN END;
2556+
CREATE TABLE t1 (a INT);
2557+
CREATE TRIGGER tr AFTER INSERT ON t1 FOR EACH ROW BEGIN END;
2558+
SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_SCHEMA='test' AND TRIGGER_NAME='tr';
2559+
ACTION_STATEMENT BEGIN END
2560+
DROP TRIGGER tr;
2561+
DROP TABLE t1;
2562+
#
2563+
# End of 10.3 tests
25532564
#
25542565
#
25552566
# MDEV-19637 Crash on an SP variable assignment to a wrong subselect

mysql-test/suite/compat/oracle/t/events.test

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,13 @@ let $wait_condition =
2525
SELECT COUNT(*) FROM t1;
2626
DROP TABLE t1;
2727

28-
2928
SET GLOBAL event_scheduler=off;
29+
30+
--echo #
31+
--echo # MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
32+
--echo #
33+
CREATE EVENT ev ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR DO BEGIN END;
34+
--vertical_results
35+
SELECT EVENT_DEFINITION FROM INFORMATION_SCHEMA.EVENTS WHERE EVENT_SCHEMA='test' AND EVENT_NAME='ev';
36+
--horizontal_results
37+
DROP EVENT ev;

mysql-test/suite/compat/oracle/t/sp.test

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,9 +2392,23 @@ DROP PROCEDURE p1;
23922392

23932393

23942394
--echo #
2395-
--echo # Start of 10.4 tests
2395+
--echo # MDEV-28588 SIGSEGV in __memmove_avx_unaligned_erms, strmake_root
23962396
--echo #
23972397

2398+
SET sql_mode=ORACLE;
2399+
BEGIN END;
2400+
2401+
CREATE TABLE t1 (a INT);
2402+
CREATE TRIGGER tr AFTER INSERT ON t1 FOR EACH ROW BEGIN END;
2403+
--vertical_results
2404+
SELECT ACTION_STATEMENT FROM INFORMATION_SCHEMA.TRIGGERS WHERE TRIGGER_SCHEMA='test' AND TRIGGER_NAME='tr';
2405+
--horizontal_results
2406+
DROP TRIGGER tr;
2407+
DROP TABLE t1;
2408+
2409+
--echo #
2410+
--echo # End of 10.3 tests
2411+
--echo #
23982412

23992413
--echo #
24002414
--echo # MDEV-19637 Crash on an SP variable assignment to a wrong subselect

mysql-test/suite/galera/disabled.def

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ galera_bf_abort_group_commit : MDEV-18282 Galera test failure on galera.galera_b
1919
galera_bf_kill_debug : MDEV-24485 wsrep::client_state::do_acquire_ownership(): Assertion `state_ == s_idle || mode_ != m_local' failed
2020
galera_bf_lock_wait : MDEV-21597 wsrep::transaction::start_transaction(): Assertion `active() == false' failed
2121
galera_encrypt_tmp_files : Get error failed to enable encryption of temporary files
22-
galera_ftwrl : MDEV-21525 galera.galera_ftwrl
2322
galera_gcache_recover_manytrx : MDEV-18834 Galera test failure
2423
galera_kill_largechanges : MDEV-18179 Galera test failure on galera.galera_kill_largechanges
25-
galera_many_tables_nopk : MDEV-18182 Galera test failure on galera.galera_many_tables_nopk
2624
galera_mdl_race : MDEV-21524 galera.galera_mdl_race
2725
galera_parallel_simple : MDEV-20318 galera.galera_parallel_simple fails
2826
galera_pc_ignore_sb : MDEV-20888 galera.galera_pc_ignore_sb

0 commit comments

Comments
 (0)