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
f5e0cf8e
Commit
f5e0cf8e
authored
Jan 04, 2005
by
joerg@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed C++ style comments to C style, bug#7665.
parent
a99921fb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql-common/my_time.c
sql-common/my_time.c
+4
-4
No files found.
sql-common/my_time.c
View file @
f5e0cf8e
...
...
@@ -910,14 +910,14 @@ longlong number_to_datetime(longlong nr, MYSQL_TIME *time_res,
goto
err
;
if
(
nr
<=
(
YY_PART_YEAR
-
1
)
*
10000L
+
1231L
)
{
nr
=
(
nr
+
20000000L
)
*
1000000L
;
/
/ YYMMDD, year: 2000-2069
nr
=
(
nr
+
20000000L
)
*
1000000L
;
/
* YYMMDD, year: 2000-2069 */
goto
ok
;
}
if
(
nr
<
(
YY_PART_YEAR
)
*
10000L
+
101L
)
goto
err
;
if
(
nr
<=
991231L
)
{
nr
=
(
nr
+
19000000L
)
*
1000000L
;
/
/ YYMMDD, year: 1970-1999
nr
=
(
nr
+
19000000L
)
*
1000000L
;
/
* YYMMDD, year: 1970-1999 */
goto
ok
;
}
if
(
nr
<
10000101L
)
...
...
@@ -931,13 +931,13 @@ longlong number_to_datetime(longlong nr, MYSQL_TIME *time_res,
goto
err
;
if
(
nr
<=
(
YY_PART_YEAR
-
1
)
*
LL
(
10000000000
)
+
LL
(
1231235959
))
{
nr
=
nr
+
LL
(
20000000000000
);
/
/ YYMMDDHHMMSS, 2000-2069
nr
=
nr
+
LL
(
20000000000000
);
/
* YYMMDDHHMMSS, 2000-2069 */
goto
ok
;
}
if
(
nr
<
YY_PART_YEAR
*
LL
(
10000000000
)
+
LL
(
101000000
))
goto
err
;
if
(
nr
<=
LL
(
991231235959
))
nr
=
nr
+
LL
(
19000000000000
);
/
/ YYMMDDHHMMSS, 1970-1999
nr
=
nr
+
LL
(
19000000000000
);
/
* YYMMDDHHMMSS, 1970-1999 */
ok:
part1
=
(
long
)
(
nr
/
LL
(
1000000
));
...
...
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