Backport fix for correct quoting in CREATE DOMAIN example. Per Robert

Treat.
This commit is contained in:
Neil Conway 2005-05-02 01:56:16 +00:00
parent 50433d6533
commit 323fe83608

View File

@ -1,5 +1,5 @@
<!--
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.20 2005/01/04 00:39:53 tgl Exp $
$PostgreSQL: pgsql/doc/src/sgml/ref/create_domain.sgml,v 1.20.4.1 2005/05/02 01:56:16 neilc Exp $
PostgreSQL documentation
-->
@ -167,8 +167,8 @@ where <replaceable class="PARAMETER">constraint</replaceable> is:
<programlisting>
CREATE DOMAIN us_postal_code AS TEXT
CHECK(
VALUE ~ '^\d{5}$'
OR VALUE ~ '^\d{5}-\d{4}$'
VALUE ~ '^\\d{5}$'
OR VALUE ~ '^\\d{5}-\\d{4}$'
);
CREATE TABLE us_snail_addy (