Skip to content

Commit 998edc3

Browse files
committed
Merge branch '10.6' into 10.9
2 parents 34a8e78 + c7b6707 commit 998edc3

File tree

11 files changed

+198
-186
lines changed

11 files changed

+198
-186
lines changed

mysql-test/main/delayed.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,6 @@ disconnect con1;
611611
--source include/wait_until_disconnected.inc
612612
connection default;
613613
drop tables tm, t1, t2;
614-
--enable_view_protocol
615614

616615
--echo #
617616
--echo # MDEV-9621 INSERT DELAYED fails on insert for tables with many columns
@@ -660,3 +659,4 @@ INSERT DELAYED INTO t1 VALUES (0);
660659
INSERT DELAYED INTO t1 VALUES (0);
661660
DROP TABLE t1;
662661

662+
--enable_view_protocol

mysql-test/main/distinct.result

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,5 +1180,16 @@ a
11801180
1
11811181
drop table t1,t2;
11821182
#
1183+
# MDEV-31743 Server crash in store_length, assertion failure in
1184+
# Type_handler_string_result::sort_length
1185+
#
1186+
create table t1 (a int, b longtext, c varchar(18));
1187+
insert into t1 values (1, 'Aa123456', 'abc'), (2, 'Bb7897777', 'def'),
1188+
(3, 'Cc01287', 'xyz'), (5, 'd12345', 'efg');
1189+
select distinct if(sum(a), b, 0) from t1 group by value(c) with rollup;
1190+
if(sum(a), b, 0)
1191+
Aa123456
1192+
drop table t1;
1193+
#
11831194
# end of 10.5 tests
11841195
#

mysql-test/main/distinct.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,18 @@ select distinct a from t1 where t1.a=1 and t1.a in (select a+0 from t2 where t2.
914914
select distinct a from t1 where t1.a=1 and t1.a in (select a+0 from t2 where t2.b in (1,2)) limit 0,1;
915915
drop table t1,t2;
916916

917+
--echo #
918+
--echo # MDEV-31743 Server crash in store_length, assertion failure in
919+
--echo # Type_handler_string_result::sort_length
920+
--echo #
921+
922+
create table t1 (a int, b longtext, c varchar(18));
923+
insert into t1 values (1, 'Aa123456', 'abc'), (2, 'Bb7897777', 'def'),
924+
(3, 'Cc01287', 'xyz'), (5, 'd12345', 'efg');
925+
926+
select distinct if(sum(a), b, 0) from t1 group by value(c) with rollup;
927+
drop table t1;
928+
917929
--echo #
918930
--echo # end of 10.5 tests
919931
--echo #

0 commit comments

Comments
 (0)