my $rs;
-TODO: {
+{
local $TODO = 'bind args order needs fixing (semifor)';
# First, the simple cases...
->search({}, $where_bind);
is ( $rs->count, 1, 'where/bind last' );
+
+ # and the complex case
+ local $TODO = 'bind args order needs fixing (semifor)';
+ $rs = $schema->resultset('CustomSql')->search({}, { bind => [ 1999 ] })
+ ->search({ 'artistid' => 1 }, {
+ where => \'title like ?',
+ bind => [ 'Spoon%' ] });
+ is ( $rs->count, 1, '...cookbook + chained search with extra bind' );
}
{
);
}
-TODO: {
- local $TODO = 'bind args order needs fixing (semifor)';
- $rs = $schema->resultset('Complex')->search({}, { bind => [ 1999 ] })
- ->search({ 'artistid' => 1 }, {
- where => \'title like ?',
- bind => [ 'Spoon%' ] });
- is ( $rs->count, 1, '...cookbook + chained search with extra bind' );
-}
-
done_testing;