Delphi 2010 + mySQL 5 :

The alpha/beta tester's forum for ZeosLib 7.0.x series

Report problems concerning our Delphi 2009+ version and new Zeoslib 7.0 features here.

This is a forum that will be removed once the 7.X version goes into stable!!

Moderators: gto, EgonHugeist, olehs

Locked
Wilco
Fresh Boarder
Fresh Boarder
Posts: 5
Joined: 30.09.2010, 15:58

Delphi 2010 + mySQL 5 :

Post 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
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post 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
Image
Locked