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.)
In reply to Re: Preventing database handles from going stale
by dirving
in thread Preventing database handles from going stale
by dsheroh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |