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
5214f09b
Commit
5214f09b
authored
Oct 18, 2002
by
Bruce Momjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clean up for dblink autocommit OFF handling.
parent
aa4c702e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
contrib/dblink/expected/dblink.out
contrib/dblink/expected/dblink.out
+1
-1
contrib/dblink/sql/dblink.sql
contrib/dblink/sql/dblink.sql
+3
-1
No files found.
contrib/dblink/expected/dblink.out
View file @
5214f09b
...
...
@@ -183,7 +183,7 @@ WHERE t.a > 7;
ERROR: dblink: no connection available
-- put more data into our slave table, first using arbitrary connection syntax
-- but truncate the actual return value so we can use diff to check for success
SELECT substr(dblink_exec('dbname=regression_slave','INSERT INTO foo VALUES (10,''k'',''{"a10","b10","c10"}'')'),1,6);
SELECT substr(dblink_exec('dbname=regression_slave','
SET autocommit TO ''on'';
INSERT INTO foo VALUES (10,''k'',''{"a10","b10","c10"}'')'),1,6);
substr
--------
INSERT
...
...
contrib/dblink/sql/dblink.sql
View file @
5214f09b
...
...
@@ -30,6 +30,7 @@ CREATE DATABASE regression_slave;
-- Turn off echoing so that expected file does not depend on
-- contents of dblink.sql.
\
set
ECHO
none
SET
autocommit
TO
'on'
;
\
i
dblink
.
sql
\
set
ECHO
all
...
...
@@ -72,6 +73,7 @@ SELECT dblink_build_sql_delete('foo','1 2',2,'{"0", "a"}');
--
\
connect
regression
\
set
ECHO
none
SET
autocommit
TO
'on'
;
\
i
dblink
.
sql
\
set
ECHO
all
...
...
@@ -124,7 +126,7 @@ WHERE t.a > 7;
-- put more data into our slave table, first using arbitrary connection syntax
-- but truncate the actual return value so we can use diff to check for success
SELECT
substr
(
dblink_exec
(
'dbname=regression_slave'
,
'INSERT INTO foo VALUES(10,
''
k
''
,
''
{"a10","b10","c10"}
''
)'
),
1
,
6
);
SELECT
substr
(
dblink_exec
(
'dbname=regression_slave'
,
'
SET autocommit TO
''
on
''
;
INSERT INTO foo VALUES(10,
''
k
''
,
''
{"a10","b10","c10"}
''
)'
),
1
,
6
);
-- create a persistent connection
SELECT
dblink_connect
(
'dbname=regression_slave'
);
...
...
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