Msql-Mysql-modules
view release on metacpan or search on metacpan
tests/pNET.mtest view on Meta::CPAN
die "Need \$test_dsn being set in lib.pl.\n";
}
if ($dbdriver eq 'Ingres') {
$hostname = $ENV{'II_HOST'} || $ENV{'PNET_HOST'} || 'localhost';
} else {
$hostname = $ENV{'PNET_HOST'} || 'localhost';
}
TryToConnect($hostname, $test_dsn, $test_user, $test_password);
$dsn = "DBI:pNET:hostname=$hostname:port=3334";
$@ = '';
eval "use Crypt::DES";
if (!$@) {
$dsn .= ":key=0123456789abcdef:cipher=DES";
$cipherDef .= " encryption DES\n"
. " key 0123456789abcdef\n"
. " encryptModule Crypt::DES\n";
eval "use Crypt::IDEA";
if (!$@) {
$dsn .= ":userkey=0123456789abcdef0123456789abcdef"
. ":usercipher=IDEA";
$cipherDef .= " $test_user encrypt=\"Crypt::IDEA,IDEA,"
. "0123456789abcdef0123456789abcdef\"\n"
}
}
$test_dsn = "$dsn:dsn=DBI:$dbdriver:test";
( run in 0.227 second using v1.01-cache-2.11-cpan-9a3d99fc6dc )