$rhs = $self->datetime_parser->format_datetime($rhs);
my @bind = [
- ($lhs || $self->{_nested_func_lhs} || croak "Unable to find bindtype for -value $rhs"),
+ ($lhs || $self->{_nested_func_lhs} || undef),
$rhs
];
Dwarn [$schema->resultset('Artist')->search(undef, {
select => [
- { -date_diff => [second => { -dt => $date }, { -dt => $date2 }] },
- { -date_diff => [day => { -dt => $date }, { -dt => $date2 }] },
+ [ -dt_diff => [second => { -dt => $date }, { -dt => $date2 }] ],
+ [ -dt_diff => [day => { -dt => $date }, { -dt => $date2 }] ],
],
as => [qw(seconds days)],
result_class => 'DBIx::Class::ResultClass::HashRefInflator',