From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Heiser, Doris <Doris.Heiser@fujitsu-siemens.com>
Cc: pgsql-odbc@postgresql.org <pgsql-odbc@postgresql.org>
Subject: Re: SQLGetDiagRec, sqlstate returned?
Date: Sat, 09 Feb 2008 02:24:32 +0900
Message-ID: <47AC9050.20109@tpf.co.jp> (raw)
In-Reply-To: <238C17DBF4050B40991C6D06B241D7D37E1ED9FC6E@ABGEX73E.FSC.NET>
References: <238C17DBF4050B40991C6D06B241D7D37E1ED9FC6E@ABGEX73E.FSC.NET>
Heiser, Doris wrote:
> Hi,
>
> I have some problems with sqlstates returned from SQLGetDiagRec with
> psqlodbc. We use PostgreSQL with psqlodbc on Linux systems.
>
> We do at least some checks on sqlstates returned from PostgreSQL within
> our application to implement some specific error reactions.
>
> This worked fine with psqlodbc 08.01.0200 and PostgreSQL 8.1.9. We used
> to get a specific sqlstate and error message, e.g. “22021”, “invalid
> byte sequence for encoding…”.
>
> Now we changed to psqlodbc 08.02.0500 and PostgreSQL 8.2.5. In the very
> same error situation we still see the error message as before. The
> sqlstate obtained with SQLGetDiagRec however seems to be always “HY000”
> (general error) in more or less any error situation.
I can see "22021" "invalid byte sequence ..." error message in a test
case.
Could you send me directly the Mylog message ?
regards,
Hiroshi Inoue
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: inoue@tpf.co.jp, Doris.Heiser@fujitsu-siemens.com
Subject: Re: SQLGetDiagRec, sqlstate returned?
In-Reply-To: <47AC9050.20109@tpf.co.jp>
References: <238C17DBF4050B40991C6D06B241D7D37E1ED9FC6E@ABGEX73E.FSC.NET> <47AC9050.20109@tpf.co.jp>
* 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