pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Carlos Abalde <carlos@lfcia.org>
To: pgsql-odbc@postgresql.org
Cc: Steve Lutz <slutz@highbeam.com>
Subject: Re: Help with DELETE statement via ODBC
Date: Tue, 8 Jun 2004 09:54:10 +0200
Message-ID: <20040608075410.GA7613@lfcia.org> (raw)
In-Reply-To: <D774C5E2898B2A48A2C3BC83218E9E0835223A@kopmail.alacritude.com>
References: <D774C5E2898B2A48A2C3BC83218E9E0835223A@kopmail.alacritude.com>

Steve Lutz wrote...

> If we are going to turn this into a Philosophical discussion, what
> happens when a select statement updates zero rows? It doesn't cause an
> error, why does a delete?

Hi Steve!

In my previous mail I wrote about DELETE statement because I want
to focus in a specific problem, but I think that the behaviour of
the UPDATE statement is erroneous too. The reasons are exactly the
same as for the DELETE statement. Once again the Sets Theory behind
DBs is the main reason. 0 updated rows must not be an ODBC/DB error. 
Maybe 0 updated rows is an application (DB client) error, but that is
a decission of the application. DBs only known about sets of tuples.

Cheers,


+---.---.---.---.---.---.---.---.---+---.---.---.---.---.---.---.---+
| Carlos Abalde (carlos@lfcia.org)  | http://www.lfcia.org/~carlos  |
+ LFCIA Lab, Dept. Computer Science | +34.981.167000 ext. 1275      +
| University of A Coruna, Spain     | PGP Key ID = 0x04DF0EAF       |
+-.---.---.---.---.---.---.---.---.-+-.---.---.---.---.---.---.---.-+



view thread (6+ messages)

Message-ID: <20040608075410.GA7613@lfcia.org>
Permalink:  ../20040608075410.GA7613@lfcia.org/
Also on:    postgresql.org/message-id/20040608075410.GA7613@lfcia.org

 · 

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: carlos@lfcia.org, slutz@highbeam.com
  Subject: Re: Help with DELETE statement via ODBC
  In-Reply-To: <20040608075410.GA7613@lfcia.org>
  References: <D774C5E2898B2A48A2C3BC83218E9E0835223A@kopmail.alacritude.com> <20040608075410.GA7613@lfcia.org>

* 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