Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 21A9C2E4762 for ; Fri, 8 Feb 2008 12:03:20 -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 45599-01-9 for ; Fri, 8 Feb 2008 12:02:59 -0400 (AST) Received: from dgate1.fujitsu-siemens.com (dgate1.fujitsu-siemens.com [217.115.66.35]) by postgresql.org (Postfix) with ESMTP id 79E3C2E430F for ; Fri, 8 Feb 2008 12:02:56 -0400 (AST) DomainKey-Signature: s=s768; d=fujitsu-siemens.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:Received:Received: From:To:Date:Subject:Thread-Topic:Thread-Index:Message-ID: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:acceptlanguage:Content-Type: MIME-Version; b=L6B7gW8Gg6MZLRWyc/O04TlIkdiURsJepZd/pBpo9O+ZywDyPFfC3CCZ BP5KGDw/CiDL3U2IEp9NSf2lY9I0vI4k7l0W6+bvntD96cWMh0tQFkUur v3S4lJsjPeJzJv3; X-SBRSScore: None X-IronPort-AV: E=Sophos;i="4.23,1,1194217200"; d="scan'208,217";a="28844998" Received: from plam.pdb.fsc.net ([172.25.97.20]) by pdbgate1d.pdb.fsc.net with ESMTP; 08 Feb 2008 17:02:54 +0100 Received: from abgze76e.fsc.net (abgze76e.fsc.net [172.25.138.142]) by plam.pdb.fsc.net (8.12.6/8.12.6/SuSE Linux 0.6) with ESMTP id m18G2sil004424 for ; Fri, 8 Feb 2008 17:02:54 +0100 Received: from ABGEX73E.FSC.NET ([172.25.138.136]) by abgze76e.fsc.net ([172.25.138.142]) with mapi; Fri, 8 Feb 2008 17:02:53 +0100 From: "Heiser, Doris" To: "pgsql-odbc@postgresql.org" Date: Fri, 8 Feb 2008 17:02:52 +0100 Subject: SQLGetDiagRec, sqlstate returned? Thread-Topic: SQLGetDiagRec, sqlstate returned? Thread-Index: AchqbA9TpyrcF8zTTIWz+lDkngXoBQ== Message-ID: <238C17DBF4050B40991C6D06B241D7D37E1ED9FC6E@ABGEX73E.FSC.NET> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: multipart/alternative; boundary="_000_238C17DBF4050B40991C6D06B241D7D37E1ED9FC6EABGEX73EFSCNE_" MIME-Version: 1.0 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/28 X-Sequence-Number: 9380 --_000_238C17DBF4050B40991C6D06B241D7D37E1ED9FC6EABGEX73EFSCNE_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I have some problems with sqlstates returned from SQLGetDiagRec with psqlod= bc. 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 sequ= ence for encoding...". Now we changed to psqlodbc 08.02.0500 and PostgreSQL 8.2.5. In the very sam= e error situation we still see the error message as before. The sqlstate ob= tained with SQLGetDiagRec however seems to be always "HY000" (general error= ) in more or less any error situation. I still see the sqlstate within PostgreSQL error log, so I guess the "HY000= " is coming from the odbc driver. Can someone give me some help with this p= roblem? Are we missing something in our application or is this normal behav= ior of the current driver version? Thanks in advance and best regards, Doris Heiser --_000_238C17DBF4050B40991C6D06B241D7D37E1ED9FC6EABGEX73EFSCNE_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi,

 

I have some problems with sqlstates returned from SQLGet= DiagRec with psqlodbc. We use PostgreSQL with psqlodbc on Linux systems.=

 

We do at least some checks on sqlstates returned from Po= stgreSQL 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. “22= 021”, “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 “HY00= 0” (general error) in more or less any error situation.

 

I still see the sqlstate within PostgreSQL error log, so= I guess the “HY000” is coming from the odbc driver. Can someone g= ive me some help with this problem? Are we missing something in our application= or is this normal behavior of the current driver version?

 

Thanks in advance and best regards,

Doris Heiser

 

 

 

 

 

 

 

--_000_238C17DBF4050B40991C6D06B241D7D37E1ED9FC6EABGEX73EFSCNE_--