Inserts were broken in postgres on tables with autoincrement tables.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Aug 2010 22:03:36 +0000 (16:03 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 6 Aug 2010 22:07:57 +0000 (16:07 -0600)
framework/Db/lib/Horde/Db/Adapter/Pdo/Pgsql.php

index 4e35c57..ff741a4 100644 (file)
@@ -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;
             }
         }