Skip to content

Commit

Permalink
[fix] aggregate fetchColumn() will return int value on pgsql #972
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelaon committed May 28, 2021
1 parent c33fdf8 commit b97423f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Medoo.php
Original file line number Diff line number Diff line change
Expand Up @@ -1944,7 +1944,7 @@ private function aggregate(string $type, string $table, $join = null, $column =
}

// @codeCoverageIgnoreStart
return $query->fetchColumn();
return (string) $query->fetchColumn();
}
// @codeCoverageIgnoreEnd

Expand Down

0 comments on commit b97423f

Please sign in to comment.