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); }