> create function pilpot(calle) returns integer as '
> declare
> c alias for $1;
> n integer;
> begin
> insert into v_direcci�n(calle) values (c);
> get diagnostics n = result_oid;
> return n;
> end;
> ' language 'plpgsql';
>
> ------------------------------------------------------------------
>
> I get an error when creating function of type:
>
> ERROR: ProcedureCreate: arg type 'calle' is not defined
calle is a field name right? It's probably complaining at
pilpot(calle) since calle in that case is supposed to be a
type name.