=item Arguments: none
-=item Return Value: [ $sql, @bind ]
+=item Return Value: \[ $sql, @bind ]
=back
my @args = $storage->_select_args(@{$self->{args}});
my ($sql, $bind) = $storage->_prep_for_execute(@args[0 .. 2], [@args[4 .. $#args]]);
- return [ $sql, @$bind ];
+ return \[ $sql, @$bind ];
}
=head2 next
plan tests => 4;
-my $schema = DBICTest->init_schema();
-my $art_rs = $schema->resultset('Artist');
+my $schema = DBICTest->init_schema();
+my $art_rs = $schema->resultset('Artist');
+my $cdrs = $schema->resultset('CD');
{
my $arr = $art_rs->as_query;
- my ($query, @bind) = @$arr;
+ my ($query, @bind) = @{$$arr};
is_same_sql_bind(
$query, \@bind,
{
my $arr = $art_rs->as_query;
- my ($query, @bind) = @$arr;
+ my ($query, @bind) = @{$$arr};
is_same_sql_bind(
$query, \@bind,
{
my $arr = $art_rs->as_query;
- my ($query, @bind) = @$arr;
+ my ($query, @bind) = @{$$arr};
is_same_sql_bind(
$query, \@bind,
{
my $arr = $rscol->as_query;
- my ($query, @bind) = @$arr;
+ my ($query, @bind) = @{$$arr};
is_same_sql_bind(
$query, \@bind,
);
}
+my $cdrs2 = $cdrs->search({
+ artist_id => {
+ -in => $art_rs->get_column( 'id' )->as_query,
+ },
+});
+
+my @x = $cdrs2->all;
+use Data::Dumper; warn Dumper \@x;
+__END__
+{
+ my $arr = $cdrs2->as_query;
+ my ($query, @bind) = @{$$arr};
+}
+
__END__