[Dbix-class] Lazy Columns
Peter Rabbitson
rabbit+dbic at rabbit.us
Tue May 11 10:14:53 GMT 2010
Bill Moseley wrote:
>
>
> On Fri, May 7, 2010 at 7:25 AM, Ovid <publiustemp-dbic at yahoo.com
> <mailto:publiustemp-dbic at yahoo.com>> wrote:
>
> --- On Fri, 7/5/10, Bill Moseley <moseley at hank.org
> <mailto:moseley at hank.org>> wrote:
>
> > Still, I have wondered if DBIC should throw an exception if you
> try and
> > access a column that was not fetched from storage.
>
> I think that would be better than forgetting to check if the column
> is loaded and getting a silent failure. Still, that would be a
> backwards-incompatible change.
>
>
> True.
>
> But, case in point: I'm using DBIx::Class::Ordered and it started to
> fail today with a somewhat odd error. Turned out that "columns" had
> been modified such that the position column was no longer returned in
> the row. Ordered was assuming it was a NULL and tried to set the
> position to a value that existed and the database complained that it was
> not unique.
>
I don't see the attached test case so we can fix the bug in *Ordered*
(by making sure we have the necessary info available before we start
shuffling things around).
More information about the DBIx-Class
mailing list