Port the \[] *_sql_bind unpacker from DBIC
[scpubgit/Q-Branch.git] / lib / SQL / Abstract / Tree.pm
index 9edc1d7..decc5ed 100644 (file)
@@ -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) {