delete trigger during deleting (twice deleting and error no current record for
fetch operation.
-----------------------------------------------------------------------------------------------
Key: CORE-5142
URL: http://tracker.firebirdsql.org/browse/CORE-5142
Project: Firebird Core
Issue Type: Bug
Affects Versions: 3.0 RC2
Environment: Windows 2008 Server, Firebird 3.0 superserver 32 Bit
Reporter: Olaf Kluge
A stored Procedure should delete some records.
ID some fields ID_AUTOINSERT
123 xxx null
234 xxx null
255 xxx 266
266 xxx null
Now there is a trigger after delete in this table who deletes:
if(old.ap = 69) then
begin
delete from tplan_kw_pos where id_autoinsert = old.id;
end
In this case, FB will delete the record with ID 266 during deleting ID 255 and
the other statement intends to delete the record 266 too.
Now in FB 3 RC 2 I get this error message:
can't format message 13:492 -- message file C:\WINDOWS\SYSTEM32\firebird.msg
not found.
no current record for fetch operation.
In FB 2.55, FB2.1 this was not a problem.
the trigger is required because the user can delete the one record only, in
this case the trigger deletes the referenced one with the id_autoinsert-id too.
But if I delete the
entire Order, the record will be delete twice. How can I solve this in fb 3?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
Firebird-Devel mailing list, web interface at
https://lists.sourceforge.net/lists/listinfo/firebird-devel