Gdn_SQLDriver::_having PHP Method

_having() protected method

This is the most basic having that adds a freeform string of text. It should be used only in conjunction with methods that properly escape the sql.
protected _having ( string $Sql ) : Gdn_SQLDriver
$Sql string The condition to add.
return Gdn_SQLDriver $this
    protected function _having($Sql)
    {
        // Figure out the concatenation operator.
        $Concat = '';
        if (count($this->_Havings) > 0) {
            $Concat = ' ' . $this->_WhereConcat . ' ';
        }
        // Revert the concat back to 'and'.
        $this->_WhereConcat = $this->_WhereConcatDefault;
        $this->_Havings[] = $Concat . $Sql;
        return $this;
    }