X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 6515DD1B345 for ; Tue, 8 Jun 2004 04:54:21 -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 79702-10 for ; Tue, 8 Jun 2004 07:54:18 +0000 (GMT) Received: from orzan.fi.udc.es (orzan.fi.udc.es [193.144.60.19]) by svr1.postgresql.org (Postfix) with ESMTP id 0A8CAD1B33B for ; Tue, 8 Jun 2004 04:54:15 -0300 (ADT) Received: from anakin.lfcia.pri (laforge.dc.fi.udc.es [193.144.51.213]) by orzan.fi.udc.es (8.12.10/8.11.1) with ESMTP id i587sAHr015674; Tue, 8 Jun 2004 09:54:11 +0200 (MEST) Received: from carlos by anakin.lfcia.pri with local (Exim 3.36 #1 (Debian)) id 1BXbQw-0003d9-00; Tue, 08 Jun 2004 09:54:10 +0200 Date: Tue, 8 Jun 2004 09:54:10 +0200 From: Carlos Abalde To: pgsql-odbc@postgresql.org Cc: Steve Lutz Subject: Re: Help with DELETE statement via ODBC Message-ID: <20040608075410.GA7613@lfcia.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.lfcia.org/~carlos/pubkey.asc Organization: LFCIA Lab X-Operating-System: Linux 2.4.20-xfs i686 User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/15 X-Sequence-Number: 4085 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 | +-.---.---.---.---.---.---.---.---.-+-.---.---.---.---.---.---.---.-+