24#ifndef SQL_GIPK_INCLUDED
25#define SQL_GIPK_INCLUDED
Data describing the table being created by CREATE TABLE or altered by ALTER TABLE.
Definition: sql_alter.h:204
Create_field is a description a field/column that may or may not exists in a table.
Definition: create_field.h:51
Definition: sql_list.h:434
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
static uint keys
Definition: hp_test2.cc:46
Some integer typedefs for easier portability.
bool is_generated_invisible_primary_key_column_name(const char *column_name)
Check if column_name matches generated invisible primary key column name.
Definition: sql_gipk.cc:38
bool is_candidate_table_for_invisible_primary_key_generation(const HA_CREATE_INFO *create_info, Alter_info *alter_info)
Check if table being created is suitable for invisible primary key generation.
Definition: sql_gipk.cc:64
bool table_def_has_generated_invisible_primary_key(THD *thd, handlerton *se_handlerton, const List< Create_field > &create_fields, uint keys, const KEY *keyinfo)
Check that definition of a table being created or altered has a generated invisible primary key defin...
Definition: sql_gipk.cc:397
bool validate_and_generate_invisible_primary_key(THD *thd, Alter_info *alter_info)
Validate and generate invisible primary key for a candidate table (table being created).
Definition: sql_gipk.cc:185
bool adjust_generated_invisible_primary_key_column_position(THD *thd, handlerton *se_handlerton, TABLE *old_table, List< Create_field > *prepared_create_list)
Adjust generated invisible primary key column position in prepared fields list for the ALTER TABLE st...
Definition: sql_gipk.cc:191
bool table_has_generated_invisible_primary_key(TABLE *table)
Check if table has a generated invisible primary key.
Definition: sql_gipk.cc:496
bool check_primary_key_alter_restrictions(THD *thd, handlerton *se_handlerton, Alter_info *alter_info, TABLE *old_table)
Check ALTER restrictions on primary key and column.
Definition: sql_gipk.cc:265
bool is_generate_invisible_primary_key_mode_active(THD *thd)
Check if generate invisible primary key mode is active.
Definition: sql_gipk.cc:59
Struct to hold information about the table that should be created.
Definition: handler.h:3045
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2622
unsigned int uint
Definition: uca9-dump.cc:75