Re: Design Pattern to keep a connection opened?

John R Pierce <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
On 11/05/11 3:57 PM, Brandon Phelps wrote:
> The main question is, how can I efficiently determine if a db object 
> is usable? 

put the actual execute SQL command calls in a procedure which checks for 
an error code, and if the error is of the connection variety, reopens 
the connection and retries the query a reasonable number of times.



-- 
john r pierce                            N 37, W 122
santa cruz ca                         mid-left coast
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.