DROP TABLE command: Changes to CASCADE behavior for hybrid tables¶
Attention
This behavior change is in the 2025_03 bundle.
For the current status of the bundle, refer to Bundle History.
When this behavior change bundle is enabled, the default setting of the CASCADE/RESTRICT parameter is different for hybrid tables. This change does not apply to standard tables.
- Before the change:
When you drop a hybrid table without specifying RESTRICT or CASCADE, and the hybrid table has a primary-key/foreign-key or unique-key/foreign-key relationship with another table, the DROP TABLE command succeeds.
The default behavior is CASCADE.
The DROP TABLE command succeeds without any error.
- After the change:
When you drop a hybrid table without specifying the RESTRICT or CASCADE option, and the hybrid table has a primary-key/foreign-key or unique-key/foreign-key relationship with another table, the DROP TABLE command fails with an error.
The default behavior is RESTRICT.
For example:
The DROP TABLE command fails in this case. If necessary, you can override the default behavior by specifying CASCADE in the DROP TABLE command.
Alternatively in this case, you could drop the dependent table
ht2first, then drop tableht1.
Ref: 1741