From 326118234bcdd16b7db641b7e3416bbf8ba57a30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=A4=80=ED=9D=A0?= Date: Tue, 1 Apr 2025 16:36:46 +0900 Subject: [PATCH] dbms_primeidc init...1 --- extdbms/lib/Core/Model.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/extdbms/lib/Core/Model.php b/extdbms/lib/Core/Model.php index f0b76eb..8be8a29 100644 --- a/extdbms/lib/Core/Model.php +++ b/extdbms/lib/Core/Model.php @@ -136,7 +136,8 @@ abstract class Model } // public function select(mixed $columns = "*"): void { - $this->_querys["SELECT"] = "SELECT " . is_array($columns) ? implode(",", $columns) : $columns . " FROM {$this->getTable()} WHERE {$this->getWhere()}"; + $columns = is_array($columns) ? implode(",", $columns) : $columns; + $this->_querys["SELECT"] = "SELECT {$columns} FROM {$this->getTable()} WHERE {$this->getWhere()}"; } final public function join(string $table, mixed $match = null, $type = ""): void {