Re: The syntax about CREATE DOMAIN

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Gary WAN" <wan_on(at)hotmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: The syntax about CREATE DOMAIN
Date: 2004-02-27 05:42:59
Message-ID: 16938.1077860579@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"Gary WAN" <wan_on(at)hotmail(dot)com> writes:
> Create Domain GenderDomain CHAR(1) Constraint g Check Value in ('M','F');

You need parentheses around the check expression. AFAICS this is per
spec.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2004-02-27 05:57:36 Re: Optimizer problem with subselect.c?
Previous Message Stephan Szabo 2004-02-27 05:25:49 Re: The syntax about CREATE DOMAIN