summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Lane2018-02-15 18:56:38 +0000
committerTom Lane2018-02-15 18:57:14 +0000
commit1bb87c0fae5e242b49518a12348f41231f90d45d (patch)
treee309eaca506e34626bbf2e629792b77e1010d132
parentbd871863787bc09ababd7e81a189492a1cd08803 (diff)
Doc: fix minor bug in CREATE TABLE example.
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
-rw-r--r--doc/src/sgml/ref/create_table.sgml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml
index 708ee4e20e6..7db6cc1b13b 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -1187,7 +1187,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>