my $rs2 = $s->resultset('Foo')->search({
-op => [ '=', { -ident => 'outer.y' }, { -ident => 'me.x' } ]
-}, {
- with_recursive => [ outer => $rs->get_column('x')->as_query ],
});
warn ${$rs2->as_query}->[0]."\n";
my $rs2 = $s->resultset('Foo')->search({
-op => [ '=', { -ident => 'outer.y' }, { -ident => 'me.x' } ]
- }, {
- with_recursive => [ outer => $rs->get_column('x')->as_query ],
});
# (SELECT me.x, me.y, me.z FROM foo me WHERE ( outer.y = me.x ))