Re: Returns from ExecTuplesOk()

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Paul M Foster <paulf(at)quillandmouse(dot)com>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Returns from ExecTuplesOk()
Date: 2002-04-23 20:58:41
Message-ID: 200204232058.g3NKwgT18225@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Paul M Foster wrote:
> I'm confused. In libpq++, it seems that ExecTuplesOk() should return
> PGRES_TUPLES_OK if a tuples are returned from the query. Yet I'm getting
> PGRES_COMMAND_OK instead. When I then check Tuples(), it returns 1. Am I
> missing something?

I am not sure. Does libpq++/examples help?

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Browse pgsql-general by date

  From Date Subject
Next Message asdf asdasfa 2002-04-23 22:06:54 Performance Issues with count()
Previous Message Fran Fabrizio 2002-04-23 19:54:01 Re: when does a function name get mapped to an OID?