I have oracle function which I want to convert into PostgreSQL below I am mentioning the oracle function.
create or replace
FUNCTION "BOMQTYON" (M_Product_ID NUMBER, M_Warehouse_ID NUMBER,
M_Locator_ID NUMBER, LocatorType VARCHAR2)
RETURN NUMBER
AS LANGUAGE JAVA
NAME 'org.compare.sqlj.Product.bomQtyOnHold(int,int,int,java.lang.String) return java.math.BigDecimal';
I tried to create a function in PostgreSQL but it given me error on language JAVA does not exists