mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-29075 Changing explicit_defaults_for_timestamp within stored procedure works inconsistently
This commit is contained in:
@ -4262,19 +4262,6 @@ void Type_handler_temporal_with_date::Item_update_null_value(Item *item) const
|
||||
(void) item->get_date(thd, <ime, Datetime::Options(thd));
|
||||
}
|
||||
|
||||
bool
|
||||
Type_handler_timestamp_common::
|
||||
Column_definition_set_attributes(THD *thd,
|
||||
Column_definition *def,
|
||||
const Lex_field_type_st &attr,
|
||||
CHARSET_INFO *cs,
|
||||
column_definition_type_t type) const
|
||||
{
|
||||
Type_handler::Column_definition_set_attributes(thd, def, attr, cs, type);
|
||||
if (!(thd->variables.option_bits & OPTION_EXPLICIT_DEF_TIMESTAMP))
|
||||
def->flags|= NOT_NULL_FLAG;
|
||||
return false;
|
||||
}
|
||||
|
||||
void Type_handler_string_result::Item_update_null_value(Item *item) const
|
||||
{
|
||||
|
Reference in New Issue
Block a user