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
e0bdce86
Commit
e0bdce86
authored
Oct 12, 2007
by
unknown
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
0d128c07
91f6d169
Changes
3
Hide 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 @
e0bdce86
...
...
@@ -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 @
e0bdce86
...
...
@@ -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 @
e0bdce86
...
...
@@ -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