From 3c699f66a99da799df54ccd33d8e49228ff805c9 Mon Sep 17 00:00:00 2001 From: zYne Date: Thu, 8 Feb 2007 22:07:11 +0000 Subject: [PATCH] --- lib/Doctrine/Connection/UnitOfWork.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/Connection/UnitOfWork.php b/lib/Doctrine/Connection/UnitOfWork.php index e53610251..c2bbea64f 100644 --- a/lib/Doctrine/Connection/UnitOfWork.php +++ b/lib/Doctrine/Connection/UnitOfWork.php @@ -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];