Skip to content

Commit 2c3b298

Browse files
committed
Merge 11.2 into 11.4
2 parents cbe13e9 + abd9833 commit 2c3b298

File tree

68 files changed

+1989
-268
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

+1989
-268
lines changed

client/mysql.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1823,7 +1823,8 @@ static struct my_option my_long_options[] =
18231823
"if the output is suspended. Doesn't use history file.",
18241824
&quick, &quick, 0, GET_BOOL, NO_ARG, 0, 0, 0, 0, 0, 0},
18251825
{"quick-max-column-width", 0,
1826-
"Maximal field length limit in case of --qick", &quick_max_column_width,
1826+
"Maximum number of characters displayed in a column header"
1827+
" when using --quick", &quick_max_column_width,
18271828
&quick_max_column_width, 0, GET_ULONG, REQUIRED_ARG, LONG_MAX, 0, ULONG_MAX,
18281829
0, 1, 0},
18291830
{"raw", 'r', "Write fields without conversion. Used with --batch.",

mysql-test/main/client.result

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,5 @@ insert into t1 values ("01234", "0123456789", "01234567890123456789", "1");
5858
+-----------+------------+----------------------+------+
5959
drop table t1;
6060
#
61-
# End of 10.7 tests
61+
# End of 10.5 tests
6262
#

mysql-test/main/client.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,5 @@ insert into t1 values ("01234", "0123456789", "01234567890123456789", "1");
4242
drop table t1;
4343

4444
--echo #
45-
--echo # End of 10.7 tests
45+
--echo # End of 10.5 tests
4646
--echo #

mysql-test/main/having_cond_pushdown.result

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,4 +6293,14 @@ HAVING (SELECT MAX(b) FROM t1) = a AND a > b;
62936293
a b
62946294
2 1
62956295
DROP TABLE t1;
6296+
#
6297+
# MDEV-25084: Moving equality with constant right side
6298+
# from HAVING to WHERE
6299+
# (fixed by the patch for MDEV-26402)
6300+
#
6301+
CREATE TABLE t1 (a CHAR(3)) CHARSET=sjis;
6302+
INSERT INTO t1 VALUES ('foo'),('bar');
6303+
SELECT LOAD_FILE('') AS f, a FROM t1 GROUP BY f, a HAVING f = a;
6304+
f a
6305+
DROP TABLE t1;
62966306
End of 10.5 tests

mysql-test/main/having_cond_pushdown.test

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1738,4 +1738,16 @@ eval $q;
17381738

17391739
DROP TABLE t1;
17401740

1741+
1742+
--echo #
1743+
--echo # MDEV-25084: Moving equality with constant right side
1744+
--echo # from HAVING to WHERE
1745+
--echo # (fixed by the patch for MDEV-26402)
1746+
--echo #
1747+
1748+
CREATE TABLE t1 (a CHAR(3)) CHARSET=sjis;
1749+
INSERT INTO t1 VALUES ('foo'),('bar');
1750+
SELECT LOAD_FILE('') AS f, a FROM t1 GROUP BY f, a HAVING f = a;
1751+
DROP TABLE t1;
1752+
17411753
--echo End of 10.5 tests

mysql-test/main/mysqld--help.result

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,15 @@ The following specify which files/extra groups are read (specified before remain
780780
--optimizer-index-block-copy-cost=#
781781
Cost of copying a key block from the cache to intern
782782
storage as part of an index scan.
783+
--optimizer-join-limit-pref-ratio=#
784+
For queries with JOIN and ORDER BY LIMIT : make the
785+
optimizer consider a join order that allows to short-cut
786+
execution after producing #LIMIT matches if that promises
787+
N times speedup. (A conservative setting here would be is
788+
a high value, like 100 so the short-cutting plan is used
789+
if it promises a speedup of 100x or more). Short-cutting
790+
plans are inherently risky so the default is 0 which
791+
means do not consider this optimization
783792
--optimizer-key-compare-cost=#
784793
Cost of checking a key against the end key condition.
785794
--optimizer-key-copy-cost=#
@@ -1808,6 +1817,7 @@ optimizer-disk-read-cost 10.24
18081817
optimizer-disk-read-ratio 0.02
18091818
optimizer-extra-pruning-depth 8
18101819
optimizer-index-block-copy-cost 0.0356
1820+
optimizer-join-limit-pref-ratio 0
18111821
optimizer-key-compare-cost 0.011361
18121822
optimizer-key-copy-cost 0.015685
18131823
optimizer-key-lookup-cost 0.435777

0 commit comments

Comments
 (0)