]> git.nbdom.net Git - nb.git/commitdiff
db.php key and default
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jun 2015 13:59:41 +0000 (14:59 +0100)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Tue, 9 Jun 2015 13:59:41 +0000 (14:59 +0100)
lib/php/db.php

index a264ac16a8ec2d654133681edeb736716a45b2bb..c50ee38ca298cf7df512bb72f166529273850725 100644 (file)
@@ -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'];