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:
parent
4d36e46a6e
commit
664711e084
|
@ -0,0 +1 @@
|
|||
-- just for postgresql
|
|
@ -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;
|
Loading…
Reference in New Issue