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
590d2895
Commit
590d2895
authored
Sep 27, 2007
by
gshchepa/uchum@gleb.loc
Browse files
Options
Browse Files
Download
Plain Diff
Merge gshchepa@bk-internal.mysql.com:/users/gshchepa/5.1-opt-31075
into gleb.loc:/home/uchum/work/bk/5.1-opt
parents
533a8152
7f0e9065
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
mysql-test/r/func_in.result
mysql-test/r/func_in.result
+5
-0
mysql-test/t/func_in.test
mysql-test/t/func_in.test
+8
-0
sql/opt_range.cc
sql/opt_range.cc
+1
-1
No files found.
mysql-test/r/func_in.result
View file @
590d2895
...
@@ -564,4 +564,9 @@ explain select f2 from t2 where f2 in (1,'b');
...
@@ -564,4 +564,9 @@ explain select f2 from t2 where f2 in (1,'b');
id select_type table type possible_keys key key_len ref rows Extra
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 index t2f2 t2f2 5 NULL 3 Using where; Using index
1 SIMPLE t2 index t2f2 t2f2 5 NULL 3 Using where; Using index
drop table t1, t2;
drop table t1, t2;
create table t1 (a time, key(a));
insert into t1 values (),(),(),(),(),(),(),(),(),();
select a from t1 where a not in (a,a,a) group by a;
a
drop table t1;
End of 5.1 tests
End of 5.1 tests
mysql-test/t/func_in.test
View file @
590d2895
...
@@ -408,5 +408,13 @@ select f2 from t2 where f2 in (1,'b');
...
@@ -408,5 +408,13 @@ select f2 from t2 where f2 in (1,'b');
explain
select
f2
from
t2
where
f2
in
(
1
,
'b'
);
explain
select
f2
from
t2
where
f2
in
(
1
,
'b'
);
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
#
# Bug #31075: crash in get_func_mm_tree
#
create
table
t1
(
a
time
,
key
(
a
));
insert
into
t1
values
(),(),(),(),(),(),(),(),(),();
select
a
from
t1
where
a
not
in
(
a
,
a
,
a
)
group
by
a
;
drop
table
t1
;
--
echo
End
of
5.1
tests
--
echo
End
of
5.1
tests
sql/opt_range.cc
View file @
590d2895
...
@@ -5053,7 +5053,7 @@ static SEL_TREE *get_func_mm_tree(RANGE_OPT_PARAM *param, Item_func *cond_func,
...
@@ -5053,7 +5053,7 @@ static SEL_TREE *get_func_mm_tree(RANGE_OPT_PARAM *param, Item_func *cond_func,
if
(
inv
)
if
(
inv
)
{
{
if
(
func
->
array
->
result_type
()
!=
ROW_RESULT
)
if
(
func
->
array
&&
func
->
array
->
result_type
()
!=
ROW_RESULT
)
{
{
/*
/*
We get here for conditions in form "t.key NOT IN (c1, c2, ...)",
We get here for conditions in form "t.key NOT IN (c1, c2, ...)",
...
...
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