postgres.git / summary / log / commit / refs
commit 35c3dabc806b26c543bf434ea4a08707ba894239
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu Feb 15 18:56:38 2018 +0000
First released in: 11.0, 9.3.22, 9.4.17, 9.5.12, 9.6.8, 10.3
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
doc/src/sgml/ref/create_table.sgml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/src/sgml/ref/create_table.sgml b/doc/src/sgml/ref/create_table.sgml
index 6c653bb4e66..cea588d399f 100644
--- a/doc/src/sgml/ref/create_table.sgml
+++ b/doc/src/sgml/ref/create_table.sgml
@@ -1175,7 +1175,7 @@ CREATE TABLE distributors (
<programlisting>
CREATE TABLE distributors (
did integer,
- name varchar(40)
+ name varchar(40),
CONSTRAINT con1 CHECK (did > 100 AND name <> '')
);
</programlisting>
[parent: 457e9e88e357]