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
e6568630
Commit
e6568630
authored
Feb 08, 2006
by
konstantin@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/kostja/mysql/tmp_merge
into mysql.com:/home/kostja/mysql/mysql-5.1-merge
parents
0f62f384
624eec4f
Changes
1
Show 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 @
e6568630
...
@@ -5243,7 +5243,7 @@ int Field_date::store(double nr)
...
@@ -5243,7 +5243,7 @@ int Field_date::store(double nr)
else
else
tmp
=
(
longlong
)
rint
(
nr
);
tmp
=
(
longlong
)
rint
(
nr
);
return
Field_date
::
store
(
tmp
);
return
Field_date
::
store
(
tmp
,
TRUE
);
}
}
...
@@ -5265,6 +5265,9 @@ int Field_date::store(longlong nr, bool unsigned_val)
...
@@ -5265,6 +5265,9 @@ int Field_date::store(longlong nr, bool unsigned_val)
error
=
2
;
error
=
2
;
}
}
if
(
nr
>=
19000000000000.0
&&
nr
<=
99991231235959.0
)
nr
=
floor
(
nr
/
1000000.0
);
// Timestamp to date
if
(
error
)
if
(
error
)
set_datetime_warning
(
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
set_datetime_warning
(
MYSQL_ERROR
::
WARN_LEVEL_WARN
,
error
==
2
?
ER_WARN_DATA_OUT_OF_RANGE
:
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