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
85dab639
Commit
85dab639
authored
Dec 13, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.1/
into serg.mylan:/usr/home/serg/Abk/mysql-4.1
parents
bc1b68f0
85a4e83e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
1 deletion
+12
-1
mysql-test/r/func_set.result
mysql-test/r/func_set.result
+6
-0
mysql-test/t/func_set.test
mysql-test/t/func_set.test
+5
-0
sql/item_cmpfunc.cc
sql/item_cmpfunc.cc
+1
-1
No files found.
mysql-test/r/func_set.result
View file @
85dab639
...
@@ -50,3 +50,9 @@ id elt(two.val,'one','two')
...
@@ -50,3 +50,9 @@ id elt(two.val,'one','two')
2 one
2 one
4 two
4 two
drop table t1,t2;
drop table t1,t2;
SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56);
INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56)
1
SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77);
INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77)
1
mysql-test/t/func_set.test
View file @
85dab639
...
@@ -35,3 +35,8 @@ insert into t2 values (1,1),(2,1),(3,1),(4,2);
...
@@ -35,3 +35,8 @@ insert into t2 values (1,1),(2,1),(3,1),(4,2);
select
one
.
id
,
elt
(
two
.
val
,
'one'
,
'two'
)
from
t1
one
,
t2
two
where
two
.
id
=
one
.
id
;
select
one
.
id
,
elt
(
two
.
val
,
'one'
,
'two'
)
from
t1
one
,
t2
two
where
two
.
id
=
one
.
id
;
select
one
.
id
,
elt
(
two
.
val
,
'one'
,
'two'
)
from
t1
one
,
t2
two
where
two
.
id
=
one
.
id
order
by
one
.
id
;
select
one
.
id
,
elt
(
two
.
val
,
'one'
,
'two'
)
from
t1
one
,
t2
two
where
two
.
id
=
one
.
id
order
by
one
.
id
;
drop
table
t1
,
t2
;
drop
table
t1
,
t2
;
# some more INTERVAL tests
SELECT
INTERVAL
(
13
,
7
,
14
,
21
,
28
,
35
,
42
,
49
,
56
);
SELECT
INTERVAL
(
13
,
7
,
14
,
21
,
28
,
35
,
42
,
49
,
56
,
77
);
sql/item_cmpfunc.cc
View file @
85dab639
...
@@ -603,7 +603,7 @@ longlong Item_func_interval::val_int()
...
@@ -603,7 +603,7 @@ longlong Item_func_interval::val_int()
if
(
intervals
)
if
(
intervals
)
{
// Use binary search to find interval
{
// Use binary search to find interval
uint
start
,
end
;
uint
start
,
end
;
start
=
1
;
start
=
0
;
end
=
row
->
cols
()
-
2
;
end
=
row
->
cols
()
-
2
;
while
(
start
!=
end
)
while
(
start
!=
end
)
{
{
...
...
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