Re: Need help with libpq and PQexec

From: David Wilson <david(dot)t(dot)wilson(at)gmail(dot)com>
To: Juan Backson <juanbackson(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Need help with libpq and PQexec
Date: 2009-08-11 17:11:59
Message-ID: e7f9235d0908111011t79fc340di7527dffe157b3033@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Aug 11, 2009 at 3:35 AM, Juan Backson<juanbackson(at)gmail(dot)com> wrote:
> PGRES_COMMAND_OK

You want PGRES_TUPLES_OK for a select statement. You're not getting an
actual failure- you're checking for the wrong status.

--
- David T. Wilson
david(dot)t(dot)wilson(at)gmail(dot)com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message John R Pierce 2009-08-11 17:13:33 Re: mail alert
Previous Message Peter Headland 2009-08-11 17:05:28 Re: Updating a specific number of rows in pl/pgsql