Postgres::dropAggregate PHP Method

dropAggregate() public method

Removes an aggregate function from the database
public dropAggregate ( $aggrname, $aggrtype, $cascade )
$aggrname The name of the aggregate
$aggrtype The input data type of the aggregate
$cascade True to cascade drop, false to restrict
    function dropAggregate($aggrname, $aggrtype, $cascade)
    {
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($aggrname);
        $this->fieldClean($aggrtype);
        $sql = "DROP AGGREGATE \"{$f_schema}\".\"{$aggrname}\" (\"{$aggrtype}\")";
        if ($cascade) {
            $sql .= " CASCADE";
        }
        return $this->execute($sql);
    }
Postgres