Postgres::dropFunction PHP Method

dropFunction() public method

Drops a function.
public dropFunction ( $function_oid, $cascade )
$function_oid The OID of the function to drop
$cascade True to cascade drop, false to restrict
    function dropFunction($function_oid, $cascade)
    {
        // Function comes in with $object as function OID
        $fn = $this->getFunction($function_oid);
        $f_schema = $this->_schema;
        $this->fieldClean($f_schema);
        $this->fieldClean($fn->fields['proname']);
        $sql = "DROP FUNCTION \"{$f_schema}\".\"{$fn->fields['proname']}\"({$fn->fields['proarguments']})";
        if ($cascade) {
            $sql .= " CASCADE";
        }
        return $this->execute($sql);
    }
Postgres