return $cond unless ref $full_cond;
foreach my $pk ($self->result_source->primary_columns) {
- $cond->{$pk} = { IN => $self->get_column($pk)->as_query({ skip_parens => 1 }) };
+ $cond->{$pk} = { -in => $self->get_column($pk)->as_query };
}
return $cond;
=over 4
-=item Arguments: \%opts
+=item Arguments: none
=item Return Value: \[ $sql, @bind ]
B<NOTE>: This feature is still experimental.
-The query returned will be surrounded by parentheses, e.g:
-
- ( SELECT cdid FROM cd WHERE title LIKE '%Hits%' )
-
-This behaviour can be changed by passing special options:
-
- $rs->get_column('cdid')->as_query({ skip_parens => 1 });
-
=cut
sub as_query { return shift->cursor->as_query(@_) }