1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

MDEV-29225 make explicit_defaults_for_timestamps SESSION variable

make @@explicit_defaults_for_timestamp session variable
This commit is contained in:
Sergei Golubchik
2022-07-02 12:22:10 +02:00
parent 086eb8e23c
commit 4e3728f038
19 changed files with 62 additions and 82 deletions

View File

@ -4271,7 +4271,7 @@ Column_definition_set_attributes(THD *thd,
column_definition_type_t type) const
{
Type_handler::Column_definition_set_attributes(thd, def, attr, cs, type);
if (!opt_explicit_defaults_for_timestamp)
if (!(thd->variables.option_bits & OPTION_EXPLICIT_DEF_TIMESTAMP))
def->flags|= NOT_NULL_FLAG;
return false;
}