Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group