pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marko Ristola <marko.ristola@kolumbus.fi>
Cc: pgsql-odbc@postgresql.org
Subject: Re: changed behavior in libpq odbc driver
Date: Sun, 21 Aug 2005 17:36:01 +0300
Message-ID: <43089151.3080709@kolumbus.fi> (raw)
In-Reply-To: <71837C040963F748B9B94E123A2896785A0F93@mailserver.sandvine.com>
References: <71837C040963F748B9B94E123A2896785A0F93@mailserver.sandvine.com>


Please check, but ODBC 3 should return SQL_NO_DATA, when
no data has been updated.

ODBC 2 should return SQL_SUCCESS wether any rows were updated, or not.

So it depends on the ODBC standard, that the client program chooses.

Marko Ristola

Scot Loach wrote:

>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
>  
>




view thread (33+ messages)  latest in thread

Message-ID: <43089151.3080709@kolumbus.fi>
Permalink:  ../43089151.3080709@kolumbus.fi/
Also on:    postgresql.org/message-id/43089151.3080709@kolumbus.fi

 · 

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: marko.ristola@kolumbus.fi
  Subject: Re: changed behavior in libpq odbc driver
  In-Reply-To: <43089151.3080709@kolumbus.fi>
  References: <71837C040963F748B9B94E123A2896785A0F93@mailserver.sandvine.com> <43089151.3080709@kolumbus.fi>

* 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