Re: PQgetResultSet Problem

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Deepa K <kdeepa(at)midascomm(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQgetResultSet Problem
Date: 2003-08-18 13:20:09
Message-ID: 21938.1061212809@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Deepa K <kdeepa(at)midascomm(dot)com> writes:
> I am using postgresql 7.1.3 and a client using libpq.
> I am executing a statement with muliple SQL commands semicolon
> seperated.
> If any one of the query in between fails, pqGetResultset returns
> NULL on the failed query. So i am unable to process the rest of the
> queries.

That's what it's supposed to do.

> Also the queries which were before the failed query, which were
> successful, were also not commited to the database.

Likewise.

If this is not the behavior you want, then submit the commands
separately.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2003-08-18 13:38:42 Re: Dreamweaver
Previous Message Jeff Boes 2003-08-18 13:01:53 Cache lookup failed?