Disable throwing exception "Duplicate entry key" ??
Posted: Sun 25 Apr 2010 14:24
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
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