CREATE OR REPLACE FUNCTION to_number(integer)
RETURNS "numeric" AS
$BODY$
BEGIN
RETURN to_number($1, 'S99999999999999D999999');
EXCEPTION
WHEN OTHERS THEN
RETURN NULL;
END;
$BODY$
LANGUAGE 'plpgsql' IMMUTABLE;
/-- END
pgsql is telling me /-- END has a sintax error,
just to confirm, is it okay if i get rid of that line?