Subject | Re: Database corruption after alter table |
---|---|
Author | Alexander V.Nevsky |
Post date | 2003-03-06T11:16:34Z |
--- In ib-support@yahoogroups.com, Carsten Schäfer <ca_schaefer@g...>
wrote:
UPDATE NO ACTION ON DELETE CASCADE;
Carsten,
1. It is always recommended to commit any DDL statement before further
usage of changed object.
2. It is not recommended to mix usage quoted and unquoted the same
identifiers.
3. If your specify DEFAULT ... NOT NULL, server use default if column
is not filled, if not and table contain data and you don't fill new
column manually - you get unrestorable gbk.
Best regards, Alexander.
wrote:
> Hi,IBExpert PE,Firebird 1.02, Win2KSP3):
>
> i'm doing the following statements to add a column to a table (with
>KEY ("F_ID_MA_BELEG") REFERENCES T_MITARBEITER ("ID_MITARBEITER") ON
> ALTER TABLE T_EINFACHANGEBOT ADD f_id_ma_beleg INTEGER NOT NULL;
> ALTER TABLE T_EINFACHANGEBOT ADD CONSTRAINT "EA_MA_BELEG" FOREIGN
UPDATE NO ACTION ON DELETE CASCADE;
>a default value for the new column.
> There is no error reportet from ibexpert, though i forget to define
> A select shows me that 0 is insertet, which would be correct.this backup i get an aritmetic overflow ... error.
>
> But after this updates restore is not working anymore.
> The backup of this database shows no errors but with a restore of
>though it corrupts the database ?
> Does anybody know why there is no error reportet for my updates,
Carsten,
1. It is always recommended to commit any DDL statement before further
usage of changed object.
2. It is not recommended to mix usage quoted and unquoted the same
identifiers.
3. If your specify DEFAULT ... NOT NULL, server use default if column
is not filled, if not and table contain data and you don't fill new
column manually - you get unrestorable gbk.
Best regards, Alexander.