mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Applied all changes from Igor and Sanja
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include "table.h" /* TABLE_LIST */
|
||||
|
||||
class Alter_info;
|
||||
class Alter_table_ctx;
|
||||
class Field;
|
||||
class String;
|
||||
class handler;
|
||||
@@ -55,7 +56,6 @@ typedef struct st_lock_param_type
|
||||
HA_CREATE_INFO *create_info;
|
||||
Alter_info *alter_info;
|
||||
TABLE *table;
|
||||
TABLE *old_table;
|
||||
KEY *key_info_buffer;
|
||||
const char *db;
|
||||
const char *table_name;
|
||||
@@ -77,7 +77,7 @@ typedef struct {
|
||||
} part_id_range;
|
||||
|
||||
struct st_partition_iter;
|
||||
#define NOT_A_PARTITION_ID ((uint32)-1)
|
||||
#define NOT_A_PARTITION_ID UINT_MAX32
|
||||
|
||||
bool is_partition_in_list(char *part_name, List<char> list_part_names);
|
||||
char *are_partitions_in_table(partition_info *new_part_info,
|
||||
@@ -252,23 +252,23 @@ uint fast_alter_partition_table(THD *thd, TABLE *table,
|
||||
HA_CREATE_INFO *create_info,
|
||||
TABLE_LIST *table_list,
|
||||
char *db,
|
||||
const char *table_name,
|
||||
TABLE *fast_alter_table);
|
||||
const char *table_name);
|
||||
bool set_part_state(Alter_info *alter_info, partition_info *tab_part_info,
|
||||
enum partition_state part_state);
|
||||
uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
|
||||
HA_CREATE_INFO *create_info,
|
||||
handlerton *old_db_type,
|
||||
Alter_table_ctx *alter_ctx,
|
||||
bool *partition_changed,
|
||||
char *db,
|
||||
const char *table_name,
|
||||
const char *path,
|
||||
TABLE **fast_alter_table);
|
||||
bool *fast_alter_table);
|
||||
char *generate_partition_syntax(partition_info *part_info,
|
||||
uint *buf_length, bool use_sql_alloc,
|
||||
bool show_partition_options,
|
||||
HA_CREATE_INFO *create_info,
|
||||
Alter_info *alter_info);
|
||||
bool verify_data_with_partition(TABLE *table, TABLE *part_table,
|
||||
uint32 part_id);
|
||||
bool compare_partition_options(HA_CREATE_INFO *table_create_info,
|
||||
partition_element *part_elem);
|
||||
bool partition_key_modified(TABLE *table, const MY_BITMAP *fields);
|
||||
#else
|
||||
#define partition_key_modified(X,Y) 0
|
||||
|
Reference in New Issue
Block a user