Explorar el Código

ZF-8571: Zend_Validate_Db_Abstract to respect adapter setting for autoQuoteIdentifiers

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22224 44c647ce-9c0f-0410-b52a-842ac1e357ba
bittarman hace 15 años
padre
commit
2a555cae18
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      library/Zend/Validate/Db/Abstract.php

+ 2 - 2
library/Zend/Validate/Db/Abstract.php

@@ -278,10 +278,10 @@ abstract class Zend_Validate_Db_Abstract extends Zend_Validate_Abstract
          */
         $select = new Zend_Db_Select($this->_adapter);
         $select->from($this->_table, array($this->_field), $this->_schema)
-               ->where($this->_adapter->quoteIdentifier($this->_field).' = ?', $value);
+               ->where($this->_adapter->quoteIdentifier($this->_field, true).' = ?', $value);
         if ($this->_exclude !== null) {
             if (is_array($this->_exclude)) {
-                $select->where($this->_adapter->quoteIdentifier($this->_exclude['field']).' != ?', $this->_exclude['value']);
+                $select->where($this->_adapter->quoteIdentifier($this->_exclude['field'], true).' != ?', $this->_exclude['value']);
             } else {
                 $select->where($this->_exclude);
             }