summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2022-07-02 12:22:10 +0200
committerSergei Golubchik <serg@mariadb.org>2022-08-02 18:05:32 +0200
commit4e3728f03842043dff6b4ba03a316f8a54984b25 (patch)
treed7010dcef8d7271bcceb5705e78439a91f627eac /sql/sql_insert.cc
parent086eb8e23c7ce6ea1dc14ce389172d1b2c9d6e6c (diff)
downloadmariadb-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.cc2
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))