stonedb icon indicating copy to clipboard operation
stonedb copied to clipboard

feature(StoneDB 8.0): dd::Table * is added by MySQL 8.0 in handle api

Open DandreChen opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe.

handle api is added dd::Table * parameter,as below:

  1. int delete_table(const char *from, const dd::Table *table_def) override;
  2. int rename_table(const char *from, const char *to, const dd::Table *from_table_def, dd::Table *to_table_def) override;
  3. int create(const char *name, TABLE *table_arg, HA_CREATE_INFO *info, dd::Table *table_def) override; 
  4. bool inplace_alter_table(TABLE *altered_table [[maybe_unused]], Alter_inplace_info *ha_alter_info                              [[maybe_unused]],  const dd::Table *old_table_def [[maybe_unused]],  dd::Table *new_table_def [[maybe_unused]]) override;
  5. bool commit_inplace_alter_table(TABLE *altered_table [[maybe_unused]], Alter_inplace_info *ha_alter_info [[maybe_unused]],
 bool commit [[maybe_unused]], const dd::Table *old_table_def [[maybe_unused]],dd::Table *new_table_def [[maybe_unused]]) override;
  6. int truncate(dd::Table *table_def) override;

Describe the solution you'd like

adapt the code for MySQL 8.0

Describe alternatives you've considered

Additional context

DandreChen avatar Sep 28 '22 01:09 DandreChen

DD table Reference: https://blog.csdn.net/solihawk/article/details/120427599

lujiashun avatar Sep 30 '22 06:09 lujiashun