Re: Class::DBI::Factory and Apache::DBI don't play nice

[prev] [thread] [next] [Date index for 2004/11/19]

From: Perrin Harkins
Subject: Re: Class::DBI::Factory and Apache::DBI don't play nice
Date: 22:49 on 19 Nov 2004
On Fri, 2004-11-19 at 17:35, Alexander Gräfe wrote:
> From what I could gather from reading the list archives, this happens if
> the db handle sticks around in a closure and doesn't go out of scope.
> Could it be HTML::Mason that interferes, since Mason uses some kind of
> compilation and caching?

Not likely, since you aren't defining subs inside your Mason
components.  Ima::DBI actually uses closures on purpose, which does sort
of wreak havoc with certain aspects of Apache::DBI, but is totally
different from the problem you're describing.  I don't know anything
about Class::DBI::Factory, but I would suggest first upgrading your
Ima::DBI and Class::DBI to the latest if they are not already there.

> What's the best way to debug such a situation?

There are several tools you can use, like DBI->trace or Apache::DB.  I
suggest running your server in -X mode so you'll get the same process on
each request, and then using the debugger or shoving warn statements
into Class::DBI::Factory.

- Perrin

(message missing)

Class::DBI::Factory and Apache::DBI don't play nice
Alexander =?iso-8859-1?Q?Gr=E4fe?= 21:34 on 19 Nov 2004

Re: Class::DBI::Factory and Apache::DBI don't play nice
Alexander =?iso-8859-1?Q?Gr=E4fe?= 22:35 on 19 Nov 2004

Re: Class::DBI::Factory and Apache::DBI don't play nice
Perrin Harkins 22:49 on 19 Nov 2004

Re: Class::DBI::Factory and Apache::DBI don't play nice
Alexander =?iso-8859-1?Q?Gr=E4fe?= 08:13 on 20 Nov 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52