X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id D9CFFD1BA7F; Thu, 21 Aug 2003 02:57:45 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 74490-07; Thu, 21 Aug 2003 02:57:36 -0300 (ADT) Received: from mail.VirtualMailServers.com (unknown [216.235.244.64]) by svr1.postgresql.org (Postfix) with ESMTP id 06274D1BAE5; Thu, 21 Aug 2003 02:57:32 -0300 (ADT) Received: from delta.nulinkinc.com ([]) by mail.VirtualMailServers.com (Virtual Mail Servers by TactiCom, Inc.) with ESMTP id LPP74323; Thu, 21 Aug 2003 01:57:28 -0400 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C367A9.1760357C" Subject: URGENT : free result (libpq++ API) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Date: Thu, 21 Aug 2003 11:27:23 +0530 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: URGENT : free result (libpq++ API) Thread-Index: AcNnqK/cWBxg9tOQEdedyQBABabtaA== From: "Anagha Joshi" To: , , X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/244 X-Sequence-Number: 9965 This is a multi-part message in MIME format. ------_=_NextPart_001_01C367A9.1760357C Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all, I'm using PG - 7.2.4 on Solaries. I'm using "libpq++" library as client implementation is coded in "C++". =20 I'm doing the following : 1. Making the connection to database by creating new object of "PgDatabase" i.e. data =3D new PgDatabase( " CONNECTION INFO "); =20 2. Then I execure the query with: int return =3D data->Exec( " THIS IS A SQL QUERY"); =20 My question is , How should I clear(free) the result of the query? Need I close the connection after each query to do that?=20 I wish to use the same connection for multiple queries. =20 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. =20 Is the same functionality is present in "lipq++" APIs also? =20 Pls. help. =20 Thanks, Anagha =20 ------_=_NextPart_001_01C367A9.1760357C Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all,

I’m using PG – 7.2.4 on Solaries.=

I’m using “libpq++&#= 8221; library as client implementation is coded in “C++”.<= /span>

 

I’m doing the following :

  1. Making the connection to database by creating new object of &= #8220;PgDatabase” i.e.

data= = =3D new PgDatabase( “ CONNECTION I= NFO &= #8220;);

 

  1. Then I execure the query with:

int<= /font> r= eturn =3D data->Exec( “ THIS IS A SQL QUERY”);

 

My question is ,

How should I clear(free) the = result of the query? Need&nbs= p; I close the connection after each query to do that?

I wish to use the same connection for multiple queries.<= o:p>

 

This problem I’ve observed with “= ;libpq++” only not with “libpq”<= span style=3D'font-weight:normal;font-style:normal'> With “libpq” APIs the,

“PQexec” API returns “PGresult”  type p= ointer with which we can clear with the result of the query with “Pqclear(Pgresult *)” API.<= o:p>

 

Is the same functionality is present in “= ;lipq++” APIs also?

 

Pls. help.

 

Thanks,

Anagha

 

=00 ------_=_NextPart_001_01C367A9.1760357C--