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

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

From: Tim Bunce
Subject: Re: Class::DBI::Factory and Apache::DBI don't play nice
Date: 13:58 on 22 Nov 2004
On Sun, Nov 21, 2004 at 09:21:52PM +0000, William Ross wrote:
> On 21 Nov 2004, at 03:12, Perrin Harkins wrote:
> 
> >William Ross wrote:
> >>The version of CDF that's on CPAN isn't up to date with Perrin's 
> >>object cache. You need to add a:
> >>$Class::DBI::Weaken_Is_Available = 0;     # disables unique-object 
> >>stash
> >
> >Why is that?  Because the object index is class data but CDF is 
> >changing the database underneath?  Maybe we could incorporate a unique 
> >identifier for the database connection into the object index key.
> 
> Exactly that, yes. And an arbitrary connection-identifier would suit 
> CDF's way of doing things very well, but perhaps it would be simpler 
> just to route everything through an object_index accessor that can be 
> overridden?

See my earlier patches that add a _live_object_key method.
You can override that to use whatever key string you want for an object.

Tim.

(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

Re: Class::DBI::Factory and Apache::DBI don't play nice
Tim Bunce 13:58 on 22 Nov 2004

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