From f622c5404905cb998adabe3a3527f7e9cdace229 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 2 Aug 2004 01:30:51 +0000 Subject: Allow DECLARE CURSOR to take parameters from the portal in which it is executed. Previously, the DECLARE would succeed but subsequent FETCHes would fail since the parameter values supplied to DECLARE were not propagated to the portal created for the cursor. In support of this, add type Oids to ParamListInfo entries, which seems like a good idea anyway since code that extracts a value can double-check that it got the type of value it was expecting. Oliver Jowett, with minor editorialization by Tom Lane. --- src/backend/tcop/postgres.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/backend/tcop/postgres.c') diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c index 89ee40a5321..bfbe0a53c5c 100644 --- a/src/backend/tcop/postgres.c +++ b/src/backend/tcop/postgres.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.427 2004/07/31 00:45:36 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/tcop/postgres.c,v 1.428 2004/08/02 01:30:44 tgl Exp $ * * NOTES * this is the "main" module of the postgres backend and @@ -1488,6 +1488,7 @@ exec_bind_message(StringInfo input_message) params[i].kind = PARAM_NUM; params[i].id = i + 1; + params[i].ptype = ptype; params[i].isnull = isNull; i++; -- cgit v1.2.3