Helper class to check if column being dropped or removed in ALTER statement is in use by Check constraints.
More...
#include <sql_check_constraint.h>
Helper class to check if column being dropped or removed in ALTER statement is in use by Check constraints.
◆ Check_constraint_column_dependency_checker()
Check_constraint_column_dependency_checker::Check_constraint_column_dependency_checker |
( |
const Sql_check_constraint_spec_list & |
check_constraint_list | ) |
|
|
inlineexplicit |
◆ any_check_constraint_uses_column()
bool Check_constraint_column_dependency_checker::any_check_constraint_uses_column |
( |
const char * |
column_name | ) |
|
|
private |
Check if any check constraint uses "column_name".
- Parameters
-
- Return values
-
true | If column is used by the check constraint. |
false | Otherwise. |
◆ operator()() [1/3]
bool Check_constraint_column_dependency_checker::operator() |
( |
const Alter_column * |
alter_column | ) |
|
Method to check if column being renamed using RENAME COLUMN clause of the ALTER TABLE statement is in use by check constraints.
- Parameters
-
alter_column | Instance of Alter_column. |
- Return values
-
true | If some check constraint uses the column being renamed. |
false | Otherwise. |
◆ operator()() [2/3]
bool Check_constraint_column_dependency_checker::operator() |
( |
const Alter_drop * |
drop | ) |
|
Method to check if column being dropped is in use by check constraints.
- Parameters
-
drop | Instance of Alter_drop. |
- Return values
-
true | If some check constraint uses the column being dropped. |
false | Otherwise. |
◆ operator()() [3/3]
bool Check_constraint_column_dependency_checker::operator() |
( |
const Create_field & |
fld | ) |
|
Method to check if column being renamed using CHANGE [COLUMN] clause of the ALTER TABLE statement is in use by check constraints.
- Parameters
-
fld | Instance of Create_field. |
- Return values
-
true | If some check constraint uses the column being renamed. |
false | Otherwise. |
◆ m_check_constraint_list
Check constraint specification list.
The documentation for this class was generated from the following files: