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