Heng Sin Low 2008-12-26 07:01:40 +00:00
parent fc84e0825b
commit 9e0dcaaaa3
1 changed files with 9 additions and 0 deletions

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;