eee
This commit is contained in:
+6
-3
@@ -284,9 +284,12 @@ class SqlBuilder extends Component
|
||||
* @param array $select
|
||||
* @return string
|
||||
*/
|
||||
private function makeSelect(array $select = ['*']): string
|
||||
{
|
||||
$select = "SELECT " . implode(',', $select) . " FROM " . $this->query;
|
||||
private function makeSelect(mixed $select = ['*']): string
|
||||
{
|
||||
if (!is_array($select)) {
|
||||
$select = ['*'];
|
||||
}
|
||||
$select = "SELECT " . implode(',', $select) . " FROM " . $this->query;
|
||||
if ($this->query != "") {
|
||||
$select .= " AS " . $this->query;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user