BUG #4964: return value does not agree with documentation

Lists: pgsql-bugs
From: "jasen Betts" <jasen(at)xnet(dot)co(dot)nz>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #4964: return value does not agree with documentation
Date: 2009-08-05 11:21:26
Message-ID: 200908051121.n75BLQif014654@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 4964
Logged by: jasen Betts
Email address: jasen(at)xnet(dot)co(dot)nz
PostgreSQL version: 8.3
Operating system: linux
Description: return value does not agree with documentation
Details:

PQsendQuery() seems to return 0 on success and 1 on failure contrary to the
documented behavior.

http://www.postgresql.org/docs/8.3/interactive/libpq-async.html


From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: jasen Betts <jasen(at)xnet(dot)co(dot)nz>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4964: return value does not agree with documentation
Date: 2009-08-05 14:15:25
Message-ID: 4A7993FD.2040702@enterprisedb.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: Postg토토SQL : Postg토토SQL 메일 링리스트 : 2009-08-05 이후 PGSQL-BUGS 14:15

jasen Betts wrote:
> PQsendQuery() seems to return 0 on success and 1 on failure contrary to the
> documented behavior.
>
> http://www.postgresql.org/docs/8.3/interactive/libpq-async.html

Umm, no, the documentation is correct. You must be doing something
wrong, but it's hard to guess what it is without more details.

--
Heikki Linnakangas
EnterpriseDB http://www.enterprisedb.com