pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Håkon Clausen <hakonhc@nospam.hclausen.net>
To: pgsql-odbc@postgresql.org
Subject: Re: Help with DELETE statement via ODBC
Date: Mon, 07 Jun 2004 10:03:36 +0200
Message-ID: <opr87soaoy1y0472@news.postgresql.org> (raw)
References: <20040531171916.GA30749@lfcia.org>


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 <carlos@lfcia.org> 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/



view thread (6+ messages)  latest in thread

Message-ID: <opr87soaoy1y0472@news.postgresql.org>
Permalink:  ../opr87soaoy1y0472@news.postgresql.org/
Also on:    postgresql.org/message-id/opr87soaoy1y0472@news.postgresql.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: hakonhc@nospam.hclausen.net
  Subject: Re: Help with DELETE statement via ODBC
  In-Reply-To: <opr87soaoy1y0472@news.postgresql.org>
  References: <20040531171916.GA30749@lfcia.org> <opr87soaoy1y0472@news.postgresql.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