public function formatHaving(Predicate $having) {
        if ($having->getParams()) {
            return sprintf($this->getClause(self::HAVING), $this->formatPredicate($having));
        }

        return '';
    }