Re: [bug-Class-DBI@xx.xxxx.xxx: [cpan #6434] LiveObject caching may return results from other DBs when using custom db_Main]

[prev] [thread] [next] [Date index for 2004/06/27]

From: Tim Bunce
Subject: Re: [bug-Class-DBI@xx.xxxx.xxx: [cpan #6434] LiveObject caching may return results from other DBs when using custom db_Main]
Date: 20:39 on 27 Jun 2004
On Sun, Jun 27, 2004 at 02:20:31PM +0100, Tony Bowden wrote:
> On Fri, May 28, 2004 at 10:26:22AM +0100, Tim Bunce wrote:
> > Here's an untested patch that also addresses [cpan #6435]
> > +       return join "\030", $class, map { $_ . "\032" . $data->{$_} }
> > +                       sort @primary_columns;
> > -               $obj_key = join "|", $class, map { $_ . '=' . $data->{$_} }
> > -                       sort @primary_columns;
> 
> The rest of it is fine, but switching the | and = to \030 and \032 makes
> t/02-Film.t fail with:
> 
> not ok 89 - Removing from object_index and retrieving again gives new
> object
> #     Failed test (/home/aegis/CDBI/baseline/t/02-Film.t at line 337)
> #     '139937508'
> #         ne
> #     '139937508'

That was fixed with the later version of the patch.

Tim.

Re: [bug-Class-DBI@xx.xxxx.xxx: [cpan #6434] LiveObject caching may return results from other DBs when using custom db_Main]
Tim Bunce 20:39 on 27 Jun 2004

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