Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
49093572
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,发现更多精彩内容 >>
提交
49093572
编写于
10月 08, 2005
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove unnecessary ABORT commands in dblink regression tests.
上级
768dfd03
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
0 addition
and
40 deletion
+0
-40
contrib/dblink/expected/dblink.out
contrib/dblink/expected/dblink.out
+0
-28
contrib/dblink/sql/dblink.sql
contrib/dblink/sql/dblink.sql
+0
-12
未找到文件。
contrib/dblink/expected/dblink.out
浏览文件 @
49093572
...
...
@@ -223,13 +223,6 @@ DETAIL: ERROR: cursor "rmt_foobar_cursor" does not exist
ERROR
(1 row)
-- reset remote transaction state
SELECT dblink_exec('ABORT');
dblink_exec
-------------
ROLLBACK
(1 row)
-- should generate 'cursor "rmt_foo_cursor" not found' error
SELECT *
FROM dblink_fetch('rmt_foo_cursor',4) AS t(a int, b text, c text[]);
...
...
@@ -310,13 +303,6 @@ DETAIL: ERROR: relation "foobar" does not exist
---+---+---
(0 rows)
-- reset remote transaction state
SELECT dblink_exec('ABORT');
dblink_exec
-------------
ROLLBACK
(1 row)
-- change some data
SELECT dblink_exec('UPDATE foo SET f3[2] = ''b99'' WHERE f1 = 11');
dblink_exec
...
...
@@ -343,13 +329,6 @@ DETAIL: ERROR: relation "foobar" does not exist
ERROR
(1 row)
-- reset remote transaction state
SELECT dblink_exec('ABORT');
dblink_exec
-------------
ROLLBACK
(1 row)
-- delete some data
SELECT dblink_exec('DELETE FROM foo WHERE f1 = 11');
dblink_exec
...
...
@@ -411,13 +390,6 @@ DETAIL: ERROR: relation "foobar" does not exist
---+---+---
(0 rows)
-- reset remote transaction state
SELECT dblink_exec('myconn','ABORT');
dblink_exec
-------------
ROLLBACK
(1 row)
-- create a second named persistent connection
-- should error with "duplicate connection name"
SELECT dblink_connect('myconn','dbname=contrib_regression');
...
...
contrib/dblink/sql/dblink.sql
浏览文件 @
49093572
...
...
@@ -117,9 +117,6 @@ SELECT dblink_exec('ABORT');
-- close the wrong cursor
SELECT
dblink_close
(
'rmt_foobar_cursor'
,
false
);
-- reset remote transaction state
SELECT
dblink_exec
(
'ABORT'
);
-- should generate 'cursor "rmt_foo_cursor" not found' error
SELECT
*
FROM
dblink_fetch
(
'rmt_foo_cursor'
,
4
)
AS
t
(
a
int
,
b
text
,
c
text
[]);
...
...
@@ -155,9 +152,6 @@ FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[]);
SELECT
*
FROM
dblink
(
'SELECT * FROM foobar'
,
false
)
AS
t
(
a
int
,
b
text
,
c
text
[]);
-- reset remote transaction state
SELECT
dblink_exec
(
'ABORT'
);
-- change some data
SELECT
dblink_exec
(
'UPDATE foo SET f3[2] =
''
b99
''
WHERE f1 = 11'
);
...
...
@@ -169,9 +163,6 @@ WHERE a = 11;
-- botch a change to some other data
SELECT
dblink_exec
(
'UPDATE foobar SET f3[2] =
''
b99
''
WHERE f1 = 11'
,
false
);
-- reset remote transaction state
SELECT
dblink_exec
(
'ABORT'
);
-- delete some data
SELECT
dblink_exec
(
'DELETE FROM foo WHERE f1 = 11'
);
...
...
@@ -205,9 +196,6 @@ SELECT *
FROM
dblink
(
'myconn'
,
'SELECT * FROM foobar'
,
false
)
AS
t
(
a
int
,
b
text
,
c
text
[])
WHERE
t
.
a
>
7
;
-- reset remote transaction state
SELECT
dblink_exec
(
'myconn'
,
'ABORT'
);
-- create a second named persistent connection
-- should error with "duplicate connection name"
SELECT
dblink_connect
(
'myconn'
,
'dbname=contrib_regression'
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录