I have a problem with MyDAC In Delphi.
In running time when the code arrives to Lock(lrDelayed), i get an error.
The code is:
Code: Select all
procedure TDataMod.TBBeforeEdit(DataSet: TDataSet);
begin
TBgyerek.Connection.StartTransaction;
TBgyerek.Lock(lrDelayed);
TBgyerekAfterScroll(DataSet);
end;#42000You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? LOCK IN SHARE MODE' at line 3.
I don't know what happened, but yesterday it was OK.
This was in the log:
SELECT NULL FROM gyerek
WHERE
jellapkey = ?
LOCK IN SHARE MODE
I don't understand why is there a '?'