index c75f7f0b85fea0cf0fd098f45fe22ddfdcab2887..aada47565e2a08572d4edc9bbc5c43e61f6c16bc 100644 (file)
deleteConnection(conname);
pfree(rcon);
}
+ else
+ persistent_conn = NULL;
PG_RETURN_TEXT_P(GET_TEXT("OK"));
}
index 50938b3ef1bc14eaafaf435f10782cdf0670c623..7ef40b06d796ad224a256d51cecd515a5e732640 100644 (file)
OK
(1 row)
--- should generate "no connection to the server" error
+-- should generate "connection not available" error
SELECT *
FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[])
WHERE t.a > 7;
-ERROR: sql error
-DETAIL: no connection to the server
-
+ERROR: connection not 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','INSERT INTO foo VALUES(10,''k'',''{"a10","b10","c10"}'')'),1,6);
index 6a699769fd73d2d6de50deb788708731eabbca49..d0e448fc0b003250eb4ddc16c89dbc1a6d06d3f8 100644 (file)
@@ -105,7 +105,7 @@ FROM dblink_fetch('rmt_foo_cursor',4) AS t(a int, b text, c text[]);
-- close the persistent connection
SELECT dblink_disconnect();
--- should generate "no connection to the server" error
+-- should generate "connection not available" error
SELECT *
FROM dblink('SELECT * FROM foo') AS t(a int, b text, c text[])
WHERE t.a > 7;