Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 81efc82

Browse files
committed
This patch fixes a minor inaccuracy in the documentation: NOT NULL is
not synonymous with CHECK (xxx IS NOT NULL) -- for example, consider ALTER TABLE ADD PRIMARY KEY, which checks for 'NOT NULL', not a check constraint. Neil Conway
1 parent f1c1685 commit 81efc82

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

doc/src/sgml/ref/create_table.sgml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!--
2-
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.55 2002/05/18 15:44:47 petere Exp $
2+
$Header: /cvsroot/pgsql/doc/src/sgml/ref/create_table.sgml,v 1.56 2002/09/02 06:20:53 momjian Exp $
33
PostgreSQL documentation
44
-->
55

@@ -247,9 +247,7 @@ and <replaceable class="PARAMETER">table_constraint</replaceable> is:
247247
<term><literal>NOT NULL</></term>
248248
<listitem>
249249
<para>
250-
The column is not allowed to contain NULL values. This is
251-
equivalent to the column constraint <literal>CHECK (<replaceable
252-
class="PARAMETER">column</replaceable> NOT NULL)</literal>.
250+
The column is not allowed to contain NULL values.
253251
</para>
254252
</listitem>
255253
</varlistentry>

0 commit comments

Comments
 (0)