mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
When the remote query result has a different number of columns
than the local query specifies (e.g. in the FROM clause), throw an ERROR (instead of crashing). Fix for bug #2129 reported by Akio Iwaasa.
This commit is contained in:
@ -92,6 +92,13 @@ Outputs
|
||||
|
||||
Returns setof record
|
||||
|
||||
Note
|
||||
|
||||
On a mismatch between the number of return fields as specified in the FROM
|
||||
clause, and the actual number of fields returned by the remote cursor, an
|
||||
ERROR will be thrown. In this event, the remote cursor is still advanced
|
||||
by as many rows as it would have been if the ERROR had not occurred.
|
||||
|
||||
Example usage
|
||||
|
||||
test=# select dblink_connect('dbname=postgres');
|
||||
|
Reference in New Issue
Block a user