Re: domain check constraint syntax problem for 7.4

From: Rod Taylor <rbt(at)rbt(dot)ca>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: domain check constraint syntax problem for 7.4
Date: 2003-01-26 05:01:04
Message-ID: 1043557263.58142.139.camel@jester
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

They work the same as table constraints with in-line declaration (no
comma).

On Sun, 2003-01-26 at 00:09, Bruno Wolff III wrote:
> I am trying to create a domain with more than one check constraint and
> I am getting an error that I don't think is correct according to the
> documentation. I am not sure if this is a limitation of a partially
> implemented feature or a bug that has so far been overlooked.
>
> For example:
> area=# create domain test6 as int constraint ack check(value<4);
> CREATE DOMAIN
> area=# create domain test7 as int constraint ack check(value<4),
> area-# constraint ack1 check(value>0);
> ERROR: parser: syntax error at or near "," at character 57
> area=# create domain test7 as int check(value<4), check(value>0);
> ERROR: parser: syntax error at or near "," at character 42
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
--
Rod Taylor <rbt(at)rbt(dot)ca>

PGP Key: http://www.rbt.ca/rbtpub.asc

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruno Wolff III 2003-01-26 05:09:21 domain check constraint syntax problem for 7.4
Previous Message Justin Clift 2003-01-26 03:59:25 Re: Have a PG 7.3.1 Windows (cygwin) easy installer... now

Browse pgsql-patches by date

  From Date Subject
Next Message Bruno Wolff III 2003-01-26 05:09:21 domain check constraint syntax problem for 7.4
Previous Message Bruce Momjian 2003-01-26 00:42:19 Re: Docs for service file