> Hi,
>
[quoted text clipped - 20 lines]
> if ((rc_sqlstate <> '00000') or (rc_sqlstate is null))THEN
> ERROR ....
Which platform are you on?
What should happin is that the stored procedure tries to rebind upon
CALL. If you haven't recreated the table by that time you should get an
error stating that an implicit rebind failed.
This shoudl be returned by teh CALL statement which shoudl fail the
trigger and roll back teh entire statement.
So... I would expect a:
SQLCODE -723 (trigger failed) with embeddend token: <sqlcode/state of
implicit rebind>, -204 (object not found), <tablename>
Something like that.
Cheres
Serge
Paul Reddin - 30 Nov 2004 09:54 GMT
> Which platform are you on?
V8.2 Linux (RHAT).
> What should happin is that the stored procedure tries to rebind upon
> CALL. If you haven't recreated the table by that time you should get an
> error stating that an implicit rebind failed.
Doesn't look like it's doing this.
We'll investigate further and raise a PMR. I was keen to know
if anybody else was/has experienced this?
> Cheres
> Serge
andreyp#Antispam@mapsitnA#it4profit.com - 30 Nov 2004 16:01 GMT
after drop depended table. But on REBIND invalid_package db2 say SUCCESS.
May be it's no good...
And may be You known method how dba can find thats packages (after success
rebind)?
Andy
create procedure test
language sql
begin
select 1 from test;
end
drop table test /* package for sp test in invalid state */
rebind package for sp test /* look on successfully*/