Commit 3ad86b60 authored by alexpott's avatar alexpott

Issue #2356991 by bzrudi71, andypost: PostgreSQL: Fix tests in search test group

parent cd57d598
...@@ -606,6 +606,8 @@ public function countQuery() { ...@@ -606,6 +606,8 @@ public function countQuery() {
if (count($this->conditions)) { if (count($this->conditions)) {
$inner->condition($this->conditions); $inner->condition($this->conditions);
} }
// PostgreSQL requires a group by condition to prevent a GROUPING ERROR.
$inner->groupBy('i.sid');
// Remove existing fields and expressions, they are not needed for a count // Remove existing fields and expressions, they are not needed for a count
// query. // query.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment