From c06d95ce032b2c10d89711c6b04fb9e4af0026ae Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Wed, 26 Nov 2008 14:29:07 +0000 Subject: [PATCH] make compatible with postgresql 8.2 --- .../postgresql/315_replace_pljava_for34.sql | 25 ++++++++----------- .../postgresql/316_replace_pljava_for352.sql | 7 +++--- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/migration/352a-trunk/postgresql/315_replace_pljava_for34.sql b/migration/352a-trunk/postgresql/315_replace_pljava_for34.sql index bc36be6d0e..e0d4dd3001 100644 --- a/migration/352a-trunk/postgresql/315_replace_pljava_for34.sql +++ b/migration/352a-trunk/postgresql/315_replace_pljava_for34.sql @@ -107,8 +107,7 @@ BEGIN RETURN v_Price; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT - COST 100; + LANGUAGE 'plpgsql' ; /* @@ -170,7 +169,7 @@ BEGIN RETURN v_Price; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* @@ -231,7 +230,7 @@ BEGIN RETURN v_Price; END; $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); END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT - COST 100; + LANGUAGE 'plpgsql' ; /* *This file is part of Adempiere ERP Bazaar @@ -288,8 +286,7 @@ BEGIN bomQtyReservedASI(Product_ID, AttributeSetInstance_ID, Warehouse_ID, Locator_ID); END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT - COST 100; + LANGUAGE 'plpgsql' ; /* @@ -425,7 +422,7 @@ BEGIN RETURN 0; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* *This file is part of Adempiere ERP Bazaar @@ -564,7 +561,7 @@ BEGIN RETURN 0; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* *This file is part of Adempiere ERP Bazaar @@ -707,7 +704,7 @@ BEGIN RETURN 0; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* *This file is part of Adempiere ERP Bazaar @@ -852,7 +849,7 @@ BEGIN RETURN 0; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* *This file is part of Adempiere ERP Bazaar @@ -993,7 +990,7 @@ BEGIN RETURN 0; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* *This file is part of Adempiere ERP Bazaar @@ -1138,7 +1135,7 @@ BEGIN RETURN 0; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; CREATE OR REPLACE FUNCTION bpartnerRemitLocation(p_C_BPartner_ID C_BPartner.C_BPartner_ID%TYPE) RETURNS numeric AS $body$ diff --git a/migration/352a-trunk/postgresql/316_replace_pljava_for352.sql b/migration/352a-trunk/postgresql/316_replace_pljava_for352.sql index 34cf309aad..ac2cee9fad 100644 --- a/migration/352a-trunk/postgresql/316_replace_pljava_for352.sql +++ b/migration/352a-trunk/postgresql/316_replace_pljava_for352.sql @@ -184,7 +184,7 @@ BEGIN RETURN v_TotalOpenAmt; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT; + LANGUAGE 'plpgsql' ; /* @@ -256,7 +256,7 @@ BEGIN RETURN ROUND(COALESCE(v_PaymentAmt,0), 2) * v_MultiplierAP; END; $BODY$ -LANGUAGE 'plpgsql' STABLE STRICT; +LANGUAGE 'plpgsql' ; /* @@ -308,8 +308,7 @@ BEGIN RETURN v_DocumentNo; END; $BODY$ - LANGUAGE 'plpgsql' STABLE STRICT - COST 100; + LANGUAGE 'plpgsql' ; CREATE OR REPLACE FUNCTION nextidfunc(