Postgres::changeAggregateOwner PHP Method

changeAggregateOwner() public method

Changes the owner of an aggregate function
public changeAggregateOwner ( $aggrname, $aggrtype, $newaggrowner )
$aggrname The name of the aggregate
$aggrtype The input data type of the aggregate
$newaggrowner The new owner of the aggregate
    function changeAggregateOwner($aggrname, $aggrtype, $newaggrowner)
    {
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($aggrname);
        $this->fieldClean($newaggrowner);
        $sql = "ALTER AGGREGATE \"{$f_schema}\".\"{$aggrname}\" (\"{$aggrtype}\") OWNER TO \"{$newaggrowner}\"";
        return $this->execute($sql);
    }
Postgres