[Dbix-class] Announcing DBIx::Class 0.08198

Bill Moseley moseley at hank.org
Thu Aug 2 15:03:05 GMT 2012


On Thu, Aug 2, 2012 at 6:25 AM, Arthur Axel 'fREW' Schmidt <frioux at gmail.com
> wrote:

> Any chance we could get an ETA on this test?  the 0.08199 release is
> blocking on it.
>

I tried briefly when the problem first showed up but was not able to
reproduce in a simple test outside of my app.   Do you know what triggers
it?  That might help me build up a failing case.   I'll try to look again
over the weekend when I have a break from work.



>
> On 08/01/2012 09:36 AM, Arthur Axel 'fREW' Schmidt wrote:
> > Bill,
> >
> > Could you please write a test that fails on 0.08198 but passes on
> > 0.08198_01?  DBIC has a quite fully fleshed out test schema so I doubt
> > it should be difficult.  We *do* want to add the features in eventually
> > that were taken out in the dev rel so unless we get tests for these
> > regressions they will regress again :)
> >
> > (I know this is a near copy paste of a previous message, but the issues
> > may be subtly different)
> >
> > On 07/14/2012 05:53 PM, Bill Moseley wrote:
> >> On Tue, Jul 10, 2012 at 7:59 PM, fREW Schmidt <frioux at gmail.com> wrote:
> >>
> >>>     * Fixes
> >>>         - Fix complex has_many prefetch with resultsets not selecting
> >>> identity
> >>>           columns from the root result source
> >>>
> >> I'm wondering if this is related to a problem I'm seeing in this versi=
on
> >> where a column listed in _inflated_column is undefined.
> >>
> >>
> >> I've upgraded to SQL::Abstract 1.73 for both versions of DBIC below.
> >>
> >> In 0.08196 I don't see the problem (I can't upgraded to .08197).
> >>
> >> In 0.08198 what happens is I end up with a row with an _inflated_column
> >> with the column undef.
> >> In  0.08196 _inflated_column is a row object.
> >>
> >> For example, if I'm modeling school work -- if a class has many
> >> assignments, and an assignment has many papers, then:
> >>
> >>
> >> my $paper =3D $schema->resultset( 'Paper' )->search(
> >>     { 'me.id' =3D> $id },
> >>     {
> >>         prefetch =3D> [
> >>             { assignment =3D> 'class' },
> >>         ],
> >>     }
> >> )->first;
> >>
> >> my $assignment =3D $paper->assignment;
> >> warn Dumper $assignment->{_inflated_column};
> >>
> >> print $assignment->class->id;
> >>
> >>
> >> # in .08198 $assignment->{_inflated_column}{class} is undefined
> >> # in .08196 $assignment->{_inflated_column}{class} is a class row
> object.
> >>
> >>
> >> Which results in:
> >>
> >> $VAR1 =3D {
> >>           'class' =3D> undef
> >>         };
> >> Can't call method "id" on an undefined value ....
> >>
> >>
> >> If I revert to 96 then "class" references a ::Result::Class object.
> >>
> >>
> >> Is this a know issue?
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> >> IRC: irc.perl.org#dbix-class
> >> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> >> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
> >>
>
>
>
> _______________________________________________
> List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/
> Searchable Archive:
> http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk
>



-- =

Bill Moseley
moseley at hank.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120802/d94=
146e0/attachment.htm


More information about the DBIx-Class mailing list