Re: [HACKERS] ecpg problem

From: "Dr(dot) Michael Meskes" <meskes(at)online-club(dot)de>
To: PostgreSQL Hacker <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] ecpg problem
Date: 1998-08-16 11:59:37
Message-ID: 19980816135937.D540@online-club.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Sat, Aug 15, 1998 at 12:27:55PM +0200, Maarten Boekhold wrote:
> > It seems I cannot get that kind of information from libpq other than
> > checking for the result being 0 tuples. But is this correct? Or are there
> > possibilities to get 0 tuples? That is I get PQcmdTuples(results) = 0 with
> > the return code being PGRES_COMMAND_OK.
>
> Shouldn't you check for PGRES_TUPLES_OK ? I always check for this if I

No, the insert command doesn't return any tuples anyway. But then I don't
check for it either. libecpg has to work with every return value and so
checks them all. It just happens that the insert commend returns
PGRES_COMMAND_OK. :-)

Michael

--
Dr. Michael Meskes meskes(at)online-club(dot)de, meskes(at)debian(dot)org
Go SF49ers! Go Rhein Fire! Use Debian GNU/Linux!

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Keith Parks 1998-08-16 12:22:53 Re: [HACKERS] int8 type -- call for porting results!
Previous Message Thomas G. Lockhart 1998-08-16 05:53:16 Re: [HACKERS] Regression test status (was type coersion)