Page 1 of 1

Can Unidac use underlying provider method ?

Posted: Thu 18 Oct 2012 14:46
by Tsagoth
In MyDac the TMyConnection has the method Ping to keep connection alive. In Unidac the TUniConnection has no such method. Since MyDac is the underlying provider for using MySql for Unidac is there a way to invoke Ping through TUniConnection ?

Re: Can Unidac use underlying provider method ?

Posted: Fri 19 Oct 2012 08:14
by AndreyZ
Hello,

The Ping method is a MySQL-specific functionality, that is why UniDAC does not have it. You can execute a very fast query instead of pinging your server. Here is an example:

Code: Select all

UniConnection.ExecSQL('SELECT NULL', []);