Ben Vinnerd wrote:
> Ben Vinnerd wrote:
>> Have you tried...
>>
>> having => \"count(me.[sectionid]) = $section_ct",
> 
> 
> You would also have to make sure $section_ct is properly quoted of
> course :)
> 

No you wouldn't. Instead you would do:

having => \"count(me.[sectionid]) = ?,
bind => [ $section_ct ],

Now to be fair it seems that the bind parameter is not documented
anywhere. Patches to ResutSet.pm welcome.

_______________________________________________
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

Reply via email to