From: Joe Conway Date: Sat, 3 Jan 2009 19:58:10 +0000 (+0000) Subject: Fix bug per Oleksiy Shchukin - 2nd argument for dblink_get_result(text,bool) X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=b81260d93ee426c7eb2b945a35f28c09598eabb4;p=users%2Fbernd%2Fpostgres.git Fix bug per Oleksiy Shchukin - 2nd argument for dblink_get_result(text,bool) is PG_GETARG_BOOL(2), should be PG_GETARG_BOOL(1). Apply simple fix to back branches only. More extensive change to be applied to head per Tom's suggestion. --- diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index b72edaa500..c4eff43740 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -806,7 +806,7 @@ dblink_record_internal(FunctionCallInfo fcinfo, bool is_async, bool do_get) { /* text,bool */ DBLINK_GET_CONN; - fail = PG_GETARG_BOOL(2); + fail = PG_GETARG_BOOL(1); } else if (PG_NARGS() == 1) {