From: Sebastian Podjasek Date: Mon, 27 Apr 2015 00:28:50 +0000 (+0200) Subject: Example syntax doesn't play with SQL::Abstract X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2fc911765d4a645a493f8e189c05995a798469f6;p=dbsrgits%2FDBIx-Class-Historic.git Example syntax doesn't play with SQL::Abstract You get errors like: "[SQL::Abstract::_assert_bindval_matches_bindtype] Fatal: bindtype 'columns' selected, you need to pass: [column_name => bind_value]". Going through their documentation it should be written like in this commit. --- diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index a44a9eb..f9d1815 100644 --- a/lib/DBIx/Class/ResultSet.pm +++ b/lib/DBIx/Class/ResultSet.pm @@ -4572,7 +4572,7 @@ E.g. or with an in-place function in which case literal SQL is required: - having => \[ 'count(employee) >= ?', 100 ] + having => \[ 'count(employee) >= ?', [ {} => 100 ] ] =head2 distinct