Skip to content

Commit 053f9bc

Browse files
committed
Merge branch '10.6' into 10.11
2 parents cbcb080 + fe8047c commit 053f9bc

File tree

113 files changed

+2928
-823
lines changed

Some content is hidden

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

113 files changed

+2928
-823
lines changed

extra/mariabackup/xtrabackup.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4562,7 +4562,7 @@ xb_register_filter_entry(
45624562
databases_hash->cell_get(my_crc32c(0, name, p - name))
45634563
->search(&xb_filter_entry_t::name_hash,
45644564
[dbname](xb_filter_entry_t* f)
4565-
{ return f && !strcmp(f->name, dbname); });
4565+
{ return !f || !strcmp(f->name, dbname); });
45664566
if (!*prev) {
45674567
(*prev = xb_new_filter_entry(dbname))
45684568
->has_tables = TRUE;
@@ -4696,7 +4696,7 @@ xb_load_list_file(
46964696
FILE* fp;
46974697

46984698
/* read and store the filenames */
4699-
fp = fopen(filename, "r");
4699+
fp = fopen(filename, "rt");
47004700
if (!fp) {
47014701
die("Can't open %s",
47024702
filename);

extra/wolfssl/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ if(MSVC)
134134
remove_definitions(-DHAVE_CONFIG_H)
135135
target_compile_definitions(wolfssl PRIVATE
136136
WOLFSSL_HAVE_MIN WOLFSSL_HAVE_MAX)
137+
# Workaround https://github.com/wolfSSL/wolfssl/issues/9004
138+
target_compile_definitions(wolfssl PRIVATE WOLFSSL_NO_SOCK SOCKET_INVALID=-1)
137139
endif()
138140

139141
CONFIGURE_FILE(user_settings.h.in user_settings.h)

extra/wolfssl/wolfssl

Submodule wolfssl updated 1168 files

libmariadb

mysql-test/include/galera_variables_ok.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ if (!$_galera_variables_delta) {
55
--let $galera_variables_delta=0
66
}
77

8-
--let $galera_variables_expected=`SELECT 50 + $galera_variables_delta`
8+
--let $galera_variables_expected=`SELECT 51 + $galera_variables_delta`
99

1010
--let $galera_variables_count=`SELECT COUNT(*) FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES WHERE VARIABLE_NAME LIKE 'wsrep%'`
1111

mysql-test/main/column_compression.result

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2978,4 +2978,60 @@ SELECT GROUP_CONCAT( b, a ORDER BY 2 ) AS f FROM t1;
29782978
f
29792979
nc,mmmmmmmmmmd
29802980
DROP TABLE t1;
2981+
#
2982+
# MDEV-24726 Assertion `0' failed in Field_varstring_compressed::key_cmp
2983+
#
2984+
# VARCHAR
2985+
create table t1 (a varchar(8) compressed) character set utf8mb4;
2986+
create algorithm=temptable view v1 as select * from t1;
2987+
insert into t1 values ('foo'),('bar'),('foo');
2988+
select * from v1 where a in (select a from t1);
2989+
a
2990+
foo
2991+
foo
2992+
bar
2993+
drop view v1;
2994+
drop table t1;
2995+
create table t1 (f1 varchar(8)) charset=eucjpms collate=eucjpms_nopad_bin;
2996+
insert into t1 values ('');
2997+
create table t2 (f2 varchar(8) compressed) charset=eucjpms collate=eucjpms_nopad_bin;
2998+
insert into t2 values ('a'),('b');
2999+
select t1.* from t1 left join (select distinct f2 from t2) sq on sq.f2 = t1.f1;
3000+
f1
3001+
3002+
drop table t1, t2;
3003+
# BLOB
3004+
create table t1 (a text compressed) character set utf8mb4;
3005+
create algorithm=temptable view v1 as select * from t1;
3006+
insert into t1 values ('foo'),('bar'),('foo');
3007+
select * from v1 where a in (select a from t1);
3008+
a
3009+
foo
3010+
foo
3011+
bar
3012+
drop view v1;
3013+
drop table t1;
3014+
create table t1 (f1 text) charset=eucjpms collate=eucjpms_nopad_bin;
3015+
insert into t1 values ('');
3016+
create table t2 (f2 text compressed) charset=eucjpms collate=eucjpms_nopad_bin;
3017+
insert into t2 values ('a'),('b');
3018+
select t1.* from t1 left join (select distinct f2 from t2) sq on sq.f2 = t1.f1;
3019+
f1
3020+
3021+
drop table t1, t2;
3022+
#
3023+
# MDEV-16808 Assertion on compressed blob as key field
3024+
#
3025+
set join_cache_level= 3;
3026+
create table t1 (col_blob text) engine=innodb;
3027+
create table t2 (col_blob text compressed) engine=innodb;
3028+
select * from t1 join t2 using ( col_blob );
3029+
col_blob
3030+
drop tables t1, t2;
3031+
create table t (a text compressed,b text) engine=innodb;
3032+
create table t4 like t;
3033+
set session join_cache_level=3;
3034+
select * from (select * from t) as t natural join (select * from t) as t1;
3035+
a b
3036+
drop tables t, t4;
29813037
# End of 10.5 tests

mysql-test/main/column_compression.test

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,4 +519,57 @@ INSERT INTO t1 VALUES ('c','n'),('d','mmmmmmmmmm');
519519
SELECT GROUP_CONCAT( b, a ORDER BY 2 ) AS f FROM t1;
520520
DROP TABLE t1;
521521

522+
--echo #
523+
--echo # MDEV-24726 Assertion `0' failed in Field_varstring_compressed::key_cmp
524+
--echo #
525+
526+
--echo # VARCHAR
527+
create table t1 (a varchar(8) compressed) character set utf8mb4;
528+
create algorithm=temptable view v1 as select * from t1;
529+
insert into t1 values ('foo'),('bar'),('foo');
530+
select * from v1 where a in (select a from t1);
531+
# cleanup
532+
drop view v1;
533+
drop table t1;
534+
535+
create table t1 (f1 varchar(8)) charset=eucjpms collate=eucjpms_nopad_bin;
536+
insert into t1 values ('');
537+
create table t2 (f2 varchar(8) compressed) charset=eucjpms collate=eucjpms_nopad_bin;
538+
insert into t2 values ('a'),('b');
539+
select t1.* from t1 left join (select distinct f2 from t2) sq on sq.f2 = t1.f1;
540+
# cleanup
541+
drop table t1, t2;
542+
543+
--echo # BLOB
544+
create table t1 (a text compressed) character set utf8mb4;
545+
create algorithm=temptable view v1 as select * from t1;
546+
insert into t1 values ('foo'),('bar'),('foo');
547+
select * from v1 where a in (select a from t1);
548+
# cleanup
549+
drop view v1;
550+
drop table t1;
551+
552+
create table t1 (f1 text) charset=eucjpms collate=eucjpms_nopad_bin;
553+
insert into t1 values ('');
554+
create table t2 (f2 text compressed) charset=eucjpms collate=eucjpms_nopad_bin;
555+
insert into t2 values ('a'),('b');
556+
select t1.* from t1 left join (select distinct f2 from t2) sq on sq.f2 = t1.f1;
557+
# cleanup
558+
drop table t1, t2;
559+
560+
--echo #
561+
--echo # MDEV-16808 Assertion on compressed blob as key field
562+
--echo #
563+
set join_cache_level= 3;
564+
create table t1 (col_blob text) engine=innodb;
565+
create table t2 (col_blob text compressed) engine=innodb;
566+
select * from t1 join t2 using ( col_blob );
567+
drop tables t1, t2;
568+
569+
create table t (a text compressed,b text) engine=innodb;
570+
create table t4 like t;
571+
set session join_cache_level=3;
572+
select * from (select * from t) as t natural join (select * from t) as t1;
573+
drop tables t, t4;
574+
522575
--echo # End of 10.5 tests

mysql-test/main/default.result

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3432,10 +3432,8 @@ DEFAULT(a) CASE a WHEN 0 THEN 1 ELSE 2 END
34323432
NULL 2
34333433
DROP TABLE t;
34343434
DROP VIEW v;
3435-
#
34363435
# End of 10.2 test
34373436
#
3438-
#
34393437
# MDEV-22703 DEFAULT() on a BLOB column can overwrite the default
34403438
# record, which can cause crashes when accessing already released
34413439
# memory.
@@ -3450,10 +3448,8 @@ length(DEFAULT(h))
34503448
25
34513449
INSERT INTO t1 () VALUES ();
34523450
drop table t1;
3453-
#
34543451
# End of 10.3 test
34553452
#
3456-
#
34573453
# MDEV-26423: MariaDB server crash in Create_tmp_table::finalize
34583454
#
34593455
CREATE TABLE t1 (pk text DEFAULT length(uuid()));
@@ -3483,6 +3479,14 @@ column_name column_default has_default is_nullable
34833479
a NULL 1 YES
34843480
drop view v1;
34853481
drop table t1;
3486-
#
34873482
# End of 10.4 test
34883483
#
3484+
# MDEV-37320 ASAN errors in Field::is_null / Item_param::assign_default
3485+
#
3486+
create table t1 (f01 timestamp, f03 timestamp);
3487+
insert into t1 () values ();
3488+
create trigger tr before insert on t1 for each row set @a=1;
3489+
prepare stmt from "update t1 set f03 = ?";
3490+
execute stmt using default;
3491+
drop table t1;
3492+
# End of 10.6 test

mysql-test/main/default.test

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,9 +2137,8 @@ CREATE ALGORITHM=TEMPTABLE VIEW v AS SELECT * FROM t;
21372137
SELECT DISTINCT DEFAULT(a), CASE a WHEN 0 THEN 1 ELSE 2 END FROM v GROUP BY a WITH ROLLUP;
21382138
DROP TABLE t;
21392139
DROP VIEW v;
2140-
--echo #
2140+
21412141
--echo # End of 10.2 test
2142-
--echo #
21432142

21442143
--echo #
21452144
--echo # MDEV-22703 DEFAULT() on a BLOB column can overwrite the default
@@ -2157,9 +2156,7 @@ SELECT length(DEFAULT(h)) FROM t1;
21572156
INSERT INTO t1 () VALUES ();
21582157
drop table t1;
21592158

2160-
--echo #
21612159
--echo # End of 10.3 test
2162-
--echo #
21632160

21642161
--echo #
21652162
--echo # MDEV-26423: MariaDB server crash in Create_tmp_table::finalize
@@ -2183,6 +2180,16 @@ select column_name, column_default, column_default is not null as 'has_default',
21832180
drop view v1;
21842181
drop table t1;
21852182

2186-
--echo #
21872183
--echo # End of 10.4 test
2184+
2185+
--echo #
2186+
--echo # MDEV-37320 ASAN errors in Field::is_null / Item_param::assign_default
21882187
--echo #
2188+
create table t1 (f01 timestamp, f03 timestamp);
2189+
insert into t1 () values ();
2190+
create trigger tr before insert on t1 for each row set @a=1;
2191+
prepare stmt from "update t1 set f03 = ?";
2192+
execute stmt using default;
2193+
drop table t1;
2194+
2195+
--echo # End of 10.6 test

mysql-test/main/func_json.result

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -957,10 +957,8 @@ FROM (SELECT * FROM json_test) AS json_test_values;
957957
json_object("a", json_compact(a), "b", json_compact(b))
958958
{"a": [1,2,3], "b": {"a":"foo"}}
959959
DROP TABLE json_test;
960-
#
961960
# End of 10.2 tests
962961
#
963-
#
964962
# MDEV-12854 Synchronize CREATE..SELECT data type and result set metadata data type for INT functions
965963
#
966964
SELECT
@@ -1492,10 +1490,8 @@ JSON_VALID(' {"number": 01E-4}')
14921490
select JSON_VALID(' {"number": 0E-4.0}');
14931491
JSON_VALID(' {"number": 0E-4.0}')
14941492
0
1495-
#
14961493
# End of 10.4 tests
14971494
#
1498-
#
14991495
# MDEV-16620 JSON_ARRAYAGG
15001496
#
15011497
CREATE TABLE t1 (a INT);
@@ -1727,10 +1723,8 @@ NULL
17271723
Warnings:
17281724
Warning 4036 Character disallowed in JSON in argument 1 to function 'json_extract' at position 2
17291725
SET @@collation_connection= @save_collation_connection;
1730-
#
17311726
# End of 10.5 tests
17321727
#
1733-
#
17341728
# MDEV-26054 Server crashes in Item_func_json_arrayagg::get_str_from_field
17351729
#
17361730
CREATE TABLE t (a VARCHAR(8));
@@ -1766,6 +1760,15 @@ FROM JSON_TABLE (@data, '$[*]' COLUMNS (data text PATH '$.Data')) AS t;
17661760
data
17671761
<root language="de"></root>
17681762
#
1763+
# MDEV-21530: json_extract STILL crashes in Item_func_json_extract::read_json
1764+
#
1765+
select null<=>json_extract('1',json_object(null,'{ }',null,null),'{}');
1766+
null<=>json_extract('1',json_object(null,'{ }',null,null),'{}')
1767+
1
1768+
Warnings:
1769+
Warning 4042 Syntax error in JSON path in argument 2 to function 'json_extract' at position 1
1770+
# End of 10.6 tests
1771+
#
17691772
# MDEV-35614 JSON_UNQUOTE doesn't work with emojis
17701773
#
17711774
SELECT HEX(JSON_UNQUOTE('"\\ud83d\\ude0a"')) as hex_smiley;
@@ -1803,9 +1806,6 @@ show warnings;
18031806
Level Code Message
18041807
Warning 4035 Broken JSON string in argument 1 to function 'json_unquote' at position 13
18051808
#
1806-
# End of 10.6 tests
1807-
#
1808-
#
18091809
# MDEV-31147 json_normalize does not work correctly with MSAN build
18101810
#
18111811
CREATE TABLE t1 (val JSON);
@@ -1815,10 +1815,8 @@ SELECT * FROM t1;
18151815
val normalized_json
18161816
15 1.5E1
18171817
DROP TABLE t1;
1818-
#
18191818
# End of 10.8 tests
18201819
#
1821-
#
18221820
# MDEV-27677: Implement JSON_OVERLAPS()
18231821
#
18241822
# Testing scalar json datatypes
@@ -2670,6 +2668,4 @@ SELECT JSON_VALUE(@json,'$.A[last-1][last-1].key1');
26702668
JSON_VALUE(@json,'$.A[last-1][last-1].key1')
26712669
NULL
26722670
SET @@collation_connection= @save_collation_connection;
2673-
#
26742671
# End of 10.9 Test
2675-
#

0 commit comments

Comments
 (0)