- Reworked the removeQueryFragment.
This commit is contained in:
mcndave committed 2021-03-01 16:31:26 +00:00
commit 71de0a8ac1
2 files changed
+21 -9

No files matched your search

+2 -1
View File
@@ -17,7 +17,7 @@ class Select extends Fragment {
protected array $fields = [];
const SQL_TOKEN = "SELECT";
public function set($fields) : self
{
$this->fields = is_array($fields) ? $fields : [ $fields ];
@@ -48,6 +48,7 @@ class Select extends Fragment {
return $this->renderSegments([
( $this->union ? 'UNION' : false ),
static::SQL_TOKEN,
( $this->distinct ? 'DISTINCT' : false ),
( $this->top ? sprintf('TOP (%s)', $this->top) : false ),
implode(', ', $this->fields)
]);