make compatible with postgresql 8.2

This commit is contained in:
Carlos Ruiz 2008-11-26 14:29:07 +00:00
parent 02bb33af10
commit c06d95ce03
2 changed files with 14 additions and 18 deletions

View File

@ -107,8 +107,7 @@ BEGIN
RETURN v_Price; RETURN v_Price;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT LANGUAGE 'plpgsql' ;
COST 100;
/* /*
@ -170,7 +169,7 @@ BEGIN
RETURN v_Price; RETURN v_Price;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
@ -231,7 +230,7 @@ BEGIN
RETURN v_Price; RETURN v_Price;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
@ -259,8 +258,7 @@ BEGIN
RETURN bomQtyOnHand(Product_ID, Warehouse_ID, Locator_ID) - bomQtyReserved(Product_ID, Warehouse_ID, Locator_ID); RETURN bomQtyOnHand(Product_ID, Warehouse_ID, Locator_ID) - bomQtyReserved(Product_ID, Warehouse_ID, Locator_ID);
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT LANGUAGE 'plpgsql' ;
COST 100;
/* /*
*This file is part of Adempiere ERP Bazaar *This file is part of Adempiere ERP Bazaar
@ -288,8 +286,7 @@ BEGIN
bomQtyReservedASI(Product_ID, AttributeSetInstance_ID, Warehouse_ID, Locator_ID); bomQtyReservedASI(Product_ID, AttributeSetInstance_ID, Warehouse_ID, Locator_ID);
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT LANGUAGE 'plpgsql' ;
COST 100;
/* /*
@ -425,7 +422,7 @@ BEGIN
RETURN 0; RETURN 0;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
*This file is part of Adempiere ERP Bazaar *This file is part of Adempiere ERP Bazaar
@ -564,7 +561,7 @@ BEGIN
RETURN 0; RETURN 0;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
*This file is part of Adempiere ERP Bazaar *This file is part of Adempiere ERP Bazaar
@ -707,7 +704,7 @@ BEGIN
RETURN 0; RETURN 0;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
*This file is part of Adempiere ERP Bazaar *This file is part of Adempiere ERP Bazaar
@ -852,7 +849,7 @@ BEGIN
RETURN 0; RETURN 0;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
*This file is part of Adempiere ERP Bazaar *This file is part of Adempiere ERP Bazaar
@ -993,7 +990,7 @@ BEGIN
RETURN 0; RETURN 0;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
*This file is part of Adempiere ERP Bazaar *This file is part of Adempiere ERP Bazaar
@ -1138,7 +1135,7 @@ BEGIN
RETURN 0; RETURN 0;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
CREATE OR REPLACE FUNCTION bpartnerRemitLocation(p_C_BPartner_ID C_BPartner.C_BPartner_ID%TYPE) CREATE OR REPLACE FUNCTION bpartnerRemitLocation(p_C_BPartner_ID C_BPartner.C_BPartner_ID%TYPE)
RETURNS numeric AS $body$ RETURNS numeric AS $body$

View File

@ -184,7 +184,7 @@ BEGIN
RETURN v_TotalOpenAmt; RETURN v_TotalOpenAmt;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
@ -256,7 +256,7 @@ BEGIN
RETURN ROUND(COALESCE(v_PaymentAmt,0), 2) * v_MultiplierAP; RETURN ROUND(COALESCE(v_PaymentAmt,0), 2) * v_MultiplierAP;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT; LANGUAGE 'plpgsql' ;
/* /*
@ -308,8 +308,7 @@ BEGIN
RETURN v_DocumentNo; RETURN v_DocumentNo;
END; END;
$BODY$ $BODY$
LANGUAGE 'plpgsql' STABLE STRICT LANGUAGE 'plpgsql' ;
COST 100;
CREATE OR REPLACE FUNCTION nextidfunc( CREATE OR REPLACE FUNCTION nextidfunc(