From: Nicolas Boisselier Date: Tue, 9 Jun 2015 13:59:41 +0000 (+0100) Subject: db.php key and default X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=e95d3492e6eeec3252df05a9c17d945340587f69;p=nb.git db.php key and default --- 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'];