On Thu, Jul 05, 2007 at 12:49:38PM +1000, brett gardner wrote:
> Is there anyway to set prefetch to empty on a resultset that is created 
> elsewhere?
> 
> I have a method in my app that returns a resultset and 99% of the time I 
> want a particular relationship to be prefetched. But in one particular 
> instance I do not.
> 
> I am trying to call $rs->get_column('timestamp_entered')->min. But the 
> query is barfing because it adds the prefetched relationship fields to 
> the query.

That's a bug in the way get_column is implemented, then. If you could put
together a test file for us, I can get it fixed for the next point release.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

_______________________________________________
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/

Reply via email to