projects
/
dbsrgits/SQL-Abstract.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5e5cbf5
)
Warnfree tests
Peter Rabbitson [Wed, 24 Nov 2010 16:44:40 +0000 (17:44 +0100)]
lib/SQL/Abstract/Tree.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Abstract/Tree.pm
b/lib/SQL/Abstract/Tree.pm
index
0db1757
..
17454dc
100644
(file)
--- a/
lib/SQL/Abstract/Tree.pm
+++ b/
lib/SQL/Abstract/Tree.pm
@@
-545,7
+545,7
@@
sub _parenthesis_unroll {
for my $child (@{$ast->[1]}) {
# the current node in this loop is *always* a PAREN
- if (not ref $child or not $child->[0] eq 'PAREN') {
+ if (! ref $child or ! @$child or $child->[0] ne 'PAREN') {
push @children, $child;
next;
}