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
624eec4f
Commit
624eec4f
authored
Jan 30, 2006
by
SergeyV@selena
Browse files
Options
Browse Files
Download
Plain Diff
Merge svlasenko@bk-internal.mysql.com:/home/bk/mysql-5.0
into selena.:H:/MYSQL/src/#15634-mysql-5.0
parents
779df9d9
6d55b423
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
sql/field.cc
sql/field.cc
+4
-1
No files found.
sql/field.cc
View file @
624eec4f
...
...
@@ -5239,7 +5239,7 @@ int Field_date::store(double nr)
else
tmp
=
(
longlong
)
rint
(
nr
);
return
Field_date
::
store
(
tmp
);
return
Field_date
::
store
(
tmp
,
TRUE
);
}
...
...
@@ -5261,6 +5261,9 @@ int Field_date::store(longlong nr, bool unsigned_val)
error
=
2
;
}
if
(
nr
>=
19000000000000.0
&&
nr
<=
99991231235959.0
)
nr
=
floor
(
nr
/
1000000.0
);
// Timestamp to date
if
(
error
)
set_datetime_warning
(
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
error
==
2
?
ER_WARN_DATA_OUT_OF_RANGE
:
...
...
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