better bulk insert support
Arthur Axel "fREW" Schmidt [Sat, 23 Oct 2010 20:45:00 +0000 (20:45 +0000)]
lib/DBIx/Class/Storage/Debug/PrettyPrint.pm

index 94fcadc..5bbadf1 100644 (file)
@@ -42,8 +42,8 @@ sub print {
   my ($lw, $lr);
   ($lw, $string, $lr) = $string =~ /^(\s*)(.+?)(\s*)$/s;
 
-  return if defined $bindargs && defined $bindargs->[0] &&
-    $bindargs->[0] eq q('__BULK_INSERT__');
+  local $self->_sqlat->{fill_in_placeholders} = 0 if defined $bindargs
+    && defined $bindargs->[0] && $bindargs->[0] eq q('__BULK_INSERT__');
 
   my $use_placeholders = !!$self->_sqlat->fill_in_placeholders;