Postgres::renameAggregate PHP Method

renameAggregate() public method

Renames an aggregate function
public renameAggregate ( $aggrschema, $aggrname, $aggrtype, $newaggrname )
$aggrname The actual name of the aggregate
$aggrtype The actual input data type of the aggregate
$newaggrname The new name of the aggregate
    function renameAggregate($aggrschema, $aggrname, $aggrtype, $newaggrname)
    {
        /* this function is called from alterAggregate where params are cleaned */
        $sql = "ALTER AGGREGATE \"{$aggrschema}\"" . '.' . "\"{$aggrname}\" (\"{$aggrtype}\") RENAME TO \"{$newaggrname}\"";
        return $this->execute($sql);
    }
Postgres