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 -> Re: Adding fields with default on tables with invalid triggers

Re: Adding fields with default on tables with invalid triggers

From: Emmanuel <zouzou_at_yahoo.com>
Date: 19 Jan 2000 17:23:52 GMT
Message-ID: <01bf62aa$c57e14c0$3601017e@EHM.cirra.fr>


This looks logical since Oracle after creating the new column updates it with the default value specified hence firing the trigger.

Peter Laursen < ptl_at_edbgruppen.dk> a écrit dans l'article <01bf6294$135c9660$2c289a0a_at_apollo>...
> Hi
>
> Is this a bug or a feature?
>
> Oracle 8.0.5
> Alter table myTable add(a int default 1) fails if the table has an
invalid
> trigger (before insert or update for each row) .
> However if i explicitly compile the trigger first the alter table stmt
> completes.
>
> thanks
> Peter
>
Received on Wed Jan 19 2000 - 11:23:52 CST

Original text of this message

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