![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Ingres Forums wrote: How do other databases handle errors in rule(trigger) fired db procedures? The ones I know roll back the transaction and cancel the command batch. It must be so, else user code could subvert the atomic guarantees made by the RDBMS. If the procedure code could catch and "deal with" RI errors, how could the server continue to ensure said RI? At some point, it's not up to the code. The only right way to prevent RI errors in procedural code is to verify preconditions *before* affecting the data. |
#12
| |||
| |||
|
|
In principle the order shouldn't matter as long as all the constraints are satisfied when you commit. |
![]() |
| Thread Tools | |
| Display Modes | |
| |