Parameter not found in ZReadOnlyQuery

The official tester's forum for ZeosLib 7.1. Ask for help, post proposals or solutions.
Post Reply
piechcio
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 13.10.2013, 15:55

Parameter not found in ZReadOnlyQuery

Post 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;
User avatar
EgonHugeist
Zeos Project Manager
Zeos Project Manager
Posts: 1936
Joined: 31.03.2011, 22:38

Re: Parameter not found in ZReadOnlyQuery

Post by EgonHugeist »

piechcio

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

You want to help? http://zeoslib.sourceforge.net/viewtopic.php?f=4&t=3671
You found a (possible) bug? Use the new bugtracker dude! http://sourceforge.net/p/zeoslib/tickets/

Image
Post Reply