MySQL 8.0.39
Source Code Documentation
|
Database object creation. More...
Functions | |
bool | row_is_mysql_tmp_table_name (const char *name) |
Checks if a table name contains the string "/#sql" which denotes temporary tables in MySQL. More... | |
static dberr_t | dict_create_add_foreign_id (ulint *id_nr, const char *name, dict_foreign_t *foreign) |
Generate a foreign key constraint name when it was not named by the user. More... | |
static ulint | dict_create_v_col_pos (ulint v_pos, ulint col_pos) |
Compose a column number for a virtual column, stored in the "POS" field of Sys_columns. More... | |
static ulint | dict_get_v_col_mysql_pos (ulint pos) |
Get the column number for a virtual column (the column position in original table), stored in the "POS" field of Sys_columns. More... | |
static ulint | dict_get_v_col_pos (ulint pos) |
Get a virtual column sequence (the "nth" virtual column) for a virtual column, stord in the "POS" field of Sys_columns. More... | |
Database object creation.
Created 1/8/1996 Heikki Tuuri
|
inlinestatic |
Generate a foreign key constraint name when it was not named by the user.
A generated constraint has a name of the format dbname/tablename_ibfk_NUMBER, where the numbers start from 1, and are given locally for this table, that is, the number is not global, as it used to be before MySQL 4.0.18.
id_nr | in/out: number to use in id generation; incremented if used |
name | in: table name |
foreign | in/out: foreign key |
Compose a column number for a virtual column, stored in the "POS" field of Sys_columns.
The column number includes both its virtual column sequence (the "nth" virtual column) and its actual column position in original table
[in] | v_pos | virtual column sequence |
[in] | col_pos | column position in original table definition |
Get the column number for a virtual column (the column position in original table), stored in the "POS" field of Sys_columns.
[in] | pos | virtual column position |
Get a virtual column sequence (the "nth" virtual column) for a virtual column, stord in the "POS" field of Sys_columns.
[in] | pos | virtual column position |
bool row_is_mysql_tmp_table_name | ( | const char * | name | ) |
Checks if a table name contains the string "/#sql" which denotes temporary tables in MySQL.