rename binlog_show_create_table_() to binlog_show_create_table()

Other things:
- Removed not existing binlog_show_create_table() declaration in
  class select_create()
This commit is contained in:
Monty 2025-01-14 10:59:06 +02:00
parent 1f85eeeb53
commit efc5d3f84d
2 changed files with 5 additions and 6 deletions

View File

@ -6565,7 +6565,6 @@ public:
}
int prepare(List<Item> &list, SELECT_LEX_UNIT *u) override;
int binlog_show_create_table(TABLE **tables, uint count);
bool store_values(List<Item> &values, bool *trg_skip_row) override;
bool send_eof() override;
void abort_result_set() override;

View File

@ -98,8 +98,8 @@ static void unlink_blobs(TABLE *table);
#endif
static bool check_view_insertability(THD *thd, TABLE_LIST *view,
List<Item> &fields);
static int binlog_show_create_table_(THD *thd, TABLE *table,
Table_specification_st *create_info);
static int binlog_show_create_table(THD *thd, TABLE *table,
Table_specification_st *create_info);
/*
Check that insert/update fields are from the same single table of a view.
@ -4976,7 +4976,7 @@ int select_create::postlock(THD *thd, TABLE **tables)
TABLE const *const table = *tables;
if (thd->is_current_stmt_binlog_format_row() &&
!table->s->tmp_table)
return binlog_show_create_table_(thd, *tables, create_info);
return binlog_show_create_table(thd, *tables, create_info);
return 0;
}
@ -5099,7 +5099,7 @@ select_create::prepare(List<Item> &_values, SELECT_LEX_UNIT *u)
}
static int binlog_show_create_table_(THD *thd, TABLE *table,
static int binlog_show_create_table(THD *thd, TABLE *table,
Table_specification_st *create_info)
{
/*
@ -5193,7 +5193,7 @@ bool binlog_create_table(THD *thd, TABLE *table, bool replace)
HA_CREATE_USED_DEFAULT_CHARSET);
/* Ensure we write all engine options to binary log */
create_info.used_fields|= HA_CREATE_PRINT_ALL_OPTIONS;
result= binlog_show_create_table_(thd, table, &create_info) != 0;
result= binlog_show_create_table(thd, table, &create_info) != 0;
thd->variables.option_bits= save_option_bits;
return result;
}