Просмотр исходного кода

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 16 лет назад
Родитель
Сommit
b60df1465f
1 измененных файлов с 2 добавлено и 2 удалено
  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".
          */
         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) {
-                $this->_sequence = $this->_schema . '.' . $this->_sequence;
+                $this->_sequence = $this->_db->quoteIdentifier($this->_schema) . '.' . $this->_sequence;
             }
         }
     }