TurboDB VCL Component Library TTdbForeignKeyAction |
Previous Top Next |
Indicates the way a table is protected or encrypted.
Unit
TdbDataSet
Delphi syntax:
type TTdbForeignKeyAction = (tiaReject, tiaSetNull, tiaSetDefault, tiaCascade);
C++ syntax:
enum TTdbForeignKeyAction {tiaReject, tiaSetNull, tiaSetDefault, tiaCascade};
Description
The values of this type describe, how TurboDB reacts on a violation of a foreign key constraint.
Value |
Description |
tiaReject |
The modification, which leads to the constraint violation is not executed. |
tiaSetNull |
The foreign key fields in the dependent (child) table are set to null. Not yet implemented. |
tiaSetDefault |
The foreign key fields in the dependent (child) table are set to their default value. Not yet implemented. |
tiaCascade |
The corresponding rows in the dependent (child) table are deleted (if the parent row is deleted) or adjusted (if the parent row is adjusted). |