654
659
uint64_t setup_tables_done_option);
655
660
void free_underlaid_joins(Session *session, Select_Lex *select);
657
bool mysql_handle_derived(LEX *lex, bool (*processor)(Session *session,
662
bool handle_derived(LEX *lex, bool (*processor)(Session *session,
659
664
TableList *table));
660
bool mysql_derived_prepare(Session *session, LEX *lex, TableList *t);
661
bool mysql_derived_filling(Session *session, LEX *lex, TableList *t);
665
bool derived_prepare(Session *session, LEX *lex, TableList *t);
666
bool derived_filling(Session *session, LEX *lex, TableList *t);
662
667
int prepare_create_field(CreateField *sql_field,
663
668
uint32_t *blob_columns,
664
669
int *timestamps, int *timestamps_with_niladic);
666
bool mysql_create_table(Session *session,
667
TableIdentifier &identifier,
668
HA_CREATE_INFO *create_info,
669
message::Table &table_proto,
670
AlterInfo *alter_info,
671
bool tmp_table, uint32_t select_field_count,
672
bool is_if_not_exists);
674
bool mysql_create_table_no_lock(Session *session,
675
TableIdentifier &identifier,
676
HA_CREATE_INFO *create_info,
677
message::Table &table_proto,
678
AlterInfo *alter_info,
679
bool tmp_table, uint32_t select_field_count,
680
bool is_if_not_exists);
682
bool mysql_create_like_table(Session* session,
683
TableIdentifier &destination_identifier,
684
TableList* table, TableList* src_table,
685
message::Table &create_table_proto,
686
bool is_if_not_exists,
689
bool mysql_rename_table(Session &session,
671
bool create_table(Session *session,
672
const identifier::Table &identifier,
673
HA_CREATE_INFO *create_info,
674
message::Table &table_proto,
675
AlterInfo *alter_info,
676
bool tmp_table, uint32_t select_field_count,
677
bool is_if_not_exists);
679
bool create_table_no_lock(Session *session,
680
const identifier::Table &identifier,
681
HA_CREATE_INFO *create_info,
682
message::Table &table_proto,
683
AlterInfo *alter_info,
684
bool tmp_table, uint32_t select_field_count,
685
bool is_if_not_exists);
687
bool create_like_table(Session* session,
688
identifier::Table::const_reference destination_identifier,
689
identifier::Table::const_reference source_identifier,
690
message::Table &create_table_proto,
691
bool is_if_not_exists,
694
bool rename_table(Session &session,
690
695
plugin::StorageEngine *base,
691
TableIdentifier &old_identifier,
692
TableIdentifier &new_identifier);
696
const identifier::Table &old_identifier,
697
const identifier::Table &new_identifier);
694
bool mysql_prepare_update(Session *session, TableList *table_list,
699
bool prepare_update(Session *session, TableList *table_list,
695
700
Item **conds, uint32_t order_num, Order *order);
696
int mysql_update(Session *session,TableList *tables,List<Item> &fields,
701
int update_query(Session *session,TableList *tables,List<Item> &fields,
697
702
List<Item> &values,COND *conds,
698
703
uint32_t order_num, Order *order, ha_rows limit,
699
704
enum enum_duplicates handle_duplicates, bool ignore);
700
bool mysql_prepare_insert(Session *session, TableList *table_list, Table *table,
705
bool prepare_insert(Session *session, TableList *table_list, Table *table,
701
706
List<Item> &fields, List_item *values,
702
707
List<Item> &update_fields,
703
708
List<Item> &update_values, enum_duplicates duplic,
704
709
COND **where, bool select_insert,
705
710
bool check_fields, bool abort_on_warning);
706
bool mysql_insert(Session *session,TableList *table,List<Item> &fields,
711
bool insert_query(Session *session,TableList *table,List<Item> &fields,
707
712
List<List_item> &values, List<Item> &update_fields,
708
713
List<Item> &update_values, enum_duplicates flag,
710
715
int check_that_all_fields_are_given_values(Session *session, Table *entry,
711
716
TableList *table_list);
712
int mysql_prepare_delete(Session *session, TableList *table_list, Item **conds);
713
bool mysql_delete(Session *session, TableList *table_list, COND *conds,
717
int prepare_delete(Session *session, TableList *table_list, Item **conds);
718
bool delete_query(Session *session, TableList *table_list, COND *conds,
714
719
SQL_LIST *order, ha_rows rows, uint64_t options,
715
720
bool reset_auto_increment);
716
bool mysql_truncate(Session& session, TableList *table_list);
721
bool truncate(Session& session, TableList *table_list);
717
722
TableShare *get_table_share(Session *session, TableList *table_list, char *key,
718
723
uint32_t key_length, uint32_t db_flags, int *error);
719
724
TableShare *get_cached_table_share(const char *db, const char *table_name);