Re: Return PGresult

From: Dave Smith <dave(at)candata(dot)com>
To: anuj <Anuj(at)in-control(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Return PGresult
Date: 2000-07-20 12:16:24
Message-ID: 3976ED98.1111583B@candata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

anuj wrote:
>
> Thanks,I'm trying PGresult pointer to pointer.
> And Why don't PGresult pointer variable reqiure memory allocation (malloc()?
> Like /* resu = (PGresult *)(malloc(sizeof(PGresult)); */
>
I believe that the PQexec is doing the allocation. That is why it has
to be pointer to pointer.

--
Dave Smith
Candata Systems Ltd.
(416) 493-9020
dave(at)candata(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Philip Warner 2000-07-20 13:24:34 pg_dump with BLOBs UPDATED
Previous Message Guillaume Perréal 2000-07-20 11:53:24 Migrating from 7.0RC1 to 7.0.2 and initdb