On 8/15/07, Michael Lackhoff <[EMAIL PROTECTED]> wrote:
> Well, I didn't switch AutoCommit on or off and I didn't do a rollback
> myself, so the question remains why the default configuration with
> Apache::DBI and init_db(MyApp::DB->new) does a rollback when the
> database is accessed from a new db (in the helper) though this db should
> share the dbh with the db I do the begin_work and commit on.

I have a guess.  Looking at the new code in Apache::DBI, I see that it
now tries to reset the state of the $dbh every time you call
connect().  This probably breaks the begin_work() state.

I'm not sure why this was added, since it seems like this only needs
to happen in the cleanup handler, not on every connect call.  I'll
talk to the maintainer about it.

Meanwhile, try commenting out the call to reset_startup_state() in
your Apache::DBI source and see if that fixes the problem.

- Perrin

-------------------------------------------------------------------------
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