diff options
author | Nikita Malyavin <nikitamalyavin@gmail.com> | 2018-06-22 16:26:43 +0300 |
---|---|---|
committer | Nikita Malyavin <nikitamalyavin@gmail.com> | 2019-09-11 19:36:09 +0300 |
commit | 8e3a1c576ef26afea79a7b5d782564c96f3722ef (patch) | |
tree | cc61a628def4450adedcb8b6e89edf5f63ff3a9c /sql/handler.h | |
parent | 5c5452a5a086a9584efb2255059da671fff6e484 (diff) | |
download | mariadb-git-10.4-nikita-merge.tar.gz |
cherry-pick MDEV-1649010.4-nikita-merge
Diffstat (limited to 'sql/handler.h')
-rw-r--r-- | sql/handler.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sql/handler.h b/sql/handler.h index 5e5c0ffc001..f0d3b51a93c 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -1551,7 +1551,7 @@ struct handlerton the select statement 'select, otherwise return NULL */ select_handler *(*create_select) (THD *thd, SELECT_LEX *select); - + /********************************************************************* Table discovery API. It allows the server to "discover" tables that exist in the storage @@ -2163,18 +2163,20 @@ struct Table_scope_and_contents_source_st: } bool fix_create_fields(THD *thd, Alter_info *alter_info, - const TABLE_LIST &create_table, - bool create_select= false); + const TABLE_LIST &create_table); bool fix_period_fields(THD *thd, Alter_info *alter_info); - bool check_fields(THD *thd, Alter_info *alter_info, TABLE_LIST &create_table); + bool check_fields(THD *thd, Alter_info *alter_info, const TABLE_LIST &create_table, + int select_count= 0); bool check_period_fields(THD *thd, Alter_info *alter_info); bool vers_fix_system_fields(THD *thd, Alter_info *alter_info, - const TABLE_LIST &create_table, - bool create_select= false); + const TABLE_LIST &create_table); bool vers_check_system_fields(THD *thd, Alter_info *alter_info, - const TABLE_LIST &create_table); + const Lex_table_name &table_name, + const Lex_table_name &db, + int select_count= 0); + }; @@ -2661,7 +2663,7 @@ public: { return IO_COEFF*io_count*avg_io_cost + IO_COEFF*idx_io_count*idx_avg_io_cost + - CPU_COEFF*cpu_cost + + CPU_COEFF*cpu_cost + MEM_COEFF*mem_cost + IMPORT_COEFF*import_cost; } |