DBD-Log
view release on metacpan or search on metacpan
lib/DBD/Log/Sth.pm view on Meta::CPAN
my $statement = $self->statement;
if ( $statement =~ /\?/ ) {
my @parts = split(/\?/, $statement);
for ( 0..$#parts ) {
# skip the parts that are not bound.
next if !defined $bound[$_];
# if the bound value is NaN, wrap it in quotes.
my $val = $bound[$_];
$val =~ /\D+/ && ( $val = "'$val'" );
$parts[$_] .= $val;
}
$statement = join("", @parts);
if ( ($#parts+1) < $#bound ) {
@bound = splice(@bound, $#parts+1, $#bound);
} else {
( run in 0.263 second using v1.01-cache-2.11-cpan-fd5d4e115d8 )