Re: Error handling in ODBC

From: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
To: Kovacs Zoltan <kovacsz(at)pc10(dot)radnoti-szeged(dot)sulinet(dot)hu>, Tibor Laszlo <ltibor(at)mail(dot)tiszanet(dot)hu>, Dave Page <dpage(at)vale-housing(dot)co(dot)uk>, Kristis Makris <kristis(dot)makris(at)datasoft(dot)com>, Mister ics <mister_ics(at)hotmail(dot)com>
Cc: "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org>
Subject: Re: Error handling in ODBC
Date: 2001-06-19 02:21:49
Message-ID: 3B2EB73D.7300385F@tpf.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces pgsql-odbc

Hi all,

I've just committed a fix to cvs.

Changed the error handling as follows.
1) ERRORs causes an SQL_ERROR and the SQLSTATE='S1000'.
2) NOTICEs causes an SQL_SUCCESS_WITH_INFO and the succeeding
SQLError() returns the NOTICE message.

Remarks.
1) RI violation ERRORs are reported properly.
2) The NOTICE is the last NOTICE message and
is truncated to 4095 bytes.

regards,
Hiroshi Inoue

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Jack Woehr 2001-06-19 16:19:34 Re: jbuilder and postgres
Previous Message Hiroshi Inoue 2001-06-19 00:11:11 Re: Error handling in ODBC

Browse pgsql-odbc by date

  From Date Subject
Next Message Dave Page 2001-06-19 08:48:47 RE: Error handling in ODBC
Previous Message Hiroshi Inoue 2001-06-19 00:11:11 Re: Error handling in ODBC