public inbox for [email protected]
help / color / mirror / Atom feedPQprepare result
2+ messages / 2 participants
[nested] [flat]
* PQprepare result
@ 2025-12-29 21:14 Igor Korot <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Igor Korot @ 2025-12-29 21:14 UTC (permalink / raw)
To: pgsql-generallists.postgresql.org <[email protected]>
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.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: PQprepare result
@ 2025-12-30 08:24 Daniel Gustafsson <[email protected]>
parent: Igor Korot <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Daniel Gustafsson @ 2025-12-30 08:24 UTC (permalink / raw)
To: Igor Korot <[email protected]>; +Cc: pgsql-generallists.postgresql.org <[email protected]>
> On 29 Dec 2025, at 22:14, Igor Korot <[email protected]> wrote:
> I presume that it is safe to do the code like this
> (re-using the PGresult variable).
That's correct.
--
Daniel Gustafsson
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2025-12-30 08:24 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-12-29 21:14 PQprepare result Igor Korot <[email protected]>
2025-12-30 08:24 ` Daniel Gustafsson <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox