From: Michael J. Rubinsky Date: Wed, 3 Nov 2010 00:23:54 +0000 (-0400) Subject: Use column names, not numeric offsets in the postgres adapter also X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=fbd6029d4e3b631d274e6a36e71fe158a00a80a2;p=horde.git Use column names, not numeric offsets in the postgres adapter also --- diff --git a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php index 4cc858ae5..7126e6421 100644 --- a/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php +++ b/framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php @@ -290,8 +290,8 @@ class Horde_Db_Adapter_Postgresql_Schema extends Horde_Db_Adapter_Base_Schema // create columns from rows $columns = array(); foreach ($rows as $row) { - $columns[$row[0]] = $this->makeColumn( - $row[0], $row[2], $row[1], !(boolean)$row[3]); + $columns[$row['attname']] = $this->makeColumn( + $row['attname'], $row['adsrc'], $row['format_type'], !(boolean)$row['attnotnull']); } return $columns; }