Subject | Re: {Spam?} [firebird-support] default value |
---|---|
Author | Paul Vinkenoog |
Post date | 2006-12-20T14:32:08Z |
Nick, to get back to your original posting:
but really 0.
The rotten thing is the no-default case, where people *see* a 0 when
they select but the field is really null. Firebird allows this
situation to exist, also allows such a database to be backed up, but
refuses to restore it (except with -n).
Greetings,
Paul Vinkenoog
> when I doThat (and not the value you see) is proof that the field is not NULL,
> select * from mytable where test = 0;
> I would expect zero rows and when I do
> select * from mytable where test is null;
> I would expect 1 row
>
> yet it's the other way round
but really 0.
The rotten thing is the no-default case, where people *see* a 0 when
they select but the field is really null. Firebird allows this
situation to exist, also allows such a database to be backed up, but
refuses to restore it (except with -n).
Greetings,
Paul Vinkenoog