pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scot Loach <sloach@sandvine.com>
To: Scot Loach <sloach@sandvine.com>
To: Anoop Kumar <anoopk@pervasive-postgres.com>
To: pgsql-odbc@postgresql.org
Subject: Re: changed behavior in libpq odbc driver
Date: Thu, 18 Aug 2005 20:41:31 -0400
Message-ID: <71837C040963F748B9B94E123A2896785A0F9C@mailserver.sandvine.com> (raw)

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.  From the documentation it would appear that 08S01 is the correct return code in this case.  I'm guessing the error codes are not implemented in the libpq version of the driver yet.

Also, SQLGetConnectAttr with SQL_ATTR_CONNECTION_DEAD doesn't seem to work anymore.



-----Original Message-----
From:	pgsql-odbc-owner@postgresql.org on behalf of Scot Loach
Sent:	Thu 8/18/2005 10:03 AM
To:	Anoop Kumar; pgsql-odbc@postgresql.org
Cc:	
Subject:	Re: [ODBC] changed behavior in libpq odbc driver
OS is FreeBSD 5.4, but I really don't think this matters.
PostgreSQL 7.4.6
old psqlodbc is version 07.03.0200, but it has various updates applied to it.
new psqlodbc is the latest from CVS as of about a week ago.


-----Original Message-----
From: Anoop Kumar [mailto:anoopk@pervasive-postgres.com]
Sent: Thursday, August 18, 2005 6:23 AM
To: Scot Loach; pgsql-odbc@postgresql.org
Subject: RE: [ODBC] changed behavior in libpq odbc driver


Hi Scot,

Can you provide the following details?
	1. The psqlodbc (socket) version you used
	2. PostgreSQL version
	3. OS

Regards

Anoop

> -----Original Message-----
> From: pgsql-odbc-owner@postgresql.org [mailto:pgsql-odbc-
> owner@postgresql.org] On Behalf Of Scot Loach
> Sent: Thursday, August 18, 2005 7:18 AM
> To: pgsql-odbc@postgresql.org
> Subject: [ODBC] changed behavior in libpq odbc driver
> 
> 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

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
       subscribe-nomail command to majordomo@postgresql.org so that your
       message can get through to the mailing list cleanly





view thread (33+ messages)  latest in thread

Message-ID: <71837C040963F748B9B94E123A2896785A0F9C@mailserver.sandvine.com>
Permalink:  ../71837C040963F748B9B94E123A2896785A0F9C@mailserver.sandvine.com/
Also on:    postgresql.org/message-id/71837C040963F748B9B94E123A2896785A0F9C@mailserver.sandvine.com

 · 

reply

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: sloach@sandvine.com, anoopk@pervasive-postgres.com
  Subject: Re: changed behavior in libpq odbc driver
  In-Reply-To: <71837C040963F748B9B94E123A2896785A0F9C@mailserver.sandvine.com>
  References: <71837C040963F748B9B94E123A2896785A0F9C@mailserver.sandvine.com>

* 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