You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found a need for a group_by_expr because backticking of the column names was getting in the way. I wanted to do something like:
->group_by_expr("FROM_UNIXTIME(`time`, '%Y-%m')")
A super simple patch. Not sure whether it would be of interest to you:
/**
* Add an unquoted expression to the list of columns to GROUP BY
*/
public function group_by_expr($expr) {
$this->_group_by[] = $expr;
return $this;
}
The text was updated successfully, but these errors were encountered:
I found a need for a group_by_expr because backticking of the column names was getting in the way. I wanted to do something like:
A super simple patch. Not sure whether it would be of interest to you:
The text was updated successfully, but these errors were encountered: