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
69a32092
Commit
69a32092
authored
Jul 20, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-5.0
into mysql.com:/home/jimw/my/mysql-5.0-clean
parents
58a62145
93ae805d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
sql/field.cc
sql/field.cc
+4
-4
No files found.
sql/field.cc
View file @
69a32092
...
@@ -4543,9 +4543,9 @@ int Field_timestamp::store(longlong nr)
...
@@ -4543,9 +4543,9 @@ int Field_timestamp::store(longlong nr)
THD
*
thd
=
table
->
in_use
;
THD
*
thd
=
table
->
in_use
;
/* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */
/* We don't want to store invalid or fuzzy datetime values in TIMESTAMP */
long
tmp
=
number_to_datetime
(
nr
,
&
l_time
,
(
thd
->
variables
.
sql_mode
&
long
long
tmp
=
number_to_datetime
(
nr
,
&
l_time
,
(
thd
->
variables
.
sql_mode
&
MODE_NO_ZERO_DATE
)
|
MODE_NO_ZERO_DATE
)
|
MODE_NO_ZERO_IN_DATE
,
&
error
);
MODE_NO_ZERO_IN_DATE
,
&
error
);
if
(
tmp
<
0
)
if
(
tmp
<
0
)
{
{
error
=
2
;
error
=
2
;
...
@@ -5389,7 +5389,7 @@ int Field_newdate::store(double nr)
...
@@ -5389,7 +5389,7 @@ int Field_newdate::store(double nr)
int
Field_newdate
::
store
(
longlong
nr
)
int
Field_newdate
::
store
(
longlong
nr
)
{
{
TIME
l_time
;
TIME
l_time
;
long
tmp
;
long
long
tmp
;
int
error
;
int
error
;
if
((
tmp
=
number_to_datetime
(
nr
,
&
l_time
,
if
((
tmp
=
number_to_datetime
(
nr
,
&
l_time
,
(
TIME_FUZZY_DATE
|
(
TIME_FUZZY_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