X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1AF72D76A1 for ; Tue, 6 Sep 2005 21:31:54 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29379-08 for ; Wed, 7 Sep 2005 00:31:48 +0000 (GMT) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by svr1.postgresql.org (Postfix) with ESMTP id 0434CD7AED for ; Tue, 6 Sep 2005 21:31:42 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Subject: Re: changed behavior in libpq odbc driver Date: Tue, 6 Sep 2005 20:31:45 -0400 Message-ID: <71837C040963F748B9B94E123A2896785A1040@mailserver.sandvine.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] changed behavior in libpq odbc driver Thread-Index: AcWmX6B1ojlaWTubQf+Ja4Cwz8uchQAAVJfgAbnhinABfrcejw== From: "Scot Loach" To: "Anoop Kumar" Cc: , "Dave Page" X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200509/77 X-Sequence-Number: 5975 I've found a problem with this. This causes the correct state to be returned on db disconnect, great. Unfortunately 08S01 is now returned for other errors as well. For example, trying to insert a row with a duplicate key into a table = will cause 08S01 to be returned now, this was not the behavior before. scot. -----Original Message----- From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com] Sent: Wed 8/31/2005 1:51 AM To: Scot Loach Cc: pgsql-odbc@postgresql.org; Dave Page Subject: RE: [ODBC] changed behavior in libpq odbc driver Hi All, Please find the patch for the other bug pointed out by Scot. (Thanks to Sivakumar) "Another difference is the "state" that is returned from SQLGetDiagRec when a connection is lost during a query. This used to return 08S01. It now returns HY000." I request you to review this patch as well.=20 Regards Anoop > -----Original Message----- > From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc- > owner@postgresql.org] On Behalf Of Scot Loach > Sent: Sunday, August 21, 2005 8:31 PM > To: Marko Ristola > Cc: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] changed behavior in libpq odbc driver >=20 > Thanks for the clarification, Marko. > I use ODBC 3.0, so it would seem that this is a bug. >=20 > scot. >=20 >=20 > -----Original Message----- > From: pgsql-odbc-owner@postgresql.org > [mailto:pgsql-odbc-owner@postgresql.org]On Behalf Of Marko Ristola > Sent: Sunday, August 21, 2005 10:36 AM > Cc: pgsql-odbc@postgresql.org > Subject: Re: [ODBC] changed behavior in libpq odbc driver >=20 >=20 >=20 > Please check, but ODBC 3 should return SQL_NO_DATA, when > no data has been updated. >=20 > ODBC 2 should return SQL_SUCCESS wether any rows were updated, or not. >=20 > So it depends on the ODBC standard, that the client program chooses. >=20 > Marko Ristola >=20 > Scot Loach wrote: >=20 > >I'm not sure whether the old driver or the new one is correct. > > > >When executing an UPDATE query with a WHERE clause, if the WHERE clause > does not match any rows, the old driver returns SQL_NO_DATA. The new > driver returns SQL_SUCCESS. > > > > > > > >---------------------------(end of broadcast)--------------------------- > >TIP 9: In versions below 8.0, the planner will ignore your desire to > > choose an index scan if your joining column's datatypes do not > > match > > > > >=20 >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 4: Have you searched our list archives? >=20 > http://archives.postgresql.org >=20 > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster