Re: What is the most efficient way to check if a Database handler is still valid in perl FCGI application?
"Nikolay Ananiev" <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel,gmane.spam.detected |
|---|---|
| Message-ID | <[email protected]> |
Also, DBD::mysql has an "auto_reconnect" attribute, so if you're using mysql you have to set it to true and then you don't have to check for anything. "David Birnbaum" <[email protected]> wrote in message news:[email protected] DBI has a standard way: $rc = $dbh->ping; David. ------------------------------------------------------------------------------ Guorui Wu wrote: HI, with Mod_perl, we can use apache::DBI, what is the best way to check if a database handler is still valid from a previous connect in Perl FCGI application? attempting to execute a query works, but is there any other more efficient methods ? Thanks Galen ---------------------------------------------------------------------------- ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/ ------------------------------------------------------------------------------ ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/ ___________________________________ fastcgi-developers mailing list http://fastcgi.com/fastcgi-developers/