X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 8D43DD1E9C3 for ; Mon, 29 Mar 2004 16:01:07 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 52630-03 for ; Mon, 29 Mar 2004 12:01:05 -0400 (AST) Received: from smtp2.actcom.co.il (mail.actcom.co.il [192.114.47.15]) by svr1.postgresql.org (Postfix) with ESMTP id C5402D1E2D7 for ; Mon, 29 Mar 2004 12:01:03 -0400 (AST) Received: from shemesh.biz (line102-130.adsl.actcom.co.il [192.117.102.130]) by smtp2.actcom.co.il (8.12.8/8.12.8) with ESMTP id i2TG0pRi021074; Mon, 29 Mar 2004 18:00:52 +0200 Message-ID: <40684833.9060806@shemesh.biz> Date: Mon, 29 Mar 2004 18:00:51 +0200 From: Shachar Shemesh Organization: Lingnu Open Systems Consulting User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040312 Debian/1.6-3 X-Accept-Language: en, he MIME-Version: 1.0 To: SZ?CS Gabor Cc: pgsql-odbc@postgresql.org Subject: Re: Error Codes in 7.4 References: <000901c2d12a$8b718720$1afaabc8@insyde> <3E4843ED.27E84673@tpf.co.jp> <017401c4158c$43d16e60$0403a8c0@fejleszt4> In-Reply-To: <017401c4158c$43d16e60$0403a8c0@fejleszt4> Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200403/89 X-Sequence-Number: 3891 Hi Gabor, I'm afraid the answer is, most likely, no. The ODBC driver works with version 2 of the client-server protocol. This version does not have error codes support. Shachar SZ?CS Gabor wrote: >Dear Gurus, > >As of v7.4, PostgreSQL supports error codes. I'd like to know if we may hope >for a version of psqlODBC that handles error codes. > >I tried with PostgreSQL 7.4.1, ODBCExpress 6.0 (dated 2003 Oct) and psqlodbc >7.3.1.0 (dated 2003 May 15) and got the following (I assume useless) answer. > >Also tried psqlodbc 7.3.2.4 (dated 2003 Nov 12) and the SQLGetDiagRec >function, with the same result. > > Message = "ERROR: update or delete on \"cikk\" violates foreign key >constraint \"$1\" on \"szallitolevel_tetele\"" > Native = 7 > SQLState = "HY000" > >AFAIK these error codes say something like "general error" in ODBC terms :) >This so-called state, "HY000" is not even an SQL state, unless I'm fatally >mistaken. It's some kind of ODBC state, isn't it? > >Awaiting your kind response, > >G. > > -- Shachar Shemesh Lingnu Open Systems Consulting http://www.lingnu.com/