[Dbix-class] Re: Bind order bug, patch/test for review

Matt S Trout dbix-class at trout.me.uk
Fri Oct 12 18:28:19 GMT 2007


On Thu, Oct 11, 2007 at 09:03:00AM -0700, Marc Mims wrote:
> * Matt S Trout <dbix-class at trout.me.uk> [071003 13:00]:
> > > I'm not sure how to tackle this problem in a way that will satisfy all
> > > the tests...yet.
> > 
> > Well, TODO the tests that don't pass and chuck it into 08 trunk, at least we'll
> > know it's there then.
> 
> A potential solution to the bind order bug when using where/bind might
> be to just eliminate the need for where/bind with a -bind operator in
> SQLA.  Then:
> 
>    $rs->search({}, {
>        where => { \'YEAR(date_of_hire)=?' => { -bind => 2005 }},
>    });

Yeah, I was hoping we could add stuff like this as part of the SQLA refactor.

I've created a branch but not really started work on it, care to join me?

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list