Subject: | DBIx::Class::Storage::Sybase::_ping |
When syb_no_child_con is enabled the _ping method of DBIx::Class::Storage::Sybase creates a new database handle so that it can try a 'select 1' query. The comments indicate someone else thought this was an odd thing to do:
# FIXME if the main connection goes stale, does opening another for this statement
# really determine anything?
This is most certainly the wrong thing to do. It can lead to an application having an unhealthy connection to an otherwise healthy database that continues to get used (and continue to throw errors) because _ping returns true.