[Dbix-class] Announcement: DBIx-Class-0.06999_02

Guillermo Roditi groditi at gmail.com
Mon Jun 12 16:20:37 CEST 2006


When i did that, i changed the IF('s to if ( 1 || ....

it was still broken. all the normal stuff wortked fine but the sql maker
options were not set. i peeked in my query log to make sure...


On 6/11/06, Brandon Black <blblack at gmail.com> wrote:
>
> On 6/11/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
> > Brandon Black wrote:
> > > On 6/10/06, Guillermo Roditi <groditi at gmail.com> wrote:
> > >> Found a Bug!! it breaks some stuff on cat::model::dbic::schema
> > >>
> > >> Line 318, and 299 have the following:
> > >> if($DBIx::Class::VERSION < 0.069) {
> > >>
> > >> VERSION has a _2  which makes it text and it gets evaluated into 1
> which is
> > >>> 0.069!
> > >
> > > This isn't a DBIx::Class bug, it's a Catalyst::Model::DBIC::Schema
> > > bug, and even then, the bug only exists for the dev versions that
> > > contain "_" in their version numbers.  I'll put out a fixed Model
> > > later today.
> >
> > I think the point is that 0.06999 is *also* greater than 0.069 - so
> shouldn't
> > that code path be the intended one to follow for 069/07+ and hence be
> expected
> > to work?
> >
>
> I initially figured there was something else wrong in the Model code
> causing that, but as it turns out there was instead something wrong
> with related code (which I also wrote, so unfortunately nowhere to
> pass the blame here :) ) in DBIx::Class::Storage::DBI causing it.  So
> the total fallout now that I've committed a fix for that is:
>
> 1) Ignore the "non-numeric" warning.  It will go away on release
> versions and nothing wrong actually happens here, by sheer luck.  That
> whole if test will be going away in a future version anyways, as soon
> as DBIx::Class 0.07 series has been out in the real world for long
> enough to bump Model's dependency.
>
> 2) If you install the svn version of DBIx-Class-current (or the next
> dev release), things should work correctly.
>
> If you can't install the svn version and just want a quick hack, you
> can edit those "if $DBIx::Class::VERSION" lines and convince the Model
> that the installed version of DBIx::Class is in fact < 0.069 (so set
> them to true).
>
> -- Brandon
>
> _______________________________________________
> List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
> Wiki: http://dbix-class.shadowcatsystems.co.uk/
> IRC: irc.perl.org#dbix-class
> SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
> Searchable Archive:
> http://www.mail-archive.com/dbix-class@lists.rawmode.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060612/dcaf3120/attachment.htm 


More information about the Dbix-class mailing list