Re: Strange Update query ...
От | Hélder M. Vieira |
---|---|
Тема | Re: Strange Update query ... |
Дата | |
Msg-id | 004001c6556c$930fc130$580bfea9@hmv02 обсуждение исходный текст |
Ответ на | Strange Update query ... (Thomas Chabaud <tc@geosys.fr>) |
Ответы |
Re: Strange Update query ...
Re: Strange Update query ... |
Список | 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 по дате отправления: