Hi,

I am trying to find a function that will create a persistent connection.
Does connect_cached provide a persistent connection? From the CLI/ODBC
traces, it looks like this program connects two separate times to the
database:

$dbh1 = DBI->connect_cached("dbi:DB2:SAMPLE", "user", "pass");
$dbh1->disconnect;
$dbh2 = DBI->connect_cached("dbi:DB2:SAMPLE", "user", "pass");
$dbh2->disconnect;

How exactly does connect_cached function?

Thanks and regards,
Prashanth Meka

Reply via email to