-remove persistent connections from DB connections

This commit is contained in:
Martin Konecny 2011-12-13 17:16:45 -05:00
parent e81c14c1db
commit 9bbe1d14fa
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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());
} }