diff options
author | Joe Conway <mail@joeconway.com> | 2009-01-03 19:58:10 +0000 |
---|---|---|
committer | Joe Conway <mail@joeconway.com> | 2009-01-03 19:58:10 +0000 |
commit | e4dcb11ead8f4109f2b97aaef93807f1fcba818f (patch) | |
tree | f267c50bb982be463a9ae0f5b6dc55489f1dbbda | |
parent | e581c04879832e371c322b331a6fad41ffca6916 (diff) | |
download | postgresql-e4dcb11ead8f4109f2b97aaef93807f1fcba818f.tar.gz postgresql-e4dcb11ead8f4109f2b97aaef93807f1fcba818f.zip |
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.
-rw-r--r-- | contrib/dblink/dblink.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/dblink/dblink.c b/contrib/dblink/dblink.c index 9cd3a27004d..609126b74bc 100644 --- a/contrib/dblink/dblink.c +++ b/contrib/dblink/dblink.c @@ -8,7 +8,7 @@ * Darko Prenosil <Darko.Prenosil@finteh.hr> * Shridhar Daithankar <shridhar_daithankar@persistent.co.in> * - * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.60.2.3 2008/11/30 23:24:08 tgl Exp $ + * $PostgreSQL: pgsql/contrib/dblink/dblink.c,v 1.60.2.4 2009/01/03 19:58:10 joe Exp $ * Copyright (c) 2001-2006, PostgreSQL Global Development Group * ALL RIGHTS RESERVED; * @@ -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) { |