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

Home -> Community -> Usenet -> c.d.o.server -> Is this a bug?

Is this a bug?

From: EscVector <Junk_at_webthere.com>
Date: 3 Jan 2007 11:46:13 -0800
Message-ID: <1167853573.172687.246190@i12g2000cwa.googlegroups.com>


As demonstrated below, a table can be created with data type "timestamp" as a column name.

This causes a subsequent issue when creating triggers.

Shouldn't the table create throw a "ORA-00904: : invalid identifier" error?

create sequence seq;

create table test (

   col1 number,
   timestamp timestamp
 )
/

create or replace trigger trg

   before insert on test
   for each row
   begin

      select seq.nextval into :new.col1 from dual;    end;
/

alter table test rename column timestamp to ts
/

create or replace trigger trg

   before insert on test
   for each row
   begin

      select seq.nextval into :new.col1 from dual;    end;
/
Received on Wed Jan 03 2007 - 13:46:13 CST

Original text of this message

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