#include "mysql_priv.h"#include <errno.h>#include <m_ctype.h>#include "md5.h"Include dependency graph for sql_partition.cc:

Go to the source code of this file.
Defines | |
| #define | MYSQL_LEX 1 |
Functions | |
| static uint32 | get_next_partition_via_walking (PARTITION_ITERATOR *) |
| static uint32 | get_next_subpartition_via_walking (PARTITION_ITERATOR *) |
| uint32 | get_next_partition_id_range (PARTITION_ITERATOR *part_iter) |
| uint32 | get_next_partition_id_list (PARTITION_ITERATOR *part_iter) |
| int | get_part_iter_for_interval_via_mapping (partition_info *part_info, bool is_subpart, char *min_value, char *max_value, uint flags, PARTITION_ITERATOR *part_iter) |
| int | get_part_iter_for_interval_via_walking (partition_info *part_info, bool is_subpart, char *min_value, char *max_value, uint flags, PARTITION_ITERATOR *part_iter) |
| static void | set_up_range_analysis_info (partition_info *part_info) |
| my_bool | is_partition_management (LEX *lex) |
| void | set_field_ptr (Field **ptr, const byte *new_buf, const byte *old_buf) |
| void | set_key_field_ptr (KEY *key_info, const byte *new_buf, const byte *old_buf) |
| void | mem_alloc_error (size_t size) |
| #define MYSQL_LEX 1 |
Definition at line 36 of file sql_partition.cc.
| uint32 get_next_partition_id_list | ( | PARTITION_ITERATOR * | part_iter | ) |
| uint32 get_next_partition_id_range | ( | PARTITION_ITERATOR * | part_iter | ) |
| static uint32 get_next_partition_via_walking | ( | PARTITION_ITERATOR * | ) | [static] |
| static uint32 get_next_subpartition_via_walking | ( | PARTITION_ITERATOR * | ) | [static] |
| int get_part_iter_for_interval_via_mapping | ( | partition_info * | part_info, | |
| bool | is_subpart, | |||
| char * | min_value, | |||
| char * | max_value, | |||
| uint | flags, | |||
| PARTITION_ITERATOR * | part_iter | |||
| ) |
| int get_part_iter_for_interval_via_walking | ( | partition_info * | part_info, | |
| bool | is_subpart, | |||
| char * | min_value, | |||
| char * | max_value, | |||
| uint | flags, | |||
| PARTITION_ITERATOR * | part_iter | |||
| ) |
| my_bool is_partition_management | ( | LEX * | lex | ) |
Definition at line 146 of file sql_partition.cc.
References SQLCOM_ALTER_TABLE.
00147 { 00148 return (lex->sql_command == SQLCOM_ALTER_TABLE && 00149 (lex->alter_info.flags == ALTER_ADD_PARTITION || 00150 lex->alter_info.flags == ALTER_REORGANIZE_PARTITION)); 00151 }
| void mem_alloc_error | ( | size_t | size | ) |
Definition at line 6143 of file sql_partition.cc.
References ER_OUTOFMEMORY, my_error(), and MYF.
Referenced by copy_create_info(), execute_ddl_log_action(), mysql_copy_create_list(), mysql_copy_key_list(), mysql_create_table_internal(), and mysql_write_frm().
06144 { 06145 my_error(ER_OUTOFMEMORY, MYF(0), size); 06146 }
Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 6076 of file sql_partition.cc.
References DBUG_ENTER, and DBUG_VOID_RETURN.
06078 { 06079 my_ptrdiff_t diff= (new_buf - old_buf); 06080 DBUG_ENTER("set_field_ptr"); 06081 06082 do 06083 { 06084 (*ptr)->move_field_offset(diff); 06085 } while (*(++ptr)); 06086 DBUG_VOID_RETURN; 06087 }
Definition at line 6110 of file sql_partition.cc.
References DBUG_ENTER, DBUG_VOID_RETURN, st_key_part_info::field, st_key::key_part, st_key::key_parts, and Field::move_field_offset().
06112 { 06113 KEY_PART_INFO *key_part= key_info->key_part; 06114 uint key_parts= key_info->key_parts; 06115 uint i= 0; 06116 my_ptrdiff_t diff= (new_buf - old_buf); 06117 DBUG_ENTER("set_key_field_ptr"); 06118 06119 do 06120 { 06121 key_part->field->move_field_offset(diff); 06122 key_part++; 06123 } while (++i < key_parts); 06124 DBUG_VOID_RETURN; 06125 }
Here is the call graph for this function:

| static void set_up_range_analysis_info | ( | partition_info * | part_info | ) | [static] |
1.4.7

