style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Hello,>
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>These tests are done =
with the
2 versions of the driver 7.3
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:10.0pt;
font-family:Arial'>Table User description : class=3DSpellE>u_num
int4 nextvalclass=3DGramE>( …), u_comm =
class=3DSpellE>varchar(512)
style=3D'font-size:10.0pt;
font-family:Arial'>
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>In my table I have one =
row :
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 u_numstyle=3D'mso-tab-count:2'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
1
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 u_commstyle=3D'mso-tab-count:1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
‘hello
world <CR><LF> all is =
fine.’
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Imagine I want to =
delete this
row
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “select * from =
user where u_num=3D1”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Set rs =3D =
odbc_cnx.OpenResultset( sql, rdOpenKeyset,
rdConcurRowver )
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.Edit
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.delete
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.close
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>The row is not =
deleted. Of
course because in the log file, I find
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “Delete from =
user where u_num=3D1 and u_comm=3D‘hello
world
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>all is =
fine.’”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>I have found how to do =
:
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “select u_num =
from user where u_num=3D1”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Set rs =3D =
odbc_cnx.OpenResultset( sql, rdOpenKeyset,
rdConcurRowver )
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.Edit
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.delete
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.close
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>And now it is ok since =
in the
log file, I find
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “Delete from =
user where u_num=3D1”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>But I have the same =
problem with
update :
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “select u_num, =
u_comm from user where u_num=3D1”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Set rs =3D =
odbc_cnx.OpenResultset( sql, rdOpenKeyset,
rdConcurRowver )
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.Edit
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs(“u_comm”).value =3D =
“bonjour”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.update
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =
Rs.close
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>In the log file, I =
find
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “Update from =
user set u_comm=3D’bonjour’
where u_num=3D1 and u_comm=3D‘hello =
world
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>all is =
fine.’”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Is there anything to =
do to
obtain from the driver something like :
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>style=3D'mso-tab-count:
1'>=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 Sql =3D “Update from =
user set u_comm=3D’bonjour’
where u_num=3D1”
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Since we don’t =
need the
second clause.
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'>Thank you very much if =
you
have a solution.
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB'> >
style=3D'font-size:
10.0pt;font-family:Arial;mso-ansi-language:EN-GB;mso-no-proof:yes'>H=E9l=E8=
ne
FESTOCstyle=3D'mso-ansi-language:EN-GB;mso-no-proof:
yes'>
lang=3DEN-GB
=
style=3D'font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB;mso-n=
o-proof:
yes'>Kalitechface=3DArial>lang=3DEN-GB =
style=3D'font-size:10.0pt;font-family:Arial;mso-ansi-language:EN-GB;
mso-no-proof:yes'> - 01 69 41 97 54style=3D'mso-ansi-language:EN-GB;mso-no-proof:yes'>
=
lang=3DEN-GB
style=3D'font-size:12.0pt;mso-ansi-language:EN-GB;mso-no-proof:yes'> =
;lang=3DEN-GB style=3D'mso-ansi-language:EN-GB'>
lang=3DEN-GB
style=3D'font-size:12.0pt;mso-ansi-language:EN-GB'> n>