Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
13ea825b
Commit
13ea825b
authored
Dec 07, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spell "explicitly" correctly, per Simon.
parent
823702be
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
src/include/nodes/parsenodes.h
src/include/nodes/parsenodes.h
+3
-3
src/test/regress/expected/foreign_key.out
src/test/regress/expected/foreign_key.out
+3
-3
src/test/regress/sql/foreign_key.sql
src/test/regress/sql/foreign_key.sql
+3
-3
No files found.
src/include/nodes/parsenodes.h
View file @
13ea825b
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.29
7 2005/11/28 04:35:32
tgl Exp $
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.29
8 2005/12/07 15:20:55
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -660,8 +660,8 @@ typedef enum SetOperation
typedef
enum
ContainsOids
{
MUST_HAVE_OIDS
,
/* WITH OIDS explicit
e
ly specified */
MUST_NOT_HAVE_OIDS
,
/* WITHOUT OIDS explicit
e
ly specified */
MUST_HAVE_OIDS
,
/* WITH OIDS explicitly specified */
MUST_NOT_HAVE_OIDS
,
/* WITHOUT OIDS explicitly specified */
DEFAULT_OIDS
/* neither specified; use the default, which
* is the value of the default_with_oids GUC
* var */
...
...
src/test/regress/expected/foreign_key.out
View file @
13ea825b
...
...
@@ -970,7 +970,7 @@ drop table pktable_base;
-- Deferrable constraints
-- (right now, only FOREIGN KEY constraints can be deferred)
--
-- deferrable, explicit
e
ly deferred
-- deferrable, explicitly deferred
CREATE TABLE pktable (
id INT4 PRIMARY KEY,
other INT4
...
...
@@ -985,7 +985,7 @@ NOTICE: CREATE TABLE / PRIMARY KEY will create implicit index "fktable_pkey" fo
INSERT INTO fktable VALUES (5, 10);
ERROR: insert or update on table "fktable" violates foreign key constraint "fktable_fk_fkey"
DETAIL: Key (fk)=(10) is not present in table "pktable".
-- explicit
e
ly defer the constraint
-- explicitly defer the constraint
BEGIN;
SET CONSTRAINTS ALL DEFERRED;
INSERT INTO fktable VALUES (10, 15);
...
...
@@ -1008,7 +1008,7 @@ BEGIN;
INSERT INTO fktable VALUES (100, 200);
INSERT INTO pktable VALUES (200, 500); -- make the FK insert valid
COMMIT;
-- default to deferred, explicit
e
ly make immediate
-- default to deferred, explicitly make immediate
BEGIN;
SET CONSTRAINTS ALL IMMEDIATE;
-- should fail
...
...
src/test/regress/sql/foreign_key.sql
View file @
13ea825b
...
...
@@ -599,7 +599,7 @@ drop table pktable_base;
-- (right now, only FOREIGN KEY constraints can be deferred)
--
-- deferrable, explicit
e
ly deferred
-- deferrable, explicitly deferred
CREATE
TABLE
pktable
(
id
INT4
PRIMARY
KEY
,
other
INT4
...
...
@@ -613,7 +613,7 @@ CREATE TABLE fktable (
-- default to immediate: should fail
INSERT
INTO
fktable
VALUES
(
5
,
10
);
-- explicit
e
ly defer the constraint
-- explicitly defer the constraint
BEGIN
;
SET
CONSTRAINTS
ALL
DEFERRED
;
...
...
@@ -644,7 +644,7 @@ INSERT INTO pktable VALUES (200, 500); -- make the FK insert valid
COMMIT
;
-- default to deferred, explicit
e
ly make immediate
-- default to deferred, explicitly make immediate
BEGIN
;
SET
CONSTRAINTS
ALL
IMMEDIATE
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment