Closed Oscarato closed 3 years ago
Describe the bug In array group, medoo show the next error: "Object of class Medoo\Raw could not be converted to string" $filter['GROUP'] = [ Medoo::raw('MONTH(d.start)') ];
I fixed on file Medoo.php on line 878:
foreach ($GROUP as $column => $value) { if ($raw = $this->buildRaw($value, $map)) { $stack[] = $raw; }else{ $stack[] = $this->columnQuote($value); } }
I don't have write permissions
Information
Detail Code $filter['GROUP'] = [ Medoo::raw('MONTH(d.start)') ];
Expected output Data array
Just use with raw object directly.
$where['GROUP'] => Medoo::raw('MONTH(d.start)')
Describe the bug In array group, medoo show the next error: "Object of class Medoo\Raw could not be converted to string" $filter['GROUP'] = [ Medoo::raw('MONTH(d.start)') ];
I fixed on file Medoo.php on line 878:
foreach ($GROUP as $column => $value) { if ($raw = $this->buildRaw($value, $map)) { $stack[] = $raw; }else{ $stack[] = $this->columnQuote($value); } }
I don't have write permissions
Information
Detail Code $filter['GROUP'] = [ Medoo::raw('MONTH(d.start)') ];
Expected output Data array