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: Tony Bowden
Subject: Re: [bug-Class-DBI@xx.xxxx.xxx: [cpan #6434] LiveObject caching may return results from other DBs when using custom db_Main]
Date: 13:20 on 27 Jun 2004
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'

Tony

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

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