X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSQL%2FAbstract%2FTree.pm;h=7b587c5099c5387f377bdcfb5c2f22564a4861c6;hb=c01ac648e75bbbfc6d6876e90dfe3754a6008327;hp=864451a0a30371f8884c1ca04776788b5c5d04c4;hpb=6e9a377bd3915ce41ee6a7d5e8db20928f852379;p=dbsrgits%2FSQL-Abstract.git diff --git a/lib/SQL/Abstract/Tree.pm b/lib/SQL/Abstract/Tree.pm index 864451a..7b587c5 100644 --- a/lib/SQL/Abstract/Tree.pm +++ b/lib/SQL/Abstract/Tree.pm @@ -461,7 +461,6 @@ sub fill_in_placeholder { # FIXME - terrible name for a user facing API sub unparse { my ($self, $tree, $bindargs) = @_; - $self->_parenthesis_unroll($tree); $self->_unparse($tree, [@{$bindargs||[]}], 0); } @@ -472,6 +471,7 @@ sub _unparse { return ''; } + $self->_parenthesis_unroll($tree); my ($car, $cdr) = @{$tree}[0,1]; if (! defined $car or (! ref $car and ! defined $cdr) ) {