in case there were no bindargs passed
Arthur Axel "fREW" Schmidt [Thu, 9 Sep 2010 21:37:06 +0000 (21:37 +0000)]
lib/DBIx/Class/Storage/Debug/PrettyPrint.pm

index 4cae709..5472e42 100644 (file)
@@ -23,7 +23,7 @@ sub new {
 sub print {
   my $self = shift;
   my $string = shift;
-  my $bindargs = shift;
+  my $bindargs = shift || [];
 
   my $use_placeholders = !!$self->_sqlat->fill_in_placeholders;