From: Shachar Shemesh <psql@shemesh.biz>
To: SZ?CS Gabor <surrano@mailbox.hu>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Error Codes in 7.4
Date: Mon, 29 Mar 2004 18:00:51 +0200
Message-ID: <40684833.9060806@shemesh.biz> (raw)
In-Reply-To: <017401c4158c$43d16e60$0403a8c0@fejleszt4>
References: <000901c2d12a$8b718720$1afaabc8@insyde>
<3E4843ED.27E84673@tpf.co.jp>
<017401c4158c$43d16e60$0403a8c0@fejleszt4>
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/
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: psql@shemesh.biz, surrano@mailbox.hu
Subject: Re: Error Codes in 7.4
In-Reply-To: <40684833.9060806@shemesh.biz>
References: <000901c2d12a$8b718720$1afaabc8@insyde> <3E4843ED.27E84673@tpf.co.jp> <017401c4158c$43d16e60$0403a8c0@fejleszt4> <40684833.9060806@shemesh.biz>
* 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