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

MDEV-12777 Change Lex_field_type_st::m_type from enum_field_types to Type_handler pointer

This commit is contained in:
Alexander Barkov
2017-05-10 18:14:08 +04:00
parent 191638416b
commit 533506b4ed
6 changed files with 159 additions and 127 deletions

View File

@ -1246,6 +1246,17 @@ extern "C" my_thread_id next_thread_id_noinline()
}
#endif
const Type_handler *THD::type_handler_for_date() const
{
if (!(variables.sql_mode & MODE_ORACLE))
return &type_handler_newdate;
if (opt_mysql56_temporal_format)
return &type_handler_datetime2;
return &type_handler_datetime;
}
/*
Init common variables that has to be reset on start and on change_user
*/