Re: Basic questions about PQprepare()

From: Alexander Farber <alexander(dot)farber(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Basic questions about PQprepare()
Date: 2006-01-28 19:26:01
Message-ID: 943abd910601281126g1851878bl2294910dfc8eacd4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thank you Tom,

I also should have reread the docs on 1) and 2) -
it is mentioned there too that you have to call
PQfinish and PQclear even on failed operations.

Could you explain a bit more, where to get the OIDs?
There are really not many PQprepare examples
around (I wonder why, isn't it the fastest method?)

Regards
Alex

On 1/28/06, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Alexander Farber <alexander(dot)farber(at)gmail(dot)com> writes:
> > 4) How do I set the last PQprepare argument, the const Oid *paramTypes?
>
> You'd need to look up the OIDs of the parameter types. In practice it's
> usally a lot easier to write the queries so that the parameter types can
> be inferred by the backend.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2006-01-28 19:54:59 Re: Seeking a better PL/pgSQL editor-debugger
Previous Message Tom Lane 2006-01-28 18:34:27 Re: Viewing Database Scheme