Subject: | Add support for method ping |
Add support for method ping.
Local environment:
Linux 2.4.21-32.0.1.EL i686 i386 GNU/Linux
This is perl, v5.8.0 built for i386-linux-thread-multi
Module id = DBI INST_VERSION 1.48
Module id = Test::MockDBI INST_VERSION 0.61
perldoc DBI:
Show quoted text
> $rc = $dbh->ping;
>
> Attempts to determine, in a reasonably efficient way, if the
> database server is still running and the connection to it is still
> working. Individual drivers should implement this function in the
> most suitable manner for their database engine.
I suggest the addition of method ping in MockDBI.pm.
See attached patch.
Best regards,
Ola Finsbraaten
--
433a434,436
> ping => sub {
> return fake("ping", $_[1], 1);
> },