ON( now renders correctly as ON (
Matt S Trout [Fri, 6 Sep 2019 02:03:52 +0000 (02:03 +0000)]
lib/SQL/Abstract/Formatter.pm

index d9eb350..42237fa 100644 (file)
@@ -45,7 +45,7 @@ sub _fold_sql {
       $line .= $j_part;
     } else {
       if (ref($p) and $p->[1] eq '(' and $p->[-1] eq ')') {
-        push @res, $line.'('."\n";
+        push @res, $line.$join.'('."\n";
         my (undef, undef, $inner) = @$p;
         my $folded = $self->_fold_sql($indent, $indent, @$inner);
         push @res, $nl_post.$folded."\n";