Zend Framework

Invalid sequence name with postgres

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.10.7
  • Fix Version/s: 1.10.8
  • Component/s: Zend_Db_Table
  • Labels:
    None

Description

Hi,

I've found bug in class Zend_Db_Table_Abstract in build sequence name with non-public schema.

When I try insert row to table pages in schema admin, I've got exception:

  • Zend_Db_Statement_Exception
  • SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema "admin"" does not exist

Exception occour on this query:
"SELECT NEXTVAL('"admin"""."""pages_pid_seq"')"

When I removed quoting it works.
Line 907-909 in Zend_Db_Table_Abstract:
$this->sequence = $this->_name . '' . $pkIdentity . '_seq';
if ($this->_schema) { $this->_sequence = $this->_schema . '.' . $this->_sequence; }

Activity

Hide
Ramon Henrique Ornelas added a comment -

Fixed in ZF-10257.

Thanks by your report.

Show
Ramon Henrique Ornelas added a comment - Fixed in ZF-10257. Thanks by your report.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: