Conditions | 2 |
Paths | 2 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | public function groupConcat (string $delimiter = ',') { |
||
55 | $delimiter = $this->db->quote($delimiter); |
||
56 | if ($this->db->isSQLite()) { |
||
57 | return Text::factory($this->db, "GROUP_CONCAT({$this},{$delimiter})"); |
||
58 | } |
||
59 | return Text::factory($this->db, "GROUP_CONCAT({$this} SEPARATOR {$delimiter})"); |
||
60 | } |
||
97 | } |