MySQL 8.4.0
Source Code Documentation
sql_partition_admin.cc File Reference
#include "sql/sql_partition_admin.h"
#include <limits.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <memory>
#include "lex_string.h"
#include "my_base.h"
#include "my_dbug.h"
#include "my_inttypes.h"
#include "my_io.h"
#include "my_sys.h"
#include "my_thread_local.h"
#include "mysql/plugin.h"
#include "mysql/psi/mysql_mutex.h"
#include "mysql/strings/m_ctype.h"
#include "mysqld_error.h"
#include "sql/auth/auth_acls.h"
#include "sql/auth/auth_common.h"
#include "sql/dd/cache/dictionary_client.h"
#include "sql/dd/properties.h"
#include "sql/dd/sdi_api.h"
#include "sql/dd/types/table.h"
#include "sql/dd_table_share.h"
#include "sql/debug_sync.h"
#include "sql/handler.h"
#include "sql/log.h"
#include "sql/mdl.h"
#include "sql/mysqld.h"
#include "sql/partition_info.h"
#include "sql/partitioning/partition_handler.h"
#include "sql/sql_base.h"
#include "sql/sql_class.h"
#include "sql/sql_lex.h"
#include "sql/sql_list.h"
#include "sql/sql_partition.h"
#include "sql/sql_table.h"
#include "sql/system_variables.h"
#include "sql/table.h"
#include "sql/transaction.h"
#include "sql_string.h"
#include "thr_lock.h"

Namespaces

namespace  dd
 The version of the current data dictionary table definitions.
 

Functions

static bool check_exchange_partition (TABLE *table, TABLE *part_table)
 Checks that the tables will be able to be used for EXCHANGE PARTITION. More...
 
static bool compare_table_with_partition (THD *thd, TABLE *table, TABLE *part_table, partition_element *part_elem, uint part_id)
 Compare table structure/options between a non partitioned table and a specific partition of a partitioned table. More...
 

Function Documentation

◆ check_exchange_partition()

static bool check_exchange_partition ( TABLE table,
TABLE part_table 
)
static

Checks that the tables will be able to be used for EXCHANGE PARTITION.

Parameters
tableNon partitioned table.
part_tablePartitioned table.
Return values
falseif OK, otherwise error is reported and true is returned.

◆ compare_table_with_partition()

static bool compare_table_with_partition ( THD thd,
TABLE table,
TABLE part_table,
partition_element part_elem,
uint  part_id 
)
static

Compare table structure/options between a non partitioned table and a specific partition of a partitioned table.

Parameters
thdThread object.
tableNon partitioned table.
part_tablePartitioned table.
part_elemPartition element to use for partition specific compare.
part_idId of specific partition