pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Re: Error Codes in 7.4
2+ messages / 2 participants
[nested] [flat]

* Re: Error Codes in 7.4
@ 2004-03-29 16:00 Shachar Shemesh <psql@shemesh.biz>
  2004-04-01 13:56 ` Re: Error Codes in 7.4 SZ?CS Gabor <surrano@mailbox.hu>
  0 siblings, 1 reply; 2+ messages in thread

From: Shachar Shemesh @ 2004-03-29 16:00 UTC (permalink / raw)
  To: SZ?CS Gabor <surrano@mailbox.hu>; +Cc: pgsql-odbc

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/




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Error Codes in 7.4
  2004-03-29 16:00 Re: Error Codes in 7.4 Shachar Shemesh <psql@shemesh.biz>
@ 2004-04-01 13:56 ` SZ?CS Gabor <surrano@mailbox.hu>
  0 siblings, 0 replies; 2+ messages in thread

From: SZ?CS Gabor @ 2004-04-01 13:56 UTC (permalink / raw)
  To: pgsql-odbc

Dear Shachar,

Bad news. Thanks anyway.

Do you know any workarounds?
A different thing, maybe offtopic:
Do you know how to access error codes in psql (the default backend)? Or does
it use v2, too? Whom should I ask? pgsql-novice maybe?

G.
%----------------------- cut here -----------------------%
\end

----- Original Message ----- 
From: "Shachar Shemesh" <psql@shemesh.biz>
Sent: Monday, March 29, 2004 6:00 PM


> 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2004-04-01 13:56 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2004-03-29 16:00 Re: Error Codes in 7.4 Shachar Shemesh <psql@shemesh.biz>
2004-04-01 13:56 ` SZ?CS Gabor <surrano@mailbox.hu>

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