PQprepare result - Mailing list pgsql-general

From Igor Korot
Subject PQprepare result
Date
Msg-id CA+FnnTzJp+K9X6XWK=_YauQ8rodFZ4h2s__LXNFfRX6+FgyMbQ@mail.gmail.com
Whole thread Raw
Responses Re: PQprepare result
List pgsql-general
Hi, ALL,

[code]
PGresult *res = PQprepare( m_db, "query1", ... );
PQclear( res );
res = PQprepare( m_db, "query2", ....);
PQclear( res );
[/code]

I presume that it is safe to do the code like this
(re-using the PGresult variable).

Or I have to use its own PGresult for each PQprepare
call?

Thank you.



pgsql-general by date:

Previous
From: Vincent Veyron
Date:
Subject: Re: psql: print values and return the COUNT(*) value to bash?
Next
From: H
Date:
Subject: Re: Combining metavariables and table names