diff --git a/lib/Database/ez_pgsql.php b/lib/Database/ez_pgsql.php index 4eddfe5..0e5ffea 100644 --- a/lib/Database/ez_pgsql.php +++ b/lib/Database/ez_pgsql.php @@ -204,6 +204,7 @@ private function processQueryResult(string $query, $result = null) // Take note of column info $i = 0; while ($i < @\pg_num_fields($this->result)) { + $this->col_info[$i] = new \stdClass(); $this->col_info[$i]->name = \pg_field_name($this->result, $i); $this->col_info[$i]->type = \pg_field_type($this->result, $i); $this->col_info[$i]->size = \pg_field_size($this->result, $i);