Skip to content

Commit 0fcd6b2

Browse files
committed
Make sure select doesn't pick the same fields
1 parent 77749ea commit 0fcd6b2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/Pecee/Pixie/QueryBuilder/Adapters/BaseAdapter.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,10 @@ protected function setSelectStatement(array &$statements, array &$bindings): boo
579579
}
580580
}
581581

582+
if (isset($statements['selects'])) {
583+
$statements['selects'] = array_unique($statements['selects']);
584+
}
585+
582586
return $hasDistincts;
583587
}
584588

0 commit comments

Comments
 (0)