Page 1 of 1

Delphi 2010 + mySQL 5 :

Posted: 03.10.2010, 16:48
by Wilco
Dear all,

It seems there is a problem with the ZQuery.ParamByName().AsString function. The following code that before worked ok with Delphi 7 does not work any more with Delphi 2010 :

Code: Select all

ZQuery1.SQL.Add('select * from param where PROFIL = :PROFIL'); 
ZQuery1.ParamByName('PROFIL').AsString := 'TOUS'; 
ZQuery1.Open; 
It makes an error. In fact, the value of ZQuery1.ParamByName('PROFIL') is equal to ''.

But the following code works ok.

Code: Select all

ZQuery1.ParamByName('PROFIL').Value 
How to fix this problem ?

Wilco





How to resolve this problem

thank you for help

Posted: 13.10.2010, 23:31
by mdaems
Wilco,

What zeoslib version are you using exactly? The last official release 7.0.0-alpha, SVN or a snapshot release?

Sounds like an issue that was fixed already.

Mark