Skip to content

Commit 379ddf4

Browse files
dmitryshulgavuvova
authored andcommitted
MDEV-22165: Prerequisite patch that adds missing data member initializers 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.
1 parent d324c03 commit 379ddf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sql/sql_alter.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ Alter_table_ctx::Alter_table_ctx()
259259
tables_opened(0),
260260
db(null_clex_str), table_name(null_clex_str), alias(null_clex_str),
261261
new_db(null_clex_str), new_name(null_clex_str), new_alias(null_clex_str),
262+
storage_engine_partitioned(false),
263+
tmp_storage_engine_name_partitioned(false),
262264
fk_error_if_delete_row(false), fk_error_id(NULL),
263265
fk_error_table(NULL)
264266
#ifdef DBUG_ASSERT_EXISTS
@@ -279,6 +281,7 @@ Alter_table_ctx::Alter_table_ctx(THD *thd, TABLE_LIST *table_list,
279281
: implicit_default_value_error_field(NULL), error_if_not_empty(false),
280282
tables_opened(tables_opened_arg),
281283
new_db(*new_db_arg), new_name(*new_name_arg),
284+
tmp_storage_engine_name_partitioned(false),
282285
fk_error_if_delete_row(false), fk_error_id(NULL),
283286
fk_error_table(NULL),
284287
tmp_table(false)

0 commit comments

Comments
 (0)