-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
Description
Hello everybody! I've been using sql-parser with postgresql. When I build the query and get the rawSql I see the following:
GROUP BY "created_at" ASC...but PostgresSQL does not accept ASC after the GROUP BY keyword. Is there a way to avoid it? Or Is there anything I'm missing here?
Above we can see the build() function located in the Components/OrderKeyword.php class. This class is used by the GROUP BY keyword and always returns:
$component->expr . ' ' . $component->typepublic static function build($component, array $options = array())
{
if (is_array($component)) {
return implode(', ', $component);
}
return $component->expr . ' ' . $component->type;
}Reactions are currently unavailable