From 4e3728f03842043dff6b4ba03a316f8a54984b25 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Sat, 2 Jul 2022 12:22:10 +0200 Subject: MDEV-29225 make explicit_defaults_for_timestamps SESSION variable make @@explicit_defaults_for_timestamp session variable --- sql/sql_insert.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/sql_insert.cc') diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 4e0415a049a..8668b5d0dd2 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -4432,7 +4432,7 @@ TABLE *select_create::create_table_from_items(THD *thd, List *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)) -- cgit v1.2.1