mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Move vers_type_timestamp within the CC file
It's a virtual method and it can't be inlined anyway. This allows type plugins (mysql_json in particular) to use Type_handler_blob and / or subclass it, without needing to explicitly expose the vers_type_timestamp object.
This commit is contained in:
@ -6958,6 +6958,24 @@ bool Type_handler_string_result::
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
const Vers_type_handler* Type_handler_temporal_result::vers() const
|
||||
{
|
||||
return &vers_type_timestamp;
|
||||
}
|
||||
|
||||
const Vers_type_handler* Type_handler_string_result::vers() const
|
||||
{
|
||||
return &vers_type_timestamp;
|
||||
}
|
||||
|
||||
const Vers_type_handler* Type_handler_blob_common::vers() const
|
||||
|
||||
{
|
||||
return &vers_type_timestamp;
|
||||
}
|
||||
|
||||
/***************************************************************************/
|
||||
|
||||
uint Type_handler::Item_time_precision(THD *thd, Item *item) const
|
||||
{
|
||||
return MY_MIN(item->decimals, TIME_SECOND_PART_DIGITS);
|
||||
|
Reference in New Issue
Block a user