Skip to content

Commit

Permalink
undef のとき warn がでてる
Browse files Browse the repository at this point in the history
  • Loading branch information
cho45 committed Aug 11, 2011
1 parent 78f05a4 commit c4f877c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Devel/KYTProf.pm
Expand Up @@ -45,7 +45,7 @@ use Term::ANSIColor;
sub {
my ($orig, $sth, @binds) = @_;
my $sql = $sth->{Database}->{Statement};
my $bind_info = scalar(@binds) ? '(bind: '.join(', ',@binds).')' : '';
my $bind_info = scalar(@binds) ? '(bind: '.join(', ', map { defined $_ ? $_ : 'undef' } @binds).')' : '';
return sprintf '%s %s (%d rows)', $sql, $bind_info, $sth->rows;
}
);
Expand Down

0 comments on commit c4f877c

Please sign in to comment.