From fbd6029d4e3b631d274e6a36e71fe158a00a80a2 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Tue, 2 Nov 2010 20:23:54 -0400 Subject: [PATCH] Use column names, not numeric offsets in the postgres adapter also --- framework/Db/lib/Horde/Db/Adapter/Postgresql/Schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.11.0