CREATE TRIGGER odditiy

From: Darren <darren.kinley_at_ericsson.com>
Date: 10 Dec 2003 11:20:23 -0800
Message-ID: <7ceafac1.0312101120.4cefda96_at_posting.google.com>


Hello,

I have some 'CREATE TRIGGER' definitions that work when cut/pasted into SQL*Plus worksheet and execute separately but fail with a 'trigger created with compilation errors' when executed at the same time. Neither works at all under Solaris sqlplus.

Does anyone see what the problem is?

create or replace trigger aut_itri
before insert on inbound
for each row
when (new.id is null)
begin

        select auto_iseq.nextval into :new.id from dual; end;

create or replace trigger aut_otri
before insert on outbound
for each row
when (new.id is null)
begin

        select auto_oseq.nextval into :new.id from dual; end;

Thanks,
Darren Received on Wed Dec 10 2003 - 20:20:23 CET

Original text of this message