Read all accociated posts but didn't found answer - what should i do to correctly handle that Mysql exception?
I've got 1 UniConnection and 1 UniStoredProc components in my app.
I'm using stored procedures very often, by one at the time, no multythreading.
I do smth like
Code: Select all
sp.Close;
sp.StoredProcName:='Proc_User_Connect';
sp.PrepareSQL;
sp.ParamByName('ParamLogin').AsString := UserName;
sp.ParamByName('ParamShopName').AsString := ShopName;
sp.ParamByName('ParamRank').AsInteger := 5;
sp.ParamByName('ParamDeviceID').AsString := DeviceID;
sp.Open;
Is there some way to handle that error?
Thanks.