projects
/
scpubgit/Q-Branch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Port the \[] *_sql_bind unpacker from DBIC
[scpubgit/Q-Branch.git]
/
lib
/
SQL
/
Abstract
/
Tree.pm
diff --git
a/lib/SQL/Abstract/Tree.pm
b/lib/SQL/Abstract/Tree.pm
index
9edc1d7
..
decc5ed
100644
(file)
--- a/
lib/SQL/Abstract/Tree.pm
+++ b/
lib/SQL/Abstract/Tree.pm
@@
-325,6
+325,8
@@
sub new {
sub parse {
my ($self, $s) = @_;
+ return [] unless defined $s;
+
# tokenize string, and remove all optional whitespace
my $tokens = [];
foreach my $token (split $tokenizer_re, $s) {