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
8c2ce22e
Commit
8c2ce22e
authored
May 03, 2004
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compatibility fix. warning removed
parent
d9bed749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/item_timefunc.cc
sql/item_timefunc.cc
+4
-4
No files found.
sql/item_timefunc.cc
View file @
8c2ce22e
...
@@ -56,7 +56,7 @@ static bool get_interval_info(const char *str,uint length,uint count,
...
@@ -56,7 +56,7 @@ static bool get_interval_info(const char *str,uint length,uint count,
{
{
longlong
value
;
longlong
value
;
for
(
value
=
0
;
str
!=
end
&&
isdigit
(
*
str
)
;
str
++
)
for
(
value
=
0
;
str
!=
end
&&
isdigit
(
*
str
)
;
str
++
)
value
=
value
*
10LL
+
(
long
)
(
*
str
-
'0'
);
value
=
value
*
LL
(
10
)
+
(
long
)
(
*
str
-
'0'
);
values
[
i
]
=
value
;
values
[
i
]
=
value
;
while
(
str
!=
end
&&
!
isdigit
(
*
str
))
while
(
str
!=
end
&&
!
isdigit
(
*
str
))
str
++
;
str
++
;
...
@@ -1015,9 +1015,9 @@ bool Item_date_add_interval::get_date(TIME *ltime, bool fuzzy_date)
...
@@ -1015,9 +1015,9 @@ bool Item_date_add_interval::get_date(TIME *ltime, bool fuzzy_date)
days
--
;
days
--
;
sec
+=
3600
*
LL
(
24
);
sec
+=
3600
*
LL
(
24
);
}
}
ltime
->
second
=
sec
%
60
;
ltime
->
second
=
(
uint
)(
sec
%
60
)
;
ltime
->
minute
=
sec
/
60
%
60
;
ltime
->
minute
=
(
uint
)(
sec
/
60
%
60
)
;
ltime
->
hour
=
sec
/
3600
;
ltime
->
hour
=
(
uint
)(
sec
/
3600
)
;
daynr
=
calc_daynr
(
ltime
->
year
,
ltime
->
month
,
1
)
+
days
;
daynr
=
calc_daynr
(
ltime
->
year
,
ltime
->
month
,
1
)
+
days
;
if
((
ulonglong
)
daynr
>=
3652424
)
// Day number from year 0 to 9999-12-31
if
((
ulonglong
)
daynr
>=
3652424
)
// Day number from year 0 to 9999-12-31
goto
null_date
;
goto
null_date
;
...
...
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