Commit 13ea825b authored by Tom Lane's avatar Tom Lane

Spell "explicitly" correctly, per Simon.

parent 823702be
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.297 2005/11/28 04:35:32 tgl Exp $ * $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.298 2005/12/07 15:20:55 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -660,8 +660,8 @@ typedef enum SetOperation ...@@ -660,8 +660,8 @@ typedef enum SetOperation
typedef enum ContainsOids typedef enum ContainsOids
{ {
MUST_HAVE_OIDS, /* WITH OIDS explicitely specified */ MUST_HAVE_OIDS, /* WITH OIDS explicitly specified */
MUST_NOT_HAVE_OIDS, /* WITHOUT OIDS explicitely specified */ MUST_NOT_HAVE_OIDS, /* WITHOUT OIDS explicitly specified */
DEFAULT_OIDS /* neither specified; use the default, which DEFAULT_OIDS /* neither specified; use the default, which
* is the value of the default_with_oids GUC * is the value of the default_with_oids GUC
* var */ * var */
......
...@@ -970,7 +970,7 @@ drop table pktable_base; ...@@ -970,7 +970,7 @@ drop table pktable_base;
-- Deferrable constraints -- Deferrable constraints
-- (right now, only FOREIGN KEY constraints can be deferred) -- (right now, only FOREIGN KEY constraints can be deferred)
-- --
-- deferrable, explicitely deferred -- deferrable, explicitly deferred
CREATE TABLE pktable ( CREATE TABLE pktable (
id INT4 PRIMARY KEY, id INT4 PRIMARY KEY,
other INT4 other INT4
...@@ -985,7 +985,7 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "fktable_pkey" fo ...@@ -985,7 +985,7 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "fktable_pkey" fo
INSERT INTO fktable VALUES (5, 10); INSERT INTO fktable VALUES (5, 10);
ERROR: insert or update on table "fktable" violates foreign key constraint "fktable_fk_fkey" ERROR: insert or update on table "fktable" violates foreign key constraint "fktable_fk_fkey"
DETAIL: Key (fk)=(10) is not present in table "pktable". DETAIL: Key (fk)=(10) is not present in table "pktable".
-- explicitely defer the constraint -- explicitly defer the constraint
BEGIN; BEGIN;
SET CONSTRAINTS ALL DEFERRED; SET CONSTRAINTS ALL DEFERRED;
INSERT INTO fktable VALUES (10, 15); INSERT INTO fktable VALUES (10, 15);
...@@ -1008,7 +1008,7 @@ BEGIN; ...@@ -1008,7 +1008,7 @@ BEGIN;
INSERT INTO fktable VALUES (100, 200); INSERT INTO fktable VALUES (100, 200);
INSERT INTO pktable VALUES (200, 500); -- make the FK insert valid INSERT INTO pktable VALUES (200, 500); -- make the FK insert valid
COMMIT; COMMIT;
-- default to deferred, explicitely make immediate -- default to deferred, explicitly make immediate
BEGIN; BEGIN;
SET CONSTRAINTS ALL IMMEDIATE; SET CONSTRAINTS ALL IMMEDIATE;
-- should fail -- should fail
......
...@@ -599,7 +599,7 @@ drop table pktable_base; ...@@ -599,7 +599,7 @@ drop table pktable_base;
-- (right now, only FOREIGN KEY constraints can be deferred) -- (right now, only FOREIGN KEY constraints can be deferred)
-- --
-- deferrable, explicitely deferred -- deferrable, explicitly deferred
CREATE TABLE pktable ( CREATE TABLE pktable (
id INT4 PRIMARY KEY, id INT4 PRIMARY KEY,
other INT4 other INT4
...@@ -613,7 +613,7 @@ CREATE TABLE fktable ( ...@@ -613,7 +613,7 @@ CREATE TABLE fktable (
-- default to immediate: should fail -- default to immediate: should fail
INSERT INTO fktable VALUES (5, 10); INSERT INTO fktable VALUES (5, 10);
-- explicitely defer the constraint -- explicitly defer the constraint
BEGIN; BEGIN;
SET CONSTRAINTS ALL DEFERRED; SET CONSTRAINTS ALL DEFERRED;
...@@ -644,7 +644,7 @@ INSERT INTO pktable VALUES (200, 500); -- make the FK insert valid ...@@ -644,7 +644,7 @@ INSERT INTO pktable VALUES (200, 500); -- make the FK insert valid
COMMIT; COMMIT;
-- default to deferred, explicitely make immediate -- default to deferred, explicitly make immediate
BEGIN; BEGIN;
SET CONSTRAINTS ALL IMMEDIATE; SET CONSTRAINTS ALL IMMEDIATE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment