| From: | Richard Huxton <dev(at)archonet(dot)com> |
|---|---|
| To: | Sebastien FLAESCH <sf(at)4js(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: Suggestion for parameterized queries |
| Date: | 2005-02-28 18:10:15 |
| Message-ID: | 42235E87.6040407@archonet.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
Sebastien FLAESCH wrote:
> Hi,
>
> Parameterized queries (PREPARE/EXECUTE), is a great thing, but it would
> even be better if the DECLARE CURSOR could use a PREPAREd statement, to
> declare a "server-side" cursor with a parameterized query, to use the
> benefits of DECLAREd cursors (no fetching of all the result set on the
> client, use the binary mode, use the scrollable option or the FOR UPDATE
> option).
> For now we cannot use DECLARE CURSOR in our PostgreSQL driver because
> of this limitation.... I could build the SQL statement with literal
> values, but since you have now parametrized queries I would prefer to
> use that...
You can define a function that returns a cursor, if that is of any use
to you.
--
Richard Huxton
Archonet Ltd
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Raymond O'Donnell | 2005-02-28 18:13:30 | Re: GUI |
| Previous Message | Richard Huxton | 2005-02-28 18:08:59 | Re: [GENERAL] Newbie - Pointers on moving. |