diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-07-29 15:39:57 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-08-02 18:08:40 +0200 |
commit | 56c7d142174e9fa86c829340f6a513b116749677 (patch) | |
tree | f900c3c96032dd880a4f17bec90f035d2c098e82 /sql/sql_type.cc | |
parent | b174ec169dfd6e3357f28570432093192963cfc4 (diff) | |
download | mariadb-git-56c7d142174e9fa86c829340f6a513b116749677.tar.gz |
MDEV-29075 Changing explicit_defaults_for_timestamp within stored procedure works inconsistently
Diffstat (limited to 'sql/sql_type.cc')
-rw-r--r-- | sql/sql_type.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/sql/sql_type.cc b/sql/sql_type.cc index 11a955627a6..d2939f5e6e9 100644 --- a/sql/sql_type.cc +++ b/sql/sql_type.cc @@ -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 { |