From: Satoshi Nagayasu <satoshi.nagayasu@gmail.com>
To: pgsql-docs <pgsql-docs@postgresql.org>
To: pgsql-general@postgresql.org
Subject: ECPG - Some errno definitions don't match to the manual
Date: Thu, 22 Jul 2010 22:29:52 +0900
Message-ID: <4C4847D0.9030001@gmail.com> (raw)
Hi all,
I'm looking into some ecpg part of the official manual,
and I have found some strange things.
I'm now investigating SQLCODE and SQLSTATE, and I have found
that some of the errno definitions don't match to the manual.
For example, the manual says that ECPG_CONVERT_BOOL could be `-207'.
However, ECPG_CONVERT_BOOL is defined as `-211' in ecpgerrno.h.
> -207 (ECPG_CONVERT_BOOL)
>
> This means the host variable is of type bool and the datum in the database is neither 't' nor 'f'. (SQLSTATE 42804)
http://www.postgresql.org/docs/9.0/static/ecpg-errors.html> #define ECPG_NUMERIC_FORMAT -207
> #define ECPG_CONVERT_BOOL -211
http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/interfaces/ecpg/include/ecpgerrno.h?rev=1.27;cont...
What does it mean? The manual is not up to date?
Any suggestions?
Regards,
--
NAGAYASU Satoshi <satoshi.nagayasu@gmail.com>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-docs@postgresql.org
Cc: satoshi.nagayasu@gmail.com, pgsql-general@postgresql.org
Subject: Re: ECPG - Some errno definitions don't match to the manual
In-Reply-To: <4C4847D0.9030001@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox