Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D049D2E3D73 for ; Fri, 8 Feb 2008 13:25:14 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 47103-03 for ; Fri, 8 Feb 2008 13:25:07 -0400 (AST) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id A93CA2E3E3C for ; Fri, 8 Feb 2008 13:25:07 -0400 (AST) Received: (qmail 27578 invoked from network); 9 Feb 2008 02:25:04 +0900 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 9 Feb 2008 02:25:04 +0900 Received: from unknown (HELO ?127.0.0.1?) (219.61.40.6) by sd.tpf.co.jp with SMTP; 9 Feb 2008 02:25:04 +0900 Message-ID: <47AC9050.20109@tpf.co.jp> Date: Sat, 09 Feb 2008 02:24:32 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: "Heiser, Doris" CC: "pgsql-odbc@postgresql.org" Subject: Re: SQLGetDiagRec, sqlstate returned? References: <238C17DBF4050B40991C6D06B241D7D37E1ED9FC6E@ABGEX73E.FSC.NET> In-Reply-To: <238C17DBF4050B40991C6D06B241D7D37E1ED9FC6E@ABGEX73E.FSC.NET> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/29 X-Sequence-Number: 9381 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