my $r = ref;
if (!$r) { $_ }
elsif ($r eq 'ARRAY') {
- my ($sql, @b) = @{$self->_flatten_structure($_)};
+ my ($code, @b) = @{$self->_flatten_structure($_)};
push @bind, @b;
- $sql;
+ $code;
}
elsif ($r eq 'HASH') { push @bind, $_; () }
else { die "_flatten_structure can't handle ref type $r for $_" }