Skip to content

Commit

Permalink
MDEV-22165: Prerequisite patch that adds missing data member initiali…
Browse files Browse the repository at this point in the history
…zers in constructors of the class Alter_table_ctx

Static analyzer built in Eclipse CDT complained about missing initializers in
constructors of the class Alter_table_ctx so I've added them in order to
eliminate annoying warnings.
  • Loading branch information
dmitryshulga authored and vuvova committed Oct 26, 2021
1 parent d324c03 commit 379ddf4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sql/sql_alter.cc
Expand Up @@ -259,6 +259,8 @@ Alter_table_ctx::Alter_table_ctx()
tables_opened(0),
db(null_clex_str), table_name(null_clex_str), alias(null_clex_str),
new_db(null_clex_str), new_name(null_clex_str), new_alias(null_clex_str),
storage_engine_partitioned(false),
tmp_storage_engine_name_partitioned(false),
fk_error_if_delete_row(false), fk_error_id(NULL),
fk_error_table(NULL)
#ifdef DBUG_ASSERT_EXISTS
Expand All @@ -279,6 +281,7 @@ Alter_table_ctx::Alter_table_ctx(THD *thd, TABLE_LIST *table_list,
: implicit_default_value_error_field(NULL), error_if_not_empty(false),
tables_opened(tables_opened_arg),
new_db(*new_db_arg), new_name(*new_name_arg),
tmp_storage_engine_name_partitioned(false),
fk_error_if_delete_row(false), fk_error_id(NULL),
fk_error_table(NULL),
tmp_table(false)
Expand Down

0 comments on commit 379ddf4

Please sign in to comment.