diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-07-02 12:22:10 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2022-08-02 18:05:32 +0200 |
commit | 4e3728f03842043dff6b4ba03a316f8a54984b25 (patch) | |
tree | d7010dcef8d7271bcceb5705e78439a91f627eac /sql/sql_insert.cc | |
parent | 086eb8e23c7ce6ea1dc14ce389172d1b2c9d6e6c (diff) | |
download | mariadb-git-4e3728f03842043dff6b4ba03a316f8a54984b25.tar.gz |
MDEV-29225 make explicit_defaults_for_timestamps SESSION variable
make @@explicit_defaults_for_timestamp session variable
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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<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)) |