Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Trigger row as parameter for procedure call?

Re: Trigger row as parameter for procedure call?

From: Mark Nyhan <marknyhan_at_hotmail.com>
Date: 18 Feb 2002 08:25:37 -0800
Message-ID: <3d327694.0202180825.2efd810a@posting.google.com>


Apologies for still not figuring this out, I have been reading the manuals on the ":new.<columnname> syntax". I can reference the columns in this way and I know it passes the parameter to the procedure as it creates an XML file with the TestID as the name but for some reason it breaks down on the first cursor of the procedure it is calling.

CREATE OR REPLACE TRIGGER assessment_trigger AFTER INSERT OR UPDATE ON tests
FOR EACH ROW
BEGIN
export.assessment(:new.testid); -- Testid is a VARCHAR2 END assessment_trigger;
/

I can use the :old and :new to insert into other tables but not This procedure takes in the testid parameter and creates an XML file with that name so I know it is being passed. If I take the FOR EACH ROW out and hard code in a testid such as export.assessment('ID2354'); then it works fine, am I missing something obvious?

Thanks again,
Mark

Mark. Received on Mon Feb 18 2002 - 10:25:37 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US