s// does not return the modified string, $_ does
Arthur Axel "fREW" Schmidt [Sat, 9 Oct 2010 08:39:57 +0000 (08:39 +0000)]
lib/DBIx/Class/Storage/Debug/PrettyPrint.pm

index 5472e42..53de002 100644 (file)
@@ -28,7 +28,7 @@ sub print {
   my $use_placeholders = !!$self->_sqlat->fill_in_placeholders;
 
   # DBIC pre-quotes bindargs
-  $bindargs = [map { s/^'//; s/'$//; } @{$bindargs}] if $use_placeholders;
+  $bindargs = [map { s/^'//; s/'$//; $_ } @{$bindargs}] if $use_placeholders;
 
   my $formatted = $self->_sqlat->format($string, $bindargs) . "\n";