Subject | Re: [Firebird-Architect] Domains and NOT NULL in PSQL |
---|---|
Author | Adriano dos Santos Fernandes |
Post date | 2006-07-14T15:39:39Z |
Dmitry Yemanov wrote:
Based on can't: CAST(value AS BASED ON domain).
Adriano
> "Claudio Valderrama C." <cvalde@...> wrote:And looks good after "AS": CAST(value AS TYPE OF domain).
>
>> Is TYPE OF in the standard?
>>
>
> Nope. And neither is BASED ON.
>
>
>> Otherwise, what's wrong with BASED ON?
>>
>
> 1) TYPE OF explicitly suggests that we deal with a datatype only and assumes
>
> that constraints are being ignored.
> 2) TYPE OF requires no new keywords :-)
>
Based on can't: CAST(value AS BASED ON domain).
Adriano