|
|
@@ -184,7 +184,8 @@ abstract class Zend_Db_Adapter_Abstract
|
|
|
|
|
|
$options = array(
|
|
|
Zend_Db::CASE_FOLDING => $this->_caseFolding,
|
|
|
- Zend_Db::AUTO_QUOTE_IDENTIFIERS => $this->_autoQuoteIdentifiers
|
|
|
+ Zend_Db::AUTO_QUOTE_IDENTIFIERS => $this->_autoQuoteIdentifiers,
|
|
|
+ Zend_Db::FETCH_MODE => $this->_fetchMode,
|
|
|
);
|
|
|
$driverOptions = array();
|
|
|
|
|
|
@@ -236,6 +237,16 @@ abstract class Zend_Db_Adapter_Abstract
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if (array_key_exists(Zend_Db::FETCH_MODE, $options)) {
|
|
|
+ if (is_string($options[Zend_Db::FETCH_MODE])) {
|
|
|
+ $constant = 'Zend_Db::FETCH_' . strtoupper($options[Zend_Db::FETCH_MODE]);
|
|
|
+ if(defined($constant)) {
|
|
|
+ $options[Zend_Db::FETCH_MODE] = constant($constant);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $this->setFetchMode((int) $options[Zend_Db::FETCH_MODE]);
|
|
|
+ }
|
|
|
+
|
|
|
// obtain quoting property if there is one
|
|
|
if (array_key_exists(Zend_Db::AUTO_QUOTE_IDENTIFIERS, $options)) {
|
|
|
$this->_autoQuoteIdentifiers = (bool) $options[Zend_Db::AUTO_QUOTE_IDENTIFIERS];
|