From 5f886afb5a048a90beec1f8cd5859310210fec94 Mon Sep 17 00:00:00 2001 From: Michael M Slusarz Date: Fri, 6 Aug 2010 16:03:36 -0600 Subject: [PATCH] Inserts were broken in postgres on tables with autoincrement tables. --- framework/Db/lib/Horde/Db/Adapter/Pdo/Pgsql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.11.0