Subject | Re: Database corruption after alter table |
---|---|
Author | Alexander V.Nevsky |
Post date | 2003-03-06T12:39:58Z |
--- In ib-support@yahoogroups.com, Carsten Schäfer <ca_schaefer@g...>
wrote:
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.
Because there is not another way to add new not null column without
default to table with data and sometimes it exactly what we need,
having in mind to fill it using some sophicticated algorithm. We must
care about filling ourselves.
Best regards, Alexander.
wrote:
> Alexander,relevant for my case.
> i think it is all right, what you have written, but it's not
> (there was no data insertet in the database after my updates)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.
> I forget to define a default value.unrestorable backups ?
> Why is there no error raised from the database, if this leads to
Because there is not another way to add new not null column without
default to table with data and sometimes it exactly what we need,
having in mind to fill it using some sophicticated algorithm. We must
care about filling ourselves.
Best regards, Alexander.