diff --git a/db/ddlutils/postgresql/functions/C_Invoice_PaidToDate.sql b/db/ddlutils/postgresql/functions/C_Invoice_PaidToDate.sql index 73fa41e929..71e77bc320 100644 --- a/db/ddlutils/postgresql/functions/C_Invoice_PaidToDate.sql +++ b/db/ddlutils/postgresql/functions/C_Invoice_PaidToDate.sql @@ -67,4 +67,4 @@ BEGIN RETURN ROUND(COALESCE(v_PaymentAmt,0), 2) * v_MultiplierAP; END; $BODY$ -LANGUAGE 'plpgsql' STABLE STRICT +LANGUAGE 'plpgsql' STABLE STRICT; diff --git a/db/ddlutils/postgresql/functions/ProductAttribute.sql b/db/ddlutils/postgresql/functions/ProductAttribute.sql index 3463eac733..34b58d2c2b 100644 --- a/db/ddlutils/postgresql/functions/ProductAttribute.sql +++ b/db/ddlutils/postgresql/functions/ProductAttribute.sql @@ -1,3 +1,5 @@ +set client_encoding='LATIN1'; + CREATE OR REPLACE FUNCTION ProductAttribute ( p_M_AttributeSetInstance_ID NUMERIC