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 53FA011F6D50 for ; Sat, 1 Apr 2006 05:20:20 -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 16219-05 for ; Sat, 1 Apr 2006 05:20:19 -0400 (AST) X-Greylist: delayed 00:06:37.776593 by SQLgrey- Received: from sapo.pt (relay5.ptmail.sapo.pt [212.55.154.25]) by postgresql.org (Postfix) with SMTP id E4BBF11F6D55 for ; Sat, 1 Apr 2006 05:20:17 -0400 (AST) Received: (qmail 29025 invoked by uid 0); 1 Apr 2006 09:13:37 -0000 Received: from unknown (HELO sapo.pt) (10.134.35.157) by relay5 with SMTP; 1 Apr 2006 09:13:37 -0000 Received: (qmail 24373 invoked from network); 1 Apr 2006 09:13:37 -0000 X-AntiVirus: PTMail-AV 0.3.88 X-Virus-Status: Clean (0.00409 seconds) Received: from unknown (HELO hmv02) (hmv@[82.155.153.147]) (envelope-sender ) by mta7 (qmail-ldap-1.03) with SMTP for ; 1 Apr 2006 09:13:37 -0000 Message-ID: <004001c6556c$930fc130$580bfea9@hmv02> From: =?ISO-8859-15?Q?H=E9lder_M._Vieira?= To: References: <442D35FD.2050208@geosys.fr> Subject: Re: Strange Update query ... Date: Sat, 1 Apr 2006 10:13:15 +0100 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="ISO-8859-15"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.259 required=5 tests=[AWL=-0.660, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.259 X-Spam-Level: * X-Archive-Number: 200604/3 X-Sequence-Number: 7530 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 ? Helder M. Vieira > Set rs = New ADODB.Recordset > rs.Open "SELECT id,myfield1,myfield2,myfield3 from mytable where > id=6",dbConn, adOpenKeyset, adLockOptimistic, adCmdText > > rs("myfield1").value = myvalue1 > rs("myfield2").value = myvalue2 > rs("myfield3").value = myvalue3 > rs.Update > rs.close > set rs=Nothing > ... > > UPDATE mytable SET myfield1=myvalue1,myfield2=myvalue2,myfield3=myvalue3 > WHERE (id=6 AND myfield1=myvalue1 AND myfield2=myvalue2 AND > myfield3=myvalue3 )'