From e95d3492e6eeec3252df05a9c17d945340587f69 Mon Sep 17 00:00:00 2001 From: Nicolas Boisselier Date: Tue, 9 Jun 2015 14:59:41 +0100 Subject: [PATCH] db.php key and default --- lib/php/db.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/php/db.php b/lib/php/db.php index a264ac16..c50ee38c 100644 --- a/lib/php/db.php +++ b/lib/php/db.php @@ -260,7 +260,12 @@ FROM pg_catalog.pg_attribute a WHERE a.attrelid = (SELECT c.oid FROM pg_catalog. foreach ($rows as $row) { - $this->fields[$row['name']]['extra'] = null; + $this->fields[$row['name']] = array( + 'extra' => null, + 'type' => null, + 'default' => null, + 'key' => null, + ); $this->fields[$row['name']]['type'] = $row['type']; -- 2.47.3