Page 1 of 1
UniDAC and Ping
Posted: Fri 20 Aug 2010 04:41
by x_tasy2
I previously used to access to MySQL-server components ZEOSLib (
http://zeos.firmos.at)
To test connection, there was a function Ping (TZConenction.Ping)
In TUniConnection no feature Ping. But Ping is in TMySqlSession.
As of TUniConnection allocate TMySqlSession to perform Ping?
Posted: Fri 20 Aug 2010 10:16
by Dimon
The TMyConnection component of MyDAC has the Ping method, but TUniConnection doesn't have this method because it is server specific and doesn't make sense for other servers.
Posted: Fri 20 Aug 2010 10:36
by x_tasy2
But how do Ping, when TUniConnection used to connect to MySQL?
Posted: Mon 23 Aug 2010 03:15
by x_tasy2
up
Posted: Wed 25 Aug 2010 09:50
by Dimon
UniDAC doesn't allow to execute this method. As a workaround you can execute any simple query, like SELECT 0, and check the result.
Posted: Wed 25 Aug 2010 10:26
by x_tasy2
Maybe in future versions can be done something like that
Code: Select all
(UniConnection1.CurrentSession as TMySqlSession).Ping
Posted: Wed 25 Aug 2010 11:11
by Dimon
Thank you for your inquiry. We will investigate the possibility of adding this functionality in the future.