![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
From the SQL Guide: |
#4
| |||
| |||
|
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Of course we can postulate that being documented doesn't make it "correct". I can easily imagine a procedure that wants to test for duplicates and perform some other action, even in a rule. We need to distinguish between real DBMS errors (out of disk space, log full) and application semantic errors such as "duplicate key". Consider I want to do this: insert into table values () if (duplicate) then do something else. With the current error handling system, I have to write needlessly more complex code select count(*) from ... where somecriteria if thecount == 0 then insert into table values () else do something else (I have not tested this. Does the procedure >>really<< fail in this case?) -- daryl.monge (AT) ingres (DOT) com ------------------------------------------------------------------------ daryl.monge (AT) ingres (DOT) com's Profile: http://community.ingres.com/forum/member.php?userid=736 View this thread: http://community.ingres.com/forum/sh...ad.php?t=11923 _______________________________________________ Info-Ingres mailing list Info-Ingres (AT) kettleriverconsulting (DOT) com http://ext-cando.kettleriverconsulti...fo/info-ingres |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
On first glance it certainly seems to me that the SQL statement in the procedure should receive the error and be allowed to process it internal |
|
to the rule. Stopping the entire rule/procedure process seem like it would |
|
significant affect the flexibility of the procedure author to handle problems. |
#9
| |||
| |||
|
|
On first glance it certainly seems to me that the SQL statement in the procedure should receive the error and be allowed to process it internal to the rule. Stopping the entire rule/procedure process seem like it would significant affect the flexibility of the procedure author to handle problems. |
#10
| |||
| |||
|
|
How do other databases handle errors in rule(trigger) fired db procedures? |
![]() |
| Thread Tools | |
| Display Modes | |
| |