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
6f091434
Commit
6f091434
authored
Oct 30, 2023
by
Monty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-32531 MSAN / Valgrind errors in Item_func_like::get_mm_leaf with temporal field
Added missing initializer
parent
ab6139dd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
4 deletions
+25
-4
mysql-test/main/analyze.result
mysql-test/main/analyze.result
+13
-3
mysql-test/main/analyze.test
mysql-test/main/analyze.test
+11
-1
sql/opt_range.cc
sql/opt_range.cc
+1
-0
No files found.
mysql-test/main/analyze.result
View file @
6f091434
...
...
@@ -429,9 +429,6 @@ SET join_cache_level=3;
SET optimizer_switch='join_cache_hashed=on';
SET optimizer_switch='join_cache_bka=on';
set optimizer_switch='hash_join_cardinality=on';
select benchmark(1,1);
benchmark(1,1)
0
EXPLAIN
SELECT * FROM t1, t2 WHERE b=a;
id select_type table type possible_keys key key_len ref rows Extra
...
...
@@ -443,5 +440,18 @@ DROP TABLE t1,t2;
set @@optimizer_switch=@save_optimizer_switch;
set @@join_cache_level=@save_join_cache_level;
#
# MDEV-32531 MSAN / Valgrind errors in Item_func_like::get_mm_leaf with
# temporal field
#
CREATE TABLE t1 (f DATE);
INSERT INTO t1 VALUES ('1978-08-27'),('1906-04-30');
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 f LIKE '2023%';
f
DROP TABLE t1;
#
# End of 10.6 tests
#
mysql-test/main/analyze.test
View file @
6f091434
...
...
@@ -287,7 +287,6 @@ SET optimizer_switch='join_cache_hashed=on';
SET
optimizer_switch
=
'join_cache_bka=on'
;
set
optimizer_switch
=
'hash_join_cardinality=on'
;
select
benchmark
(
1
,
1
);
EXPLAIN
SELECT
*
FROM
t1
,
t2
WHERE
b
=
a
;
SELECT
*
FROM
t1
,
t2
WHERE
b
=
a
;
...
...
@@ -296,6 +295,17 @@ DROP TABLE t1,t2;
set
@@
optimizer_switch
=@
save_optimizer_switch
;
set
@@
join_cache_level
=@
save_join_cache_level
;
--
echo
#
--
echo
# MDEV-32531 MSAN / Valgrind errors in Item_func_like::get_mm_leaf with
--
echo
# temporal field
--
echo
#
CREATE
TABLE
t1
(
f
DATE
);
INSERT
INTO
t1
VALUES
(
'1978-08-27'
),(
'1906-04-30'
);
ANALYZE
TABLE
t1
PERSISTENT
FOR
ALL
;
SELECT
*
FROM
t1
WHERE
f
LIKE
'2023%'
;
DROP
TABLE
t1
;
--
echo
#
--
echo
# End of 10.6 tests
--
echo
#
sql/opt_range.cc
View file @
6f091434
...
...
@@ -3532,6 +3532,7 @@ bool calculate_cond_selectivity_for_table(THD *thd, TABLE *table, Item **cond)
init_sql_alloc
(
key_memory_quick_range_select_root
,
&
alloc
,
thd
->
variables
.
range_alloc_block_size
,
0
,
MYF
(
MY_THREAD_SPECIFIC
));
bzero
((
void
*
)
&
param
,
sizeof
(
param
));
param
.
thd
=
thd
;
param
.
mem_root
=
&
alloc
;
param
.
old_root
=
thd
->
mem_root
;
...
...
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