Some connect_cached() gotchas
Because connect_cached() may return a new connection it’s important to specify all significant attributes at connect time
- e.g., AutoCommit, RaiseError, PrintError
- So pass the same set of attributes into all connect calls
It’s new and subject to change with experience
- The DBI may, in future, optionally keep track of which attributes have been changed, in which case the connect_cached() method could optionally reset the attributes of the new connection to be the same as current on the old.
Similar, but not quite the same as Apache::DBI
- Doesn’t disable the disconnect() method.