BUG #4964: return value does not agree with documentation

Поиск
Список
Период
Сортировка
Искать

BUG #4964: return value does not agree with documentation

От:
"jasen Betts" <jasen@xnet.co.nz>
Дата:
The following bug has been logged online:

Bug reference:      4964
Logged by:          jasen Betts
Email address:      jasen@xnet.co.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

Re: BUG #4964: return value does not agree with documentation

От:
Heikki Linnakangas <heikki.linnakangas@enterprisedb.com>
Дата:
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
FAQ