Subject | Re: [Firebird-Architect] Domains and NOT NULL in PSQL |
---|---|
Author | Dmitry Yemanov |
Post date | 2006-07-14T13:09:18Z |
"Martijn Tonies" <m.tonies@...> wrote:
Dmitry
>Nice sample, thanks. Now I agree with Arno too :-)
> CAST(4 as D_BOOLEAN)
>
> where D_BOOLEAN is of type SMALLINT and has
> CHECK(value in (0, 1) or value is null)
>
> 4 is a valid SMALLINT, but not a valid D_BOOLEAN
Dmitry