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
60c0fb7b
Commit
60c0fb7b
authored
Jul 14, 2003
by
ram@mysql.r18.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.r18.ru:/usr/home/ram/work/4.0
parents
568e050e
8e23f54f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
mysql-test/r/func_set.result
mysql-test/r/func_set.result
+1
-1
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+2
-5
No files found.
mysql-test/r/func_set.result
View file @
60c0fb7b
...
...
@@ -27,4 +27,4 @@ find_in_set("abc","abc") find_in_set("ab","abc") find_in_set("abcd","abc")
1 0 0
select interval(null, 1, 10, 100);
interval(null, 1, 10, 100)
NULL
-1
sql/item_cmpfunc.cc
View file @
60c0fb7b
...
...
@@ -311,7 +311,7 @@ void Item_func_interval::split_sum_func(List<Item> &fields)
}
/*
return
NULL
if null value,
return
-1
if null value,
0 if lower than lowest
1 - arg_count if between args[n] and args[n+1]
arg_count+1 if higher than biggest argument
...
...
@@ -321,10 +321,7 @@ longlong Item_func_interval::val_int()
{
double
value
=
item
->
val
();
if
(
item
->
null_value
)
{
null_value
=
1
;
return
-
1
;
}
return
-
1
;
// -1 if NULL
if
(
intervals
)
{
// Use binary search to find interval
uint
start
=
0
,
end
=
arg_count
-
1
;
...
...
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