PQprepare result

Поиск
Список
Период
Сортировка
Искать

PQprepare result

От:
Igor Korot <ikorot01@gmail.com>
Дата:
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.


Re: PQprepare result

От:
Daniel Gustafsson <daniel@yesql.se>
Дата:
> On 29 Dec 2025, at 22:14, Igor Korot  wrote:

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

That's correct.

--
Daniel Gustafsson



FAQ