Re: fix for parameterized queries in DECLARE CURSOR statements

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: fix for parameterized queries in DECLARE CURSOR statements
Date: 2004-08-02 01:32:08
Message-ID: 19044.1091410328@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Oliver Jowett <oliver(at)opencloud(dot)com> writes:
> Here's a patch that allows parameterized queries to be used in a DECLARE
> CURSOR statement.

Applied with minor editorialization. I found a couple of places where
you'd missed inserting type Oids into constructed ParamLists, and I took
advantage of the extra info to add Asserts checking that the value found
in a ParamList is in fact what the caller expects.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Christopher Kings-Lynne 2004-08-02 01:58:48 Re: fix schema ownership on first connection preliminary
Previous Message Zhenbang Wei 2004-08-02 00:55:12 Traditional Chinese initdb-zh_TW.po for 7.5