I try to get this function running. When I use pgadmin and manually call this function with
SELECT calculate_something(7)
or SELECT common.calculate_something(7)
ERROR: function calculate_something(integer) doesn't exist
hint no function matches the given name and argument types
(translated from german)
I already tried to cast the call SELECT calculate_something(cast(7 as bigint));
What is wrong with that function or cast? :/
CREATE OR REPLACE FUNCTION common.calculate_something(id bigint)
RETURNS real AS
$BODY$
DECLARE
some_value_out REAL := 20;
BEGIN
-- I already removed that part for bug fixing and return a constant value (20)
RETURN some_value_out;
END;
$BODY$
LANGUAGE plpgsql VOLATILE;