Parameter not found in ZReadOnlyQuery
Posted: 14.10.2013, 21:34
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;
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;