Re: [ib-support] Re: Database corruption after alter table
Author
Carsten Schäfer
Post date
2003-03-06T12:54:09Z
----- Original Message -----
From: "Thomas Steinmaurer" <ts@...>
To: <ib-support@yahoogroups.com>
Sent: Thursday, March 06, 2003 1:56 PM
Subject: RE: [ib-support] Re: Database corruption after alter table
> Alexander,
>
> > Carsten, it can't be relevant to new data. If you don't set value for
> > not null column variants:
> > 1. Components can set something for you as Thomas said
> > 2. You'll get exception on insert
> >
> > But it is relevant to already existing records:
> > Some table contained colunm A INT only:
> > 1
> > 2
> > 3
> > you added not null column B without default and _old_ records are now
> > 1 null
> > 2 null
> > 3 null
> > until you don't fill them.
>
> this is something I can't reproduce with FB 1.0 Build 796.
>
> To be sure, I used isql.exe and not a third-party tool and
> after altering a table with:
>
> SQL> alter table mytable2 add myint2 integer not null;
> SQL> commit;
>
> A select
>
> SQL> select myint2 from mytable2;
>
> shows the value 0 for myint2 for old records, so the database
> *should* be in a restoreable state.
>
This is what i see, too.
But the database is not restorable until i do a explicit
"update t_einfachangebot set f_id_ma_beleg = 0;"