|
Item::get_temporal_with_sql_mode() has a test for field_type(). This is not friendly for new data types.
Under terms of this task we'll do the following:
After this change there will be four classes to get MYSQL_TIME from an Item:
- Time - with automatic conversion to MYSQL_TIMESTAMP_TIME
- Date - with automatic conversion to MYSQL_TIMESTAMP_DATE
- Datetime - with automatic conversion to MYSQL_TIMESTAMP_DATE
- Temporal_hybrid - without automatic timestamp type conversion
All these four classes will have methods:
- to_longlong
- to_double
- to_string
- to_decimal
|