1
0
mirror of synced 2025-03-20 06:53:55 +03:00
This commit is contained in:
zYne 2007-02-08 22:07:11 +00:00
parent 6f4c3c20c7
commit 3c699f66a9

View File

@ -326,7 +326,8 @@ class Doctrine_Connection_UnitOfWork extends Doctrine_Connection_Module implemen
$this->conn->insert($table->getTableName(), $array);
if (empty($seq) && count($keys) == 1 && $keys[0] == $table->getIdentifier()) {
if (empty($seq) && count($keys) == 1 && $keys[0] == $table->getIdentifier() &&
$table->getIdentifierType() != Doctrine_Identifier::NORMAL) {
if (strtolower($this->conn->getName()) == 'pgsql') {
$seq = $table->getTableName() . '_' . $keys[0];