From 2fc911765d4a645a493f8e189c05995a798469f6 Mon Sep 17 00:00:00 2001 From: Sebastian Podjasek Date: Mon, 27 Apr 2015 02:28:50 +0200 Subject: [PATCH] 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. --- lib/DBIx/Class/ResultSet.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DBIx/Class/ResultSet.pm b/lib/DBIx/Class/ResultSet.pm index a44a9eb52..f9d1815be 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