Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.1(EOL)
-
None
-
10.1.8-4
Description
int stored_field_cmp_to_item(THD *thd, Field *field, Item *item)
|
{
|
if (field->cmp_type() == TIME_RESULT)
|
{
|
..
|
return my_time_compare(&field_time, item_time_cmp);
|
}
|
if (res_type == STRING_RESULT)
|
{
|
...
|
if (field_type == MYSQL_TYPE_DATE || field_type == MYSQL_TYPE_DATETIME ||
|
field_type == MYSQL_TYPE_TIMESTAMP)
|
{
|
// This code is dead, because all temporal types are handled
|
//in the first branch for TIME_RESULT
|
...
|
return my_time_compare(&field_time, &item_time);
|
}
|
..
|
}
|
}
|