Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6a26e0c7
Commit
6a26e0c7
authored
May 26, 2020
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.1 into 10.2
parents
fbcfbb0e
adbf85fc
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
0 deletions
+49
-0
mysql-test/r/processlist_notembedded.result
mysql-test/r/processlist_notembedded.result
+3
-0
mysql-test/r/selectivity.result
mysql-test/r/selectivity.result
+15
-0
mysql-test/r/selectivity_innodb.result
mysql-test/r/selectivity_innodb.result
+15
-0
mysql-test/t/processlist_notembedded.test
mysql-test/t/processlist_notembedded.test
+3
-0
mysql-test/t/selectivity.test
mysql-test/t/selectivity.test
+12
-0
sql/opt_range_mrr.cc
sql/opt_range_mrr.cc
+1
-0
No files found.
mysql-test/r/processlist_notembedded.result
View file @
6a26e0c7
...
...
@@ -8,6 +8,9 @@ connection default;
SET DEBUG_SYNC= 'now WAIT_FOR in_sync';
FOUND 1 /sleep/ in MDEV-20466.text
SET DEBUG_SYNC= 'now SIGNAL go';
connection con1;
user
disconnect con1;
connection default;
SET DEBUG_SYNC = 'RESET';
End of 5.5 tests
mysql-test/r/selectivity.result
View file @
6a26e0c7
...
...
@@ -1871,5 +1871,20 @@ id select_type table type possible_keys key key_len ref rows Extra
set optimizer_switch= @save_optimizer_switch;
set optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
drop table t1,t2;
#
# MDEV-21495: Conditional jump or move depends on uninitialised value in sel_arg_range_seq_next
#
CREATE TABLE t1(a INT, b INT);
INSERT INTO t1 SELECT seq, seq from seq_1_to_100;
set optimizer_use_condition_selectivity=4;
ANALYZE TABLE t1 PERSISTENT FOR ALL;
Table Op Msg_type Msg_text
test.t1 analyze status Engine-independent statistics collected
test.t1 analyze status OK
SELECT * from t1 WHERE a = 5 and b = 5;
a b
5 5
set optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
drop table t1;
# End of 10.1 tests
set @@global.histogram_size=@save_histogram_size;
mysql-test/r/selectivity_innodb.result
View file @
6a26e0c7
...
...
@@ -1881,6 +1881,21 @@ id select_type table type possible_keys key key_len ref rows Extra
set optimizer_switch= @save_optimizer_switch;
set optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
drop table t1,t2;
#
# MDEV-21495: Conditional jump or move depends on uninitialised value in sel_arg_range_seq_next
#
CREATE TABLE t1(a INT, b INT);
INSERT INTO t1 SELECT seq, seq from seq_1_to_100;
set optimizer_use_condition_selectivity=4;
ANALYZE TABLE t1 PERSISTENT FOR ALL;
Table Op Msg_type Msg_text
test.t1 analyze status Engine-independent statistics collected
test.t1 analyze status OK
SELECT * from t1 WHERE a = 5 and b = 5;
a b
5 5
set optimizer_use_condition_selectivity= @save_optimizer_use_condition_selectivity;
drop table t1;
# End of 10.1 tests
set @@global.histogram_size=@save_histogram_size;
set optimizer_switch=@save_optimizer_switch_for_selectivity_test;
...
...
mysql-test/t/processlist_notembedded.test
View file @
6a26e0c7
...
...
@@ -30,7 +30,10 @@ remove_file $MYSQLTEST_VARDIR/tmp/MDEV-20466.text;
SET
DEBUG_SYNC
=
'now SIGNAL go'
;
connection
con1
;
reap
;
disconnect
con1
;
connection
default
;
SET
DEBUG_SYNC
=
'RESET'
;
...
...
mysql-test/t/selectivity.test
View file @
6a26e0c7
...
...
@@ -1272,6 +1272,18 @@ set optimizer_switch= @save_optimizer_switch;
set
optimizer_use_condition_selectivity
=
@
save_optimizer_use_condition_selectivity
;
drop
table
t1
,
t2
;
--
echo
#
--
echo
# MDEV-21495: Conditional jump or move depends on uninitialised value in sel_arg_range_seq_next
--
echo
#
CREATE
TABLE
t1
(
a
INT
,
b
INT
);
INSERT
INTO
t1
SELECT
seq
,
seq
from
seq_1_to_100
;
set
optimizer_use_condition_selectivity
=
4
;
ANALYZE
TABLE
t1
PERSISTENT
FOR
ALL
;
SELECT
*
from
t1
WHERE
a
=
5
and
b
=
5
;
set
optimizer_use_condition_selectivity
=
@
save_optimizer_use_condition_selectivity
;
drop
table
t1
;
--
echo
# End of 10.1 tests
#
...
...
sql/opt_range_mrr.cc
View file @
6a26e0c7
...
...
@@ -74,6 +74,7 @@ range_seq_t sel_arg_range_seq_init(void *init_param, uint n_ranges, uint flags)
SEL_ARG_RANGE_SEQ
*
seq
=
(
SEL_ARG_RANGE_SEQ
*
)
init_param
;
seq
->
param
->
range_count
=
0
;
seq
->
at_start
=
TRUE
;
seq
->
param
->
max_key_part
=
0
;
seq
->
stack
[
0
].
key_tree
=
NULL
;
seq
->
stack
[
0
].
min_key
=
seq
->
param
->
min_key
;
seq
->
stack
[
0
].
min_key_flag
=
0
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment