From: | "Anagha Joshi" <ajoshi(at)nulinkinc(dot)com> |
---|---|
To: | <pgsql-hackers-owner(at)postgresql(dot)org>, <pgsql-admin(at)postgresql(dot)org>, <pgsql-sql(at)postgresql(dot)org> |
Subject: | URGENT : free result (libpq++ API) |
Date: | 2003-08-21 05:57:23 |
Message-ID: | FF851C7EEB75954F9BCFB5CA117AB1EC09289E@delta.nulinkinc.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin pgsql-sql |
Hi all,
I'm using PG - 7.2.4 on Solaries.
I'm using "libpq++" library as client implementation is coded in "C++".
I'm doing the following :
1. Making the connection to database by creating new object of
"PgDatabase" i.e.
data = new PgDatabase( " CONNECTION INFO ");
2. Then I execure the query with:
int return = data->Exec( " THIS IS A SQL QUERY");
My question is ,
How should I clear(free) the result of the query? Need I close the
connection after each query to do that?
I wish to use the same connection for multiple queries.
This problem I've observed with "libpq++" only not with "libpq" . With
"libpq" APIs the,
"PQexec" API returns "PGresult" type pointer with which we can clear
with the result of the query with "Pqclear(Pgresult *)" API.
Is the same functionality is present in "lipq++" APIs also?
Pls. help.
Thanks,
Anagha
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-08-21 06:11:10 | Re: URGENT : free result (libpq++ API) |
Previous Message | Stephan Szabo | 2003-08-20 23:03:24 | Re: This table won't use INDEX until I DUMP/RESTORE it ? |
From | Date | Subject | |
---|---|---|---|
Next Message | Stephan Szabo | 2003-08-21 06:11:10 | Re: URGENT : free result (libpq++ API) |
Previous Message | Joe Conway | 2003-08-20 23:57:51 | Re: Table conversion query... |