[Dbix-class] DBIx HAVING and COUNT error

Rajeev Prasad rp.neuli at yahoo.com
Sat Sep 3 01:38:26 GMT 2016


DBIx error in webserver log:
[cgi:error] [pid 29640] ... AH01215: Can't locate object method "HAVING" via package "COUNT" (perhaps you forgot to load "COUNT"?)

the query:
my $obj_rs = $schema->resultset('itemList')->serach(
                { t_id => { -in => [ $tStr ] }},
                {
                    group_by => [ qw(i_id) ],
                    HAVING COUNT('t_id') = $tCount
                }
            );

currently database has no records which match the query. but i was not expecting such an error.
what is wrong in my statement?
thank you.Rajeev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20160903/7a99420b/attachment.htm>


More information about the DBIx-Class mailing list