DBD-DBMaker
view release on metacpan or search on metacpan
t/40blobs.t view on Meta::CPAN
# This is a test for correct handling of BLOBS; namely $dbh->quote
# is expected to work correctly.
#
use DBI;
use tests;
print "1..$tests\n";
sub ShowBlob($) {
my ($blob) = @_;
for($i = 0; $i < 8; $i++) {
if (defined($blob) && length($blob) > $i) {
$b = substr($blob, $i*32);
} else {
$b = "";
}
printf("%08lx %s\n", $i*32, unpack("H64", $b));
}
}
( run in 0.800 second using v1.01-cache-2.11-cpan-65fba6d93b7 )