my ($self, $dq) = @_;
my ($from, $where) = @{$dq}{qw(from where)};
while (is_Where $from) {
- $where = Operator({ 'SQL.Naive' => 'and' }, [ $where, $from->{where} ]);
+ $where = Operator({ 'SQL.Naive' => 'AND' }, [ $from->{where}, $where ]);
$from = $from->{from};
}
my $keyword = (is_Group($from) ? 'HAVING' : 'WHERE');