in reply to Preventing database handles from going stale
You could wrap the code where you are actually using the database in an eval block to trap the error, and then when an exception occurs you can just re-connect and try again. (Assuming you are using the RaiseError option, anyway -- otherwise just check the return value from your DBI calls.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Preventing database handles from going stale
by dsheroh (Monsignor) on Feb 05, 2007 at 17:41 UTC |