UniDAC and Ping

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
x_tasy2
Posts: 4
Joined: Fri 20 Aug 2010 04:39

UniDAC and Ping

Post by x_tasy2 » Fri 20 Aug 2010 04:41

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?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 20 Aug 2010 10:16

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.

x_tasy2
Posts: 4
Joined: Fri 20 Aug 2010 04:39

Post by x_tasy2 » Fri 20 Aug 2010 10:36

But how do Ping, when TUniConnection used to connect to MySQL?

x_tasy2
Posts: 4
Joined: Fri 20 Aug 2010 04:39

Post by x_tasy2 » Mon 23 Aug 2010 03:15

up

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 25 Aug 2010 09:50

UniDAC doesn't allow to execute this method. As a workaround you can execute any simple query, like SELECT 0, and check the result.

x_tasy2
Posts: 4
Joined: Fri 20 Aug 2010 04:39

Post by x_tasy2 » Wed 25 Aug 2010 10:26

Maybe in future versions can be done something like that

Code: Select all

(UniConnection1.CurrentSession as TMySqlSession).Ping

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Wed 25 Aug 2010 11:11

Thank you for your inquiry. We will investigate the possibility of adding this functionality in the future.

Post Reply