Example syntax doesn't play with SQL::Abstract ghpr/rejected/applicable_only_to_old_versions_not_covered_by_current_docs
Sebastian Podjasek [Mon, 27 Apr 2015 00:28:50 +0000 (02:28 +0200)]
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

index a44a9eb..f9d1815 100644 (file)
@@ -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