Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
13ea825b
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
13ea825b
编写于
12月 07, 2005
作者:
T
Tom Lane
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Spell "explicitly" correctly, per Simon.
上级
823702be
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
9 addition
and
9 deletion
+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
未找到文件。
src/include/nodes/parsenodes.h
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录