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
49093572
Commit
49093572
authored
19 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary ABORT commands in dblink regression tests.
parent
768dfd03
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/dblink/expected/dblink.out
+0
-28
0 additions, 28 deletions
contrib/dblink/expected/dblink.out
contrib/dblink/sql/dblink.sql
+0
-12
0 additions, 12 deletions
contrib/dblink/sql/dblink.sql
with
0 additions
and
40 deletions
contrib/dblink/expected/dblink.out
+
0
−
28
View file @
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');
...
...
This diff is collapsed.
Click to expand it.
contrib/dblink/sql/dblink.sql
+
0
−
12
View file @
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'
);
...
...
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