On Wed, Aug 15, 2007 at 01:06:01PM -0500, Graham Barr wrote:
> 
> in Rose::DB AutoCommit has a default of 1. In my case that is the default
> I want. But when Rose::DB->new is called and there is currently an active
> transation, the code in init_dbh will reset AutoCommit to 0.

Perhaps connect_cached should (optionally?) check if the attributes
being requested match those currently set on the handle.

If they don't then it could create and return a new connection
(and replace the old one in the cache which no longer matches
the 'cache key').

But all that would slow connect_cached down significantly.

> [...] or Rose::DB->new needs to return the same
> object for all calls for the same connection.
> Personally I opted to implement the latter.

That seems like a good approach for Rose.

Tim.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Rose-db-object mailing list
Rose-db-object@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rose-db-object

Reply via email to