1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-12714 Determine Item::field_type() from Item::type_handler()

This commit is contained in:
Alexander Barkov
2017-05-06 20:44:05 +04:00
parent 46239f29c6
commit c898de84b7
16 changed files with 8 additions and 139 deletions

View File

@ -670,7 +670,7 @@ Type_handler_hybrid_field_type::aggregate_for_comparison(const Type_handler *h)
to print DATE constants using proper format:
'YYYY-MM-DD' rather than 'YYYY-MM-DD 00:00:00'.
*/
if (field_type() != h->field_type())
if (m_type_handler->field_type() != h->field_type())
m_type_handler= &type_handler_datetime;
}
}