Merge branch 'master' of https://git.mcnd.ca/mcndave/ulmus
- Reworked the removeQueryFragment.
This commit is contained in:
commit
71de0a8ac1
2 files changed
+21
-9
No files matched your search
@@ -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)
|
||||
]);
|
||||
|
||||
Reference in new issue
Block a user