MyConnectionConnectionLost - inserts last records when rmReconnect

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
starhu
Posts: 27
Joined: Thu 13 Aug 2009 12:13

MyConnectionConnectionLost - inserts last records when rmReconnect

Post by starhu » Wed 05 Jun 2019 08:05

Hello,

Although I use the following event, the program still inserts last records again at reconnect.
What can I do to prevent it? Thank you!

procedure TAdatForm.MyConnectionConnectionLost(Sender: TObject;
Component: TComponent; ConnLostCause: TConnLostCause;
var RetryMode: TRetryMode);
begin
RetryMode := rmReconnect; // rmReconnect,rmReconnectExecute,rmRaise
end;

ViktorV
Devart Team
Posts: 2794
Joined: Wed 30 Jul 2014 07:16

Re: MyConnectionConnectionLost - inserts last records when rmReconnect

Post by ViktorV » Thu 06 Jun 2019 14:28

Unfortunately, we can't reproduce the issue.
Could you please try to reproduce it in our FailOver demo project and let us know the results? You can find this project in the: %MyDACDemos%\Miscellaneous\FailOver folder, where %MyDACDemos% is the path to MyDAC Demo projects on your computer.
If the issue persists, please describe the steps we need to take to reproduce it on our FailOver demo example.

Post Reply