Explorar el Código

ZF-1816
- Fix supplied for unquoted sequence names

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@15676 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph hace 16 años
padre
commit
b60df1465f
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      library/Zend/Db/Table/Abstract.php

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

@@ -811,9 +811,9 @@ abstract class Zend_Db_Table_Abstract
          * object whose name is "<table>_<column>_seq".
          * object whose name is "<table>_<column>_seq".
          */
          */
         if ($this->_sequence === true && $this->_db instanceof Zend_Db_Adapter_Pdo_Pgsql) {
         if ($this->_sequence === true && $this->_db instanceof Zend_Db_Adapter_Pdo_Pgsql) {
-            $this->_sequence = "{$this->_name}_{$pkIdentity}_seq";
+            $this->_sequence = $this->_db->quoteIdentifier("{$this->_name}_{$pkIdentity}_seq");
             if ($this->_schema) {
             if ($this->_schema) {
-                $this->_sequence = $this->_schema . '.' . $this->_sequence;
+                $this->_sequence = $this->_db->quoteIdentifier($this->_schema) . '.' . $this->_sequence;
             }
             }
         }
         }
     }
     }