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 A209ED1B17C for ; Mon, 7 Jun 2004 05:18:14 -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 33470-04 for ; Mon, 7 Jun 2004 08:18:05 +0000 (GMT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id 48904D1B451 for ; Mon, 7 Jun 2004 05:18:02 -0300 (ADT) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id i578I2DW035915 for ; Mon, 7 Jun 2004 08:18:02 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id i5783MpK033368 for pgsql-odbc@postgresql.org; Mon, 7 Jun 2004 08:03:22 GMT From: =?iso-8859-15?Q?H=E5kon_Clausen?= X-Newsgroups: comp.databases.postgresql.interfaces.odbc Subject: Re: Help with DELETE statement via ODBC Date: Mon, 07 Jun 2004 10:03:36 +0200 Organization: Hub.Org Networking Services Lines: 39 Message-ID: References: <20040531171916.GA30749@lfcia.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@news.hub.org User-Agent: Opera M2/7.50 (Win32, build 3778) To: pgsql-odbc@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.1 tagged_above=0.0 required=5.0 tests=NO_DNS_FOR_FROM X-Spam-Level: * X-Archive-Number: 200406/12 X-Sequence-Number: 4082 Hi Carlos, This is the correct behavior. Deleting 0 rows will give an ODBC error. You will have to rewrite your query so that this does not occur. Håkon On Mon, 31 May 2004 19:19:16 +0200, Carlos Abalde wrote: > Hi! > > I've been all the day fighting against a DB access poblem, and I'm > sure that the problem is related with the ODBC postgresql driver, > but I don't know how to solve it. > > The problem is that when I execute a DELETE stament over a indetifier > not found in a table, the driver returns an error instead of a counter > with 0 rows affected. I'm using the last version of the driver. > > Any idea? Best regards, > > +---.---.---.---.---.---.---.---.---+---.---.---.---.---.---.---.---+ > | 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 | > +-.---.---.---.---.---.---.---.---.-+-.---.---.---.---.---.---.---.-+ > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > -- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/