]> granicus.if.org Git - postgresql/commitdiff
Doc: fix minor bug in CREATE TABLE example.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Feb 2018 18:56:38 +0000 (13:56 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 15 Feb 2018 18:57:00 +0000 (13:57 -0500)
One example in create_table.sgml claimed to be showing table constraint
syntax, but it was really column constraint syntax due to the omission
of a comma.  This is both wrong and confusing, so fix it in all
supported branches.

Per report from neil@postgrescompare.com.

Discussion: https://postgr.es/m/151871659877.1393.2431103178451978795@wrigleys.postgresql.org

doc/src/sgml/ref/create_table.sgml

index bf2ad64d66e3a40011a06a9904bce0a70aae09d6..b1eaa73cf90cca2f415256ca5b13e185a5297453 100644 (file)
@@ -1227,7 +1227,7 @@ CREATE TABLE distributors (
 <programlisting>
 CREATE TABLE distributors (
     did     integer,
-    name    varchar(40)
+    name    varchar(40),
     CONSTRAINT con1 CHECK (did &gt; 100 AND name &lt;&gt; '')
 );
 </programlisting>