ZF-56: Zend_Db_Table insert problems with last_insert_id on postgre

Description

Zend_Db_Table insert method returns bad lastInsertId because sequence is not passed, fix:

public function insert( &$data ) { $this->db->insert( $this->_name, $data ); return $this->_db->lastInsertId( $this->_name . '' . $this->_primary . '_seq' ); }

Comments

No comments to display