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
9d85f991
Commit
9d85f991
authored
Dec 04, 2003
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/home/dlenev/src/mysql-4.0-tsbug
parents
0a9ae10f
8f4ed1d7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
sql/field.cc
sql/field.cc
+5
-9
No files found.
sql/field.cc
View file @
9d85f991
...
@@ -2569,7 +2569,8 @@ static longlong fix_datetime(longlong nr, TIME *time_res)
...
@@ -2569,7 +2569,8 @@ static longlong fix_datetime(longlong nr, TIME *time_res)
time_res
->
minute
=
(
int
)
part2
/
100
;
time_res
->
minute
=
(
int
)
part2
/
100
;
time_res
->
second
=
(
int
)
part2
%
100
;
time_res
->
second
=
(
int
)
part2
%
100
;
if
(
time_res
->
month
<=
12
&&
time_res
->
day
<=
31
&&
time_res
->
hour
<=
23
&&
if
(
time_res
->
year
<=
9999
&&
time_res
->
month
<=
12
&&
time_res
->
day
<=
31
&&
time_res
->
hour
<=
23
&&
time_res
->
minute
<=
59
&&
time_res
->
second
<=
59
)
time_res
->
minute
<=
59
&&
time_res
->
second
<=
59
)
return
nr
;
return
nr
;
...
@@ -2584,7 +2585,7 @@ void Field_timestamp::store(longlong nr)
...
@@ -2584,7 +2585,7 @@ void Field_timestamp::store(longlong nr)
TIME
l_time
;
TIME
l_time
;
time_t
timestamp
;
time_t
timestamp
;
if
((
nr
=
fix_datetime
(
nr
,
&
l_time
)))
if
((
nr
=
fix_datetime
(
nr
,
&
l_time
)))
{
{
long
not_used
;
long
not_used
;
...
@@ -3432,15 +3433,10 @@ void Field_datetime::store(double nr)
...
@@ -3432,15 +3433,10 @@ void Field_datetime::store(double nr)
void
Field_datetime
::
store
(
longlong
nr
)
void
Field_datetime
::
store
(
longlong
nr
)
{
{
TIME
l_time
;
TIME
not_used
;
nr
=
fix_datetime
(
nr
,
&
l_time
);
nr
=
fix_datetime
(
nr
,
&
not_used
);
if
(
l_time
.
year
>
9999
)
{
nr
=
0
;
current_thd
->
cuted_fields
++
;
}
#ifdef WORDS_BIGENDIAN
#ifdef WORDS_BIGENDIAN
if
(
table
->
db_low_byte_first
)
if
(
table
->
db_low_byte_first
)
{
{
...
...
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