-remove persistent connections from DB connections
This commit is contained in:
parent
e81c14c1db
commit
9bbe1d14fa
2 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
require_once(dirname(__FILE__).'/../StoredFile.php');
|
require_once(dirname(__FILE__).'/../StoredFile.php');
|
||||||
|
|
||||||
$dsn = $CC_CONFIG['dsn'];
|
$dsn = $CC_CONFIG['dsn'];
|
||||||
$CC_DBC = DB::connect($dsn, TRUE);
|
$CC_DBC = DB::connect($dsn, FALSE);
|
||||||
if (PEAR::isError($CC_DBC)) {
|
if (PEAR::isError($CC_DBC)) {
|
||||||
echo "ERROR: ".$CC_DBC->getMessage()." ".$CC_DBC->getUserInfo()."\n";
|
echo "ERROR: ".$CC_DBC->getMessage()." ".$CC_DBC->getUserInfo()."\n";
|
||||||
exit(1);
|
exit(1);
|
||||||
|
|
|
@ -76,7 +76,7 @@ if (is_null($action)) {
|
||||||
}
|
}
|
||||||
|
|
||||||
PEAR::setErrorHandling(PEAR_ERROR_RETURN);
|
PEAR::setErrorHandling(PEAR_ERROR_RETURN);
|
||||||
$CC_DBC = DB::connect($CC_CONFIG['dsn'], TRUE);
|
$CC_DBC = DB::connect($CC_CONFIG['dsn'], FALSE);
|
||||||
if (PEAR::isError($CC_DBC)) {
|
if (PEAR::isError($CC_DBC)) {
|
||||||
die($CC_DBC->getMessage());
|
die($CC_DBC->getMessage());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue