Can Unidac use underlying provider method ?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Tsagoth
Posts: 33
Joined: Wed 15 Jul 2009 01:25

Can Unidac use underlying provider method ?

Post by Tsagoth » Thu 18 Oct 2012 14:46

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 ?

AndreyZ

Re: Can Unidac use underlying provider method ?

Post by AndreyZ » Fri 19 Oct 2012 08:14

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', []);

Post Reply