Page 1 of 1

Parameter not found in ZReadOnlyQuery

Posted: 14.10.2013, 21:34
by piechcio
Hi
In older verwsions of zeoslib this code worked, but now I have error "Parameter u not found":

ZReadOnlyQuery1.SQL.Add('SELECT count(*) as ile from admins where name = :u and pass = :h');
ZReadOnlyQuery1.ParamByName('u').AsString:='k';
ZReadOnlyQuery1.ParamByName('h').AsString:='d';
ZReadOnlyQuery1.Open;

Re: Parameter not found in ZReadOnlyQuery

Posted: 16.10.2013, 20:50
by EgonHugeist
piechcio

uh not nice, it should be supported but might be broken. Which version of Zeos do you use? Which database?