pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: "Hélder M. Vieira" <hmv@mail.telepac.pt>
Cc: pgsql-odbc@postgresql.org
Subject: Re: Strange Update query ...
Date: Sun, 02 Apr 2006 08:12:39 +0900
Message-ID: <442F08E7.2000903@tpf.co.jp> (raw)
In-Reply-To: <004001c6556c$930fc130$580bfea9@hmv02>
References: <442D35FD.2050208@geosys.fr>
	<004001c6556c$930fc130$580bfea9@hmv02>

Hélder M. Vieira wrote:

> I tried to replicate the situation you describe, without success.
> I guess ADO for some reason is trying to build an SQL statement 
> corresponding to a parameter query.
> I'd bet on a ADO misinterpretation of your intention caused by the 
> myvalue1, myvalue2 and myvalue3 data types.
> Could you post the DIM statements of those variables ?


Isn't myfieldx timestamp or float type ?
If I remember correctly, ADO builds the SQL statement
  UPDATE mytable SET 
myfield1=myvalue1,myfield2=myvalue2,myfield3=myvalue3 WHERE (id=6 AND
     myfield1=current_value1 AND myfield2=current_value2 AND 
myfield3=current_value3 )'

The clauses after the "AND" are for optimistic concurrency control by 
vaues but
the clause could be false if it contains timestamp or float field,

regards,
Hiroshi Inoue



view thread (6+ messages)  latest in thread

Message-ID: <442F08E7.2000903@tpf.co.jp>
Permalink:  ../442F08E7.2000903@tpf.co.jp/
Also on:    postgresql.org/message-id/442F08E7.2000903@tpf.co.jp

 · 

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: inoue@tpf.co.jp, hmv@mail.telepac.pt
  Subject: Re: Strange Update query ...
  In-Reply-To: <442F08E7.2000903@tpf.co.jp>
  References: <442D35FD.2050208@geosys.fr> <004001c6556c$930fc130$580bfea9@hmv02> <442F08E7.2000903@tpf.co.jp>

* 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