This commit is contained in:
parent
fc84e0825b
commit
9e0dcaaaa3
|
@ -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