});
$sqla->clause_expanders(
- 'update.from' => $self->cb('_expand_select_clause_from'),
+ 'update.from' => $self->cb('_expand_from_list'),
'delete.using' => $self->cb('_expand_from_list'),
'insert.rowvalues' => $self->cb(sub {
+(from => $_[0]->expand_expr({ -values => $_[2] }));
$sqla->expander(cast => $self->cb('_expand_cast'));
$sqla->clause_expanders(
- "select.from", $self->cb('_expand_select_clause_from'),
+ "select.from", $self->cb('_expand_from_list'),
"update.target", $self->cb('_expand_update_clause_target'),
"update.update", $self->cb('_expand_update_clause_target'),
);
return $exp;
}
-sub _expand_select_clause_from {
- my ($self, undef, $from) = @_;
- +(from => $self->_expand_from_list(undef, $from));
-}
-
sub _expand_from_list {
my ($self, undef, $args) = @_;
if (ref($args) eq 'HASH') {