Details
-
Task
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
Description
Under terms of this task we'll get rid of the code testing result_type() against STRING_RESULT, REAL_RESULT, DECIMAL_RESULT and move this code into a new virtual method in Type_handler
virtual int Item_save_in_field(Item *item, Field *field, |
bool no_conversions) const= 0; |
The method Item::save_in_field() will turn into simple two lines:
int Item::save_in_field(Field *field, bool no_conversions) |
{
|
int error= type_handler()->Item_save_in_field(this, field, no_conversions); |
return error ? error : (field->table->in_use->is_error() ? 1 : 0); |
}
|
Attachments
Issue Links
- blocks
-
MDEV-4912 Data type plugin API version 1
- Closed
-
MDEV-10182 Bad value when inserting COALESCE(CURRENT_TIMESTAMP) into a DECIMAL column
- Closed
- is blocked by
-
MDEV-11331 Wrong result for INSERT INTO t1 (datetime_field) VALUES (hybrid_function_of_TIME_data_type)
- Closed
-
MDEV-11333 Expect "Impossible where condition" for WHERE timestamp_field>=DATE_ADD(TIMESTAMP'9999-01-01 00:00:00',INTERVAL 1000 YEAR)
- Closed