This commit is contained in:
2021-11-09 13:58:08 +08:00
parent f8718fa4de
commit 8c98ce8c7f
3 changed files with 13 additions and 9 deletions
+5 -1
View File
@@ -61,10 +61,14 @@ trait Builder
/**
* @param null $select
* @param bool $isCount
* @return string
*/
#[Pure] private function builderSelect($select = NULL): string
#[Pure] private function builderSelect($select = NULL, bool $isCount = false): string
{
if ($isCount) {
return "SELECT COUNT(*)";
}
if (empty($select)) {
return "SELECT *";
}