[Dbix-class] Removing quote chars from HAVING terms?
Peter Rabbitson
rabbit+dbic at rabbit.us
Wed Apr 15 08:37:35 GMT 2009
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.
More information about the DBIx-Class
mailing list