From: Michael M Slusarz Date: Fri, 6 Aug 2010 22:03:36 +0000 (-0600) Subject: Inserts were broken in postgres on tables with autoincrement tables. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=5f886afb5a048a90beec1f8cd5859310210fec94;p=horde.git Inserts were broken in postgres on tables with autoincrement tables. --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Pdo/Pgsql.php b/framework/Db/lib/Horde/Db/Adapter/Pdo/Pgsql.php index 4e35c573c..ff741a4b5 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Pdo/Pgsql.php +++ b/framework/Db/lib/Horde/Db/Adapter/Pdo/Pgsql.php @@ -149,7 +149,7 @@ class Horde_Db_Adapter_Pdo_Pgsql extends Horde_Db_Adapter_Pdo_Base if ($this->supportsInsertWithReturning()) { if (!$pk) list($pk, $sequenceName) = $this->pkAndSequenceFor($table); if ($pk) { - $id = $this->selectValue($sql.' RETURNING '.$this->quoteColumnName($pk)); + $id = $this->selectValue($sql.' RETURNING '.$this->quoteColumnName($pk), $arg1, $arg2); return $id; } }