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
7754e54b
Commit
7754e54b
authored
Oct 12, 2007
by
tnurnberg@sin.intern.azundris.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tnurnberg@bk-internal.mysql.com:/home/bk/mysql-5.0-maint
into sin.intern.azundris.com:/home/tnurnberg/30951/50-30951
parents
fa942cf8
57dc3812
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
mysql-test/r/func_sapdb.result
mysql-test/r/func_sapdb.result
+3
-0
mysql-test/t/func_sapdb.test
mysql-test/t/func_sapdb.test
+1
-0
sql-common/my_time.c
sql-common/my_time.c
+0
-5
No files found.
mysql-test/r/func_sapdb.result
View file @
7754e54b
...
...
@@ -93,6 +93,9 @@ makedate(9999,365)
select makedate(9999,366);
makedate(9999,366)
NULL
select makedate(100,1);
makedate(100,1)
0100-01-01
select addtime("1997-12-31 23:59:59.999999", "1 1:1:1.000002");
addtime("1997-12-31 23:59:59.999999", "1 1:1:1.000002")
1998-01-02 01:01:01.000001
...
...
mysql-test/t/func_sapdb.test
View file @
7754e54b
...
...
@@ -47,6 +47,7 @@ select makedate(1997,1);
select
makedate
(
1997
,
0
);
select
makedate
(
9999
,
365
);
select
makedate
(
9999
,
366
);
select
makedate
(
100
,
1
);
#Time functions
...
...
sql-common/my_time.c
View file @
7754e54b
...
...
@@ -769,11 +769,6 @@ long calc_daynr(uint year,uint month,uint day)
if
(
year
==
0
&&
month
==
0
&&
day
==
0
)
DBUG_RETURN
(
0
);
/* Skip errors */
if
(
year
<
200
)
{
if
((
year
=
year
+
1900
)
<
1900
+
YY_PART_YEAR
)
year
+=
100
;
}
delsum
=
(
long
)
(
365L
*
year
+
31
*
(
month
-
1
)
+
day
);
if
(
month
<=
2
)
year
--
;
...
...
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