Project

General

Profile

Bug #20417 » 11076.diff

Administrator Admin, 2009-05-18 10:07

View differences:

typo3/sysext/dbal/class.ux_t3lib_db.php (working copy)
$GLOBALS['ADODB_FETCH_MODE'] = ADODB_FETCH_BOTH;
$this->handlerInstance[$handlerKey] = &ADONewConnection($cfgArray['config']['driver']);
// Set driver-specific options
if (isset($cfgArray['config']['driverOptions'])) {
foreach ($cfgArray['config']['driverOptions'] as $optionName => $optionValue) {
$optionSetterName = 'set' . ucfirst($optionName);
if (method_exists($this->handlerInstance[$handlerKey], $optionSetterName)) {
$this->handlerInstance[$handlerKey]->$optionSetterName($optionValue);
} else {
$this->handlerInstance[$handlerKey]->$optionName = $optionValue;
t3lib_div::debug($optionName);
t3lib_div::debug((int) $this->handlerInstance[$handlerKey]->$optionName);
}
}
}
if ($GLOBALS['TYPO3_CONF_VARS']['SYS']['no_pconnect']) {
$this->handlerInstance[$handlerKey]->Connect($cfgArray['config']['host'].(isset($cfgArray['config']['port']) ? ':'.$cfgArray['config']['port'] : ''),$cfgArray['config']['username'],$cfgArray['config']['password'],$cfgArray['config']['database']);
} else {
(2-2/3)