Problem with ParamByName

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
japi
Posts: 7
Joined: Mon 14 Feb 2005 09:25
Location: Belgium

Problem with ParamByName

Post by japi » Wed 14 Feb 2007 20:29

Hello,

I get the error Parameter iPK not found.

iPK = 3;
MyQuery1->SQL->Clear();
MyQuery1->Close();
MyQuery1->SQL->Add("delete from streets where PK = :iPK");
MyQuery1->ParamByName("iPK")->AsInteger = iPK;
MyQuery1->Execute();

What is wrong with this ?
I use BCB5, MySql 5 and CoreLab 5.00.0.1

Thanks,
Jan

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Thu 15 Feb 2007 09:45

We could not reproduce the problem. Please check that the value of the ParamCheck property is set to True.

Post Reply