Subject | Re: [ib-support] Invalid request BLR |
---|---|
Author | Helen Borrie |
Post date | 2001-04-30T13:16:31Z |
Another tip: Use the EXISTS() predicate - it is a lot less expensive:
create procedure TRIGGERCHECK returns (vOk varchar(255)) as
declare variable vRows integer;
begin
VoK = ''; <---- initialise this one too !!
if (NOT(EXISTS(select * from RBD$TRIGGERS where RDB$TRIGGER_NAME = 'TI_ITEMENTR' ))) then
....
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________
create procedure TRIGGERCHECK returns (vOk varchar(255)) as
declare variable vRows integer;
begin
VoK = ''; <---- initialise this one too !!
if (NOT(EXISTS(select * from RBD$TRIGGERS where RDB$TRIGGER_NAME = 'TI_ITEMENTR' ))) then
....
Helen
All for Open and Open for All
InterBase Developer Initiative ยท http://www.interbase2000.org
_______________________________________________________