The world's most popular open source database
#include <table.h>
Collaboration diagram for st_table_share:

Definition at line 113 of file table.h.
| void st_table_share::set_table_cache_key | ( | char * | key_buff, | |
| const char * | key, | |||
| uint | key_length | |||
| ) | [inline] |
Definition at line 283 of file table.h.
References memcpy, and set_table_cache_key().
00284 { 00285 memcpy(key_buff, key, key_length); 00286 set_table_cache_key(key_buff, key_length); 00287 }
Here is the call graph for this function:

| void st_table_share::set_table_cache_key | ( | char * | key_buff, | |
| uint | key_length | |||
| ) | [inline] |
Definition at line 253 of file table.h.
References db, LEX_STRING::length, LEX_STRING::str, strlen(), table_cache_key, and table_name.
Referenced by rename_temporary_table(), and set_table_cache_key().
00254 { 00255 table_cache_key.str= key_buff; 00256 table_cache_key.length= key_length; 00257 /* 00258 Let us use the fact that the key is "db/0/table_name/0" + optional 00259 part for temporary tables. 00260 */ 00261 db.str= table_cache_key.str; 00262 db.length= strlen(db.str); 00263 table_name.str= db.str + db.length + 1; 00264 table_name.length= strlen(table_name.str); 00265 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 140 of file table.h.
Referenced by handler::ha_reset(), mysql_ha_read(), setup_tmp_table_column_bitmaps(), tmp_use_all_columns(), and st_table::use_all_columns().
Definition at line 160 of file table.h.
Referenced by get_schema_tables_record(), mysql_alter_table(), open_binary_frm(), ha_myisam::start_bulk_insert(), store_create_info(), and update_create_info_from_table().
Definition at line 134 of file table.h.
Referenced by ha_archive::get_row(), and ha_archive::real_write_row().
Definition at line 181 of file table.h.
Referenced by compare_record(), Field_blob::Field_blob(), ha_archive::get_row(), delayed_insert::handle_inserts(), init_read_record(), ha_archive::real_write_row(), and write_delayed().
Definition at line 172 of file table.h.
Referenced by create_field::create_field(), create_myisam_tmp_table(), create_table_from_items(), Field::fill_cache_field(), open_binary_frm(), and Field_blob::pack_length().
Definition at line 194 of file table.h.
Referenced by st_table::clear_column_bitmaps(), fill_used_fields_bitmap(), delayed_insert::get_local_table(), handler::ha_reset(), open_table_from_share(), and QUICK_RANGE_SELECT::QUICK_RANGE_SELECT().
Definition at line 137 of file table.h.
Referenced by get_schema_tables_record(), mysql_alter_table(), and store_create_info().
| pthread_cond_t st_table_share::cond |
Definition at line 200 of file table.h.
Referenced by ha_myisammrg::info(), mysql_admin_table(), ha_myisammrg::open(), and open_table_from_share().
Definition at line 152 of file table.h.
Referenced by abort_locked_tables(), ha_myisam::analyze(), ha_myisammrg::append_create_info(), ha_myisam::assign_to_keycache(), ha_myisam::backup(), ha_myisam::check(), check_column_grant_in_table_ref(), ha_myisam::check_if_locking_is_allowed(), check_insert_fields(), close_data_tables(), Table_triggers_list::create_trigger(), Field_iterator_table_ref::db_name(), Natural_join_column::db_name(), drop_locked_tables(), Item_trigger_field::fix_fields(), free_table_share(), list_open_tables(), Field::make_field(), mysql_admin_table(), mysql_ha_flush_table(), mysql_truncate(), open_new_frm(), open_table_def(), open_table_error(), open_table_from_share(), open_unireg_entry(), ha_myisam::preload_keys(), handler::print_error(), Table_triggers_list::process_triggers(), release_table_share(), reopen_table(), ha_myisam::repair(), ha_myisam::restore(), Item_field::set_field(), set_table_cache_key(), Item_func_sp::sp_result_field(), and wait_while_table_is_used().
Definition at line 184 of file table.h.
Referenced by create_table_from_items(), get_schema_tables_record(), mysql_alter_table(), mysql_checksum_table(), open_binary_frm(), store_create_info(), Field_string::type(), and update_create_info_from_table().
Definition at line 199 of file table.h.
Referenced by Field_datetime::cmp(), Field_date::cmp(), Field_timestamp::cmp(), Field_double::cmp(), Field_float::cmp(), Field_long::cmp(), Field_short::cmp(), create_table_from_items(), Field_timestamp::get_date(), Field_blob::get_length(), Field_timestamp::get_timestamp(), open_binary_frm(), Field_timestamp::set_time(), Field_datetime::store(), Field_date::store(), Field_timestamp::store(), Field_double::store(), Field_float::store(), Field_long::store(), Field_short::store(), Field_blob::store_length(), Field_datetime::store_time(), Field_enum::store_type(), Field_enum::val_int(), Field_datetime::val_int(), Field_date::val_int(), Field_timestamp::val_int(), Field_double::val_int(), Field_float::val_int(), Field_long::val_int(), Field_short::val_int(), Field_date::val_real(), Field_double::val_real(), Field_float::val_real(), Field_long::val_real(), Field_short::val_real(), and Field_timestamp::val_str().
Definition at line 185 of file table.h.
Referenced by ha_myisam::check_if_incompatible_data(), get_schema_tables_record(), handler::ha_open(), ha_myisammrg::info(), ha_myisam::info(), init_read_record(), and open_binary_frm().
Definition at line 186 of file table.h.
Referenced by create_myisam_tmp_table(), ha_myisam::info(), ha_myisam::open(), and open_binary_frm().
Definition at line 166 of file table.h.
Referenced by close_temporary(), compare_tables(), create_myisam_from_heap(), get_schema_tables_record(), handler::ha_open(), QUICK_RANGE_SELECT::init_ror_merged_scan(), mysql_alter_table(), mysql_truncate(), open_binary_frm(), open_table_error(), open_table_from_share(), and Item_sum_count_distinct::setup().
Definition at line 136 of file table.h.
Referenced by Field::clone(), create_field::create_field(), create_tmp_table(), mysql_insert(), open_table_from_share(), and Field::set_default().
Definition at line 130 of file table.h.
Referenced by find_field_in_table(), find_field_in_table_sef(), and open_table_from_share().
Definition at line 175 of file table.h.
Referenced by check_insert_fields(), check_view_insertability(), compare_tables(), composite_key_cmp(), db_create_routine(), db_find_routine(), fill_used_fields_bitmap(), get_best_covering_ror_intersect(), get_best_group_min_max(), delayed_insert::get_local_table(), Field_iterator_table_ref::get_or_create_column_ref(), insert_fields(), Event_timed::load_from_row(), make_ror_scan(), mysql_checksum_table(), open_table_from_share(), Table_triggers_list::prepare_record1_accessors(), QUICK_RANGE_SELECT::QUICK_RANGE_SELECT(), replace_db_table(), replace_user_table(), ror_intersect_init(), Field_iterator_table_ref::set_field_iterator(), Item_sum_count_distinct::setup(), setup_tmp_table_column_bitmaps(), and table_check_intact().
Definition at line 162 of file table.h.
Referenced by close_thread_table(), and reopen_name_locked_table().
Definition at line 195 of file table.h.
Referenced by compare_tables(), get_schema_tables_record(), open_binary_frm(), and Field_string::type().
Definition at line 173 of file table.h.
Referenced by mysql_alter_table(), store_create_info(), and store_key_options().
Definition at line 133 of file table.h.
Referenced by ha_blackhole::index_flags(), ha_myisammrg::index_flags(), ha_myisam::index_flags(), ha_heap::index_flags(), ha_archive::index_read_idx(), ha_blackhole::index_type(), ha_heap::index_type(), open_binary_frm(), open_table_from_share(), and ha_archive::write_row().
Definition at line 177 of file table.h.
Referenced by ha_myisammrg::info(), ha_myisam::info(), open_binary_frm(), open_table_from_share(), and SQL_SELECT::test_quick_select().
Definition at line 118 of file table.h.
Referenced by get_key_map_from_key_list(), get_topics_for_keyword(), and mysql_ha_read().
Definition at line 177 of file table.h.
Referenced by add_key_part(), check_key_in_view(), compare_tables(), ha_archive::create(), ha_heap::create(), create_myisam_tmp_table(), find_key_for_maxmin(), find_shortest_key(), Item_func_match::fix_index(), get_best_group_min_max(), get_index_for_order(), get_schema_constraints_record(), get_schema_key_column_usage_record(), get_schema_stat_record(), handler::ha_check_for_upgrade(), ha_myisammrg::info(), ha_myisam::info(), list_contains_unique_index(), make_join_statistics(), mysql_alter_table(), ha_myisam::open(), open_binary_frm(), open_table_from_share(), reopen_table(), ha_heap::set_keys_for_scanning(), setup_end_select_func(), store_create_info(), test_if_skip_sort_order(), test_if_subkey(), SQL_SELECT::test_quick_select(), and ha_heap::update_key_stats().
Definition at line 158 of file table.h.
Referenced by ha_myisam::info(), open_binary_frm(), reopen_name_locked_table(), and reopen_table().
Definition at line 157 of file table.h.
Referenced by get_schema_stat_record(), ha_myisammrg::info(), ha_myisam::info(), open_binary_frm(), reopen_name_locked_table(), reopen_table(), and test_if_skip_sort_order().
Definition at line 226 of file table.h.
Referenced by handler::check_if_log_table_locking_is_allowed(), close_old_data_files(), mysql_admin_table(), and open_table_def().
Definition at line 159 of file table.h.
Referenced by get_schema_tables_record(), mysql_alter_table(), open_binary_frm(), store_create_info(), and update_create_info_from_table().
Definition at line 117 of file table.h.
Referenced by free_table_share(), QUICK_RANGE_SELECT::init_ror_merged_scan(), open_binary_frm(), open_table_def(), open_table_from_share(), and rename_temporary_table().
Definition at line 159 of file table.h.
Referenced by get_schema_tables_record(), mysql_alter_table(), open_binary_frm(), store_create_info(), and update_create_info_from_table().
| pthread_mutex_t st_table_share::mutex |
Definition at line 121 of file table.h.
Referenced by close_cached_tables(), free_table_share(), get_table_share(), ha_myisam::info(), and remove_table_from_cache().
Definition at line 162 of file table.h.
Referenced by handler::check_old_types(), compare_tables(), handler::ha_check(), handler::ha_check_for_upgrade(), open_binary_frm(), table_check_intact(), and update_frm_version().
Definition at line 116 of file table.h.
Referenced by find_field_in_table(), find_field_in_table_sef(), and free_table_share().
| struct st_table_share* st_table_share::next |
Definition at line 123 of file table.h.
Referenced by close_cached_tables(), get_table_share(), release_table_share(), and table_def_free_entry().
Definition at line 191 of file table.h.
Referenced by ha_heap::create(), handler::get_auto_increment(), ha_myisam::get_auto_increment(), st_table::mark_auto_increment_column(), and write_record().
Definition at line 192 of file table.h.
Referenced by handler::get_auto_increment(), ha_myisam::get_auto_increment(), st_table::mark_auto_increment_column(), and handler::update_auto_increment().
Definition at line 155 of file table.h.
Referenced by ha_myisam::backup(), QUICK_RANGE_SELECT::init_ror_merged_scan(), mysql_truncate(), open_new_frm(), open_table_def(), open_table_error(), open_table_from_share(), prepare_for_repair(), ha_myisam::restore(), and update_frm_version().
Definition at line 174 of file table.h.
Referenced by Item_func_group_concat::add(), Item_sum_count_distinct::add(), compare_record(), dump_leaf_key(), ha_tina::find_current_row(), group_concat_key_cmp_with_distinct(), group_concat_key_cmp_with_order(), mysql_checksum_table(), open_table_from_share(), Item_func_group_concat::setup(), and Item_sum_distinct::setup().
Definition at line 196 of file table.h.
Referenced by open_binary_frm(), and open_table_from_share().
Definition at line 154 of file table.h.
Referenced by ha_myisam::check_and_repair(), close_temporary(), ha_create_table(), mysql_create_like_table(), mysql_truncate(), open_binary_frm(), open_new_frm(), ha_myisam::repair(), and report_error().
| struct st_table_share ** st_table_share::prev |
Definition at line 123 of file table.h.
Referenced by release_table_share(), table_def_free_entry(), and table_def_init().
Definition at line 190 of file table.h.
Referenced by check_if_key_used(), check_quick_select(), fill_used_fields_bitmap(), get_best_disjunct_quick(), get_best_group_min_max(), get_best_ror_intersect(), get_key_scans_params(), get_schema_constraints_record(), get_schema_key_column_usage_record(), get_sweep_read_cost(), is_key_scan_ror(), join_read_system(), list_contains_unique_index(), st_table::mark_columns_needed_for_delete(), st_table::mark_columns_needed_for_update(), st_table::prepare_for_position(), QUICK_INDEX_MERGE_SELECT::push_quick_back(), safe_update_on_fly(), and store_create_info().
Definition at line 176 of file table.h.
Referenced by compare_record(), handler::get_auto_increment(), ha_myisam::get_auto_increment(), QUICK_GROUP_MIN_MAX_SELECT::next_min_in_range(), open_table_from_share(), and st_table_list::set_insert_values().
Definition at line 164 of file table.h.
Referenced by calc_used_field_length(), ha_tina::check(), ha_archive::check(), create_myisam_tmp_table(), dump_leaf_key(), delayed_insert::get_local_table(), ha_archive::get_row(), delayed_insert::handle_inserts(), ha_archive::info(), init_read_record(), init_rr_cache(), ha_myisammrg::open(), open_binary_frm(), open_table_from_share(), ha_archive::optimize(), ha_archive::real_write_row(), remove_dup_with_compare(), ha_tina::repair(), QUICK_RANGE_SELECT::reset(), rr_from_cache(), Item_func_group_concat::setup(), Item_sum_distinct::setup(), write_delayed(), and ha_archive::write_row().
Definition at line 170 of file table.h.
Referenced by free_table_share(), open_unireg_entry(), remove_table_from_cache(), and reopen_table().
Definition at line 167 of file table.h.
Referenced by get_schema_tables_record(), mysql_alter_table(), store_create_info(), and update_create_info_from_table().
Definition at line 197 of file table.h.
Referenced by make_join_statistics(), and open_binary_frm().
Definition at line 221 of file table.h.
Referenced by ha_myisam::check_if_locking_is_allowed(), open_proc_table_for_read(), and open_table_def().
Definition at line 151 of file table.h.
Referenced by close_handle_and_leave_table_as_lock(), find_temporary_table(), push_locks_into_array(), reopen_name_locked_table(), reopen_table(), set_table_cache_key(), Item_func_sp::sp_result_field(), table_is_used(), tmpkeyval(), and update_frm_version().
Definition at line 138 of file table.h.
Referenced by get_schema_tables_record(), mysql_alter_table(), open_binary_frm(), store_create_info(), and update_create_info_from_table().

