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

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

From: Alexander =?iso-8859-1?Q?Gr=E4fe?=
Subject: Re: Class::DBI::Factory and Apache::DBI don't play nice
Date: 08:13 on 20 Nov 2004
On Fri, Nov 19, 2004 at 05:49:41PM -0500, Perrin Harkins wrote:

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

Thanks for the help. It turned out to be a stupid error on my part:

The CDF docs say to add the following method to your base class:
sub factory { return BrickBlog::Factory->instance(); }
but I instead used
sub factory { return BrickBlog::Factory->instance(@_); }

which caused extra factories to be created with ids like '1', '2' or
the name of the class. Using the correct method, everything works like a
charm, with or without Apache::DBI.

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