Hi.
I built two application (client & server) based on TServerSocket and TClientSocket.
Client send query(SendText(string)) to server and server it execute.
Each query is confirmed.
It may happen that the confirmation gets lost, server execute the query, but client send query again because dont get confirmation.
As a result, server throw execption "duplicate ...."
Is possible to check query before execute, or disable throwing exception ?
I use: TMyConnection and TMyQuery
Disable throwing exception "Duplicate entry key" ??
Try to use the following code:
Code: Select all
try
MyQuery.Execute;
except
end;