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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
d9dc0182
Commit
d9dc0182
authored
Dec 08, 2006
by
kaa@polly.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.local:/tmp/maint/bug24261/my51-bug24261
into polly.local:/home/kaa/src/maint/mysql-5.1-maint
parents
5817838c
439ce030
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
1 deletion
+13
-1
mysql-test/r/func_in.result
mysql-test/r/func_in.result
+4
-0
mysql-test/t/func_in.test
mysql-test/t/func_in.test
+7
-0
sql/opt_range.cc
sql/opt_range.cc
+2
-1
No files found.
mysql-test/r/func_in.result
View file @
d9dc0182
...
...
@@ -350,6 +350,10 @@ select some_id from t1 where some_id not in(-4,-1,3423534,2342342);
some_id
1
2
select some_id from t1 where some_id not in('-1', '0');
some_id
1
2
drop table t1;
End of 5.0 tests
create table t1(f1 char(1));
...
...
mysql-test/t/func_in.test
View file @
d9dc0182
...
...
@@ -252,6 +252,13 @@ insert into t1 values (1),(2);
select
some_id
from
t1
where
some_id
not
in
(
2
,
-
1
);
select
some_id
from
t1
where
some_id
not
in
(
-
4
,
-
1
,
-
4
);
select
some_id
from
t1
where
some_id
not
in
(
-
4
,
-
1
,
3423534
,
2342342
);
#
# BUG#24261: crash when WHERE contains NOT IN ('<negative value>') for unsigned column type
#
select
some_id
from
t1
where
some_id
not
in
(
'-1'
,
'0'
);
drop
table
t1
;
...
...
sql/opt_range.cc
View file @
d9dc0182
...
...
@@ -5013,6 +5013,7 @@ static SEL_TREE *get_func_mm_tree(RANGE_OPT_PARAM *param, Item_func *cond_func,
{
SEL_ARG
*
new_interval
,
*
last_val
;
if
(((
new_interval
=
tree2
->
keys
[
idx
]))
&&
(
tree
->
keys
[
idx
])
&&
((
last_val
=
tree
->
keys
[
idx
]
->
last
())))
{
new_interval
->
min_value
=
last_val
->
max_value
;
...
...
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