Postgres::changeAggregateSchema PHP Method

changeAggregateSchema() public method

Changes the schema of an aggregate function
public changeAggregateSchema ( $aggrname, $aggrtype, $newaggrschema )
$aggrname The name of the aggregate
$aggrtype The input data type of the aggregate
$newaggrschema The new schema for the aggregate
    function changeAggregateSchema($aggrname, $aggrtype, $newaggrschema)
    {
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($aggrname);
        $this->fieldClean($newaggrschema);
        $sql = "ALTER AGGREGATE \"{$f_schema}\".\"{$aggrname}\" (\"{$aggrtype}\") SET SCHEMA  \"{$newaggrschema}\"";
        return $this->execute($sql);
    }
Postgres