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
056766c0
Commit
056766c0
authored
Aug 24, 2020
by
Alexander Barkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The patch for MDEV-23551 did not compile on some compilers. Fixing.
parent
04ce2935
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
sql/sql_type.h
sql/sql_type.h
+9
-2
No files found.
sql/sql_type.h
View file @
056766c0
...
...
@@ -1056,6 +1056,13 @@ class Temporal_hybrid: public Temporal
}
// End of constuctors
bool
copy_valid_value_to_mysql_time
(
MYSQL_TIME
*
ltime
)
const
{
DBUG_ASSERT
(
is_valid_temporal
());
*
ltime
=
*
this
;
return
false
;
}
longlong
to_longlong
()
const
{
if
(
!
is_valid_temporal
())
...
...
@@ -1976,7 +1983,7 @@ class Date: public Temporal_with_date
}
explicit
Date
(
const
Temporal_hybrid
*
from
)
{
*
(
static_cast
<
MYSQL_TIME
*>
(
this
))
=
*
from
;
from
->
copy_valid_value_to_mysql_time
(
this
)
;
DBUG_ASSERT
(
is_valid_date_slow
());
}
bool
is_valid_date
()
const
...
...
@@ -2240,7 +2247,7 @@ class Datetime: public Temporal_with_date
}
explicit
Datetime
(
const
Temporal_hybrid
*
from
)
{
*
(
static_cast
<
MYSQL_TIME
*>
(
this
))
=
*
from
;
from
->
copy_valid_value_to_mysql_time
(
this
)
;
DBUG_ASSERT
(
is_valid_datetime_slow
());
}
explicit
Datetime
(
const
MYSQL_TIME
*
from
)
...
...
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