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
20cf8f82
Commit
20cf8f82
authored
Apr 25, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.1
into mysql.com:/home/dlenev/src/mysql-4.1-bg10040
parents
ffb64880
b0d05dd9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/item_timefunc.cc
sql/item_timefunc.cc
+2
-2
No files found.
sql/item_timefunc.cc
View file @
20cf8f82
...
@@ -800,14 +800,14 @@ static bool calc_time_diff(TIME *l_time1, TIME *l_time2, int l_sign,
...
@@ -800,14 +800,14 @@ static bool calc_time_diff(TIME *l_time1, TIME *l_time2, int l_sign,
We should check it before calc_time_diff call.
We should check it before calc_time_diff call.
*/
*/
if
(
l_time1
->
time_type
==
MYSQL_TIMESTAMP_TIME
)
// Time value
if
(
l_time1
->
time_type
==
MYSQL_TIMESTAMP_TIME
)
// Time value
days
=
l_time1
->
day
-
l_sign
*
l_time2
->
day
;
days
=
(
long
)
l_time1
->
day
-
l_sign
*
(
long
)
l_time2
->
day
;
else
else
{
{
days
=
calc_daynr
((
uint
)
l_time1
->
year
,
days
=
calc_daynr
((
uint
)
l_time1
->
year
,
(
uint
)
l_time1
->
month
,
(
uint
)
l_time1
->
month
,
(
uint
)
l_time1
->
day
);
(
uint
)
l_time1
->
day
);
if
(
l_time2
->
time_type
==
MYSQL_TIMESTAMP_TIME
)
if
(
l_time2
->
time_type
==
MYSQL_TIMESTAMP_TIME
)
days
-=
l_sign
*
l_time2
->
day
;
days
-=
l_sign
*
(
long
)
l_time2
->
day
;
else
else
days
-=
l_sign
*
calc_daynr
((
uint
)
l_time2
->
year
,
days
-=
l_sign
*
calc_daynr
((
uint
)
l_time2
->
year
,
(
uint
)
l_time2
->
month
,
(
uint
)
l_time2
->
month
,
...
...
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