Skip to content

Commit 552d972

Browse files
authored
Merge pull request #132 from mopagemo/master
Correct sprintf usage for trace_msg
2 parents 59c19d0 + 7b06e94 commit 552d972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DBI.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1487,7 +1487,7 @@ sub _new_sth { # called by DBD::<drivername>::db::prepare)
14871487
join "!\001", $dsn, $user, $auth, DBI::_concat_hash_sorted($attr, "=\001", ",\001", 0, 0)
14881488
};
14891489
my $dbh = $cache->{$key};
1490-
$drh->trace_msg(sprintf(" connect_cached: key '$key', cached dbh $dbh\n", DBI::neat($key), DBI::neat($dbh)))
1490+
$drh->trace_msg(sprintf(" connect_cached: key '%s', cached dbh %s\n", DBI::neat($key), DBI::neat($dbh)))
14911491
if (($DBI::dbi_debug & 0xF) >= 4);
14921492

14931493
my $cb = $attr->{Callbacks}; # take care not to autovivify

0 commit comments

Comments
 (0)