Skip to content

Commit

Permalink
Merge pull request #160 from hubaishan/fixpgsql
Browse files Browse the repository at this point in the history
fixBug: Creating default object from empty value in pgsql
  • Loading branch information
TheTechsTech authored Jun 10, 2019
2 parents f3d22c2 + 5fd2303 commit b5991bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Database/ez_pgsql.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit b5991bd

Please sign in to comment.