Doc: fix minor bug in CREATE TABLE example.
authorTom Lane
Thu, 15 Feb 2018 18:56:38 +0000 (13:56 -0500)
committerTom Lane
Thu, 15 Feb 2018 18:57:14 +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 [email protected].

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

doc/src/sgml/ref/create_table.sgml

index 708ee4e20e6a57073bdb6c9cfe50fec97a9bc443..7db6cc1b13b6df210163f7bdf3780d0186d833ef 100644 (file)
@@ -1187,7 +1187,7 @@ CREATE TABLE distributors (
 
 CREATE TABLE distributors (
     did     integer,
-    name    varchar(40)
+    name    varchar(40),
     CONSTRAINT con1 CHECK (did > 100 AND name <> '')
 );