Fix ID: [2478307] -CurrencyRound pgsql function not working in 353 seed

https://sourceforge.net/tracker2/index.php?func=detail&aid=2478307&group_id=176962&atid=879332
This commit is contained in:
Carlos Ruiz 2008-12-31 19:08:19 +00:00
parent 4d36e46a6e
commit 664711e084
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
-- just for postgresql

View File

@ -0,0 +1,9 @@
CREATE OR REPLACE FUNCTION round (
IN NUMERIC, -- $1 numeric
IN NUMERIC -- $2 numeric
) RETURNS NUMERIC AS
$$
BEGIN
RETURN ROUND($1, cast($2 as integer));
END;
$$ LANGUAGE plpgsql;