From: Tibor Laszlo <ltibor@mail.tiszanet.hu>
To: pgsql-odbc <pgsql-odbc@postgresql.org>
Cc: Kov當s Zolt疣 <kovzol@math.u-szeged.hu>
Subject: RE: Error handling in ODBC
Date: Sat, 16 Jun 2001 17:48:49 +0200
Message-ID: <NEBBJDDFALKDHFBLCGCPCEJCCBAA.ltibor@mail.tiszanet.hu> (raw)
In-Reply-To: <EKEJJICOHDIEMGPNIFIJGEMEEKAA.Inoue@tpf.co.jp>
Hiroshi Inoue writes:
> Recently I found the case that NOTICE causes an error in ODBC
> while examining Kristis' error report.
>
> It seems that NOTICE had never been the cause of SQL_ERROR
> before Zoltan's change about a year ago. Before his change *NOTICE*
> only caused a PGRES_NONFATAL_ERROR and SC_execute()
> returned SQL_SUCCESS_WITH_INFO. However currently *ERROR*
> also causes a PGRES_NONFATAL_ERROR and SC_Execute()
> returns SQL_ERROR.
> Why was this changed ?
Zoltan changed the driver because nobody else did it. As I recall, we asked this
list to correct the driver to work correctly with 7.0 pre releases with RI, but
we received no answers. We tried to correct the problem for ouselves. It worked.
But later we were asked to share the patch. Lastly it used to commit the main
CVS by sombody else but we asked this list again to werify the modifycatons by
sombody knowing something about ODBC and the current driver.
> I'd like to put it back if there's no reason.
I think it should be corrected. But if I rmember correctly, the patch was for
report RI violatoions to the app, and these errors comes as NOTICEs not ERRORs.
May I wrong? Is it the case now?
We still use the old patched driver. (It says "(non fatal)" error this case in
the error message - may the shared patch says it too.)
In addition later we encountered the same problem as you... And Zoltan made his
second patch, against the backend to do not drop other NOTICE-s :-) And it works
fine too... :-)) Is somebody interested in? :-)))
Regards,
Tibor Laszlo
ltibor@mail.tiszanet.hu
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: ltibor@mail.tiszanet.hu, pgsql-odbc@postgresql.org, kovzol@math.u-szeged.hu
Subject: RE: Error handling in ODBC
In-Reply-To: <NEBBJDDFALKDHFBLCGCPCEJCCBAA.ltibor@mail.tiszanet.hu>
* 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