X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id B6F5911F6C70 for ; Sat, 1 Apr 2006 19:12:43 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 58812-02 for ; Sat, 1 Apr 2006 19:12:43 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sd.tpf.co.jp (ftp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 0EA2911F61D0 for ; Sat, 1 Apr 2006 19:12:40 -0400 (AST) Received: (qmail 26689 invoked from network); 2 Apr 2006 08:12:39 +0900 X-Authentication: inoue was authenticated by dns.tpf.co.jp at 2 Apr 2006 08:12:39 +0900 Received: from unknown (HELO ?192.168.11.2?) (219.61.40.10) by dns.tpf.co.jp with SMTP; 2 Apr 2006 08:12:39 +0900 Message-ID: <442F08E7.2000903@tpf.co.jp> Date: Sun, 02 Apr 2006 08:12:39 +0900 From: Hiroshi Inoue User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: ja, en-us, en MIME-Version: 1.0 To: =?ISO-8859-15?Q?=22H=E9lder_M=2E_Vieira=22?= CC: pgsql-odbc@postgresql.org Subject: Re: Strange Update query ... References: <442D35FD.2050208@geosys.fr> <004001c6556c$930fc130$580bfea9@hmv02> In-Reply-To: <004001c6556c$930fc130$580bfea9@hmv02> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.1 required=5 tests=[AWL=0.100] X-Spam-Score: 0.1 X-Spam-Level: X-Archive-Number: 200604/4 X-Sequence-Number: 7531 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