Zitat von Perrin Harkins <[EMAIL PROTECTED]>:

> On Thu, 2005-12-22 at 16:00 +0100, Tobias wrote:
> > As soon as more than one parallel request is made I immediately get
> > unexplainable DBI errors like "fetch() without execute()", "DBD driver
> > has not implemented the AutoCommit attribute" or "Commands out of sync;
> > you can't run this command now". These messages do not appear when running
> > httpd in single-server mode (-X).
> 
> Most likely you are making a DBI connection during startup, putting it
> in a global, and using it from multiple child processes.  If you have
> this system running safely on another machine, figuring out what code
> you changed is a good place to start.  Apache::DBI tries to prevent
> this, but it can't stop you from putting a $dbh into a global yourself.

I'm establishing a database connection in my mod_perl handler sub routine 
making it globally available using Mason's allow_globals feature. That
always worked for me (until now :))

The weird thing is that I just rsync'd the code over from another debian
system on which the application runs just fine. The only difference
(as far as I can see) to the failing system is a debian Perl 5.8.4 (with 
threads) instead of a self-compiled threadless Perl 5.8.7. Any other ideas?
Thanks again for your help!

Toby

---------------------------------------------------
email services provided by http://www.funkreich.de

Reply via email to