Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
13ea825b
Commit
13ea825b
authored
19 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
Spell "explicitly" correctly, per Simon.
parent
823702be
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/include/nodes/parsenodes.h
+3
-3
3 additions, 3 deletions
src/include/nodes/parsenodes.h
src/test/regress/expected/foreign_key.out
+3
-3
3 additions, 3 deletions
src/test/regress/expected/foreign_key.out
src/test/regress/sql/foreign_key.sql
+3
-3
3 additions, 3 deletions
src/test/regress/sql/foreign_key.sql
with
9 additions
and
9 deletions
src/include/nodes/parsenodes.h
+
3
−
3
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/1
1/28 04:35:32
tgl Exp $
* $PostgreSQL: pgsql/src/include/nodes/parsenodes.h,v 1.29
8
2005/1
2/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 */
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/expected/foreign_key.out
+
3
−
3
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
...
...
This diff is collapsed.
Click to expand it.
src/test/regress/sql/foreign_key.sql
+
3
−
3
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment