sub _run_blob_tests {
SKIP: {
-TODO: {
my ($schema, $opt) = @_;
my %binstr = ( 'small' => join('', map { chr($_) } ( 1 .. 127 )) );
$binstr{'large'} = $binstr{'small'} x 1024;
ok (try { $objs[0]->blob }||'' eq "blob:$str", 'blob inserted/retrieved correctly');
ok (try { $objs[0]->clob }||'' eq "clob:$str", 'clob inserted/retrieved correctly');
- TODO: {
+ {
local $TODO = '-like comparison on blobs not tested before ora 10 (fails on 8i)'
if $schema->storage->_server_info->{normalized_dbms_version} < 10;
}
$schema->storage->debug ($orig_debug);
-}}
+}
do_clean ($dbh);
}
}
END {
- for ($dbh) {
- next unless $_;
+ if ($dbh) {
local $SIG{__WARN__} = sub {};
- do_clean($_);
- $_->disconnect;
+ do_clean($dbh);
+ undef $dbh;
}
}