db3->handle->selectcol_arrayref("select count(*) from aaa"),
[ 0 ]);
my $h2 = $tdb3->connect;
isnt($h2, $tdb3->handle);
is_deeply($h2->selectcol_arrayref("select count(*) from aaa"), [ 0 ]);
ok($
st'
, cluster_dir => $td });
isa_ok($test_db, 'Test::TempDatabase');
$test_db->create_cluster;
isnt(-f "$td/postgresql.conf", undef);
eval { $test_db->connect('template1'); };
like($@, qr#$td#);
"# $ENV{HOME}\n";
exit;
}
if ($<) {
is(Test::TempDatabase->find_postgres_user, $<);
} else {
isnt(Test::TempDatabase->find_postgres_user, $<);
}
SKIP: {
skip "Should be root to run this test", 4