Subject: | maybe Bug (or documentation?) / should there be access to DBI->{InactiveDestroy) or should errors be catched |
seen on freebsd, with mysql 4.0.17, DBI and DBD uptodate
The following can happen:
If you have an object, with an active connection to the db; and then fork your programm, either process can close the connection.
Ima:DBI will normally reestablish the connection in the remaining process, as the ping will fail.
This does not apply, if the 2nd process closes the connection, between the ping and the sth->execute.
In this case Ima::DBI will die.
Is this behavior wanted, or should this error, be caught?
Also should there be easier access to InactiveDestroy, other than through db_*->{InctiveDestroy}?