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

@ -4432,7 +4432,7 @@ TABLE *select_create::create_table_from_items(THD *thd, List<Item> *items,
tmp_table.maybe_null= 0;
tmp_table.in_use= thd;
if (!opt_explicit_defaults_for_timestamp)
if (!(thd->variables.option_bits & OPTION_EXPLICIT_DEF_TIMESTAMP))
promote_first_timestamp_column(&alter_info->create_list);
if (create_info->fix_create_fields(thd, alter_info, *create_table))