Subject | Re: [firebird-support] drop table |
---|---|
Author | Paul Vinkenoog |
Post date | 2003-06-13T12:00:13Z |
Hi Nick,
cannot insert into a table that isn't there, there's no need for its
fields, triggers, or constraints.
What makes a table drop fail is if something from outside the table
still refers to it (a foreign key, an SP, an active transaction using
the table...)
explicitly drop all the triggers before dropping the table.
Greetings,
Paul Vinkenoog
> if I try to drop a table that has a before_insert trigger, whatAbsolutely. If you drop a table, you close shop on it. Since you
> should happen?
>
> I think I should get an error and the drop would fail but I've just
> had a case where the drop table suceeded and the trigger was
> silently dropped as well, is this correct?
cannot insert into a table that isn't there, there's no need for its
fields, triggers, or constraints.
What makes a table drop fail is if something from outside the table
still refers to it (a foreign key, an SP, an active transaction using
the table...)
> is this a change (I've jumped from IB4 to firebird 1.0.2)I've never used IB4 but it would surprise me if it forced you to
explicitly drop all the triggers before dropping the table.
Greetings,
Paul Vinkenoog