Re: Strange Update query ... - Mailing list pgsql-odbc

From Hélder M. Vieira
Subject Re: Strange Update query ...
Date
Msg-id 004001c6556c$930fc130$580bfea9@hmv02
Whole thread Raw
In response to Strange Update query ...  (Thomas Chabaud <tc@geosys.fr>)
Responses Re: Strange Update query ...
Re: Strange Update query ...
List pgsql-odbc
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 )'



pgsql-odbc by date:

Previous
From: Hiroshi Inoue
Date:
Subject: Re: Error when getting text longer than MaxLongVarcharSize
Next
From: Hiroshi Inoue
Date:
Subject: Re: Strange Update query ...