Subject | Re: [firebird-support] Re: default field value retrospective behaviour |
---|---|
Author | Martijn Tonies |
Post date | 2005-08-19T07:16:13Z |
> > Furthermore, you can add a column with a NOT NULL constraint on itIMO, albeit caused by a user, Firebird should have some gbak switch
> > and immediately make your database unrestorable if you don't go in >
> and
> > populate your existing rows.
> >
>
> Ouch, (a good case for creating a backup before running any DDL script).
that makes your database restorable always, but raise warnings while
doing so.
Being able to make your database unrestorable by a valid DDL statement
is kinda stupid.
Many database engines don't allowed "not null" columns to be added without
a "default clause" if there's data in the table. Perhaps Firebird can do the
same?
With regards,
Martijn Tonies
Database Workbench - tool for InterBase, Firebird, MySQL, Oracle & MS SQL
Server
Upscene Productions
http://www.upscene.com
Database development questions? Check the forum!
http://www.databasedevelopmentforum.com