- Fixed a bug where withJoin() would mess with previous select() done on querybuilding

- Fixed a problem related with distinct in select whenever another select on fields was done
This commit is contained in:
Dave Mc Nicoll committed 2025-03-20 17:31:19 +00:00
1 parent bfddf84564
commit 9556dea849
2 files changed
+7 -4

No files matched your search

+1 -1
View File
@@ -59,7 +59,7 @@ class MysqlQueryBuilder extends SqlQueryBuilder
$this->push($select);
}
$select->distinct = $distinct;
$select->distinct = $select->distinct || $distinct;
return $this;
}