Marcel Asio <marcel.a...@redbet.com> writes: > I've started testing our applications against PostgreSQL 9.0 beta2 and found > that this function now does not work anymore(rewritten to be as small and > anonymous as possible) > CREATE TYPE test_type AS( > product text, > amount numeric(30,4) > ); > CREATE FUNCTION test_func() RETURNS SETOF test_type AS $$ > BEGIN > RETURN QUERY SELECT 'test'::text, 30.2::numeric; > END; > $$ LANGUAGE plpgsql STABLE;
You need to actually coerce the 30.2 to numeric(30,4), not just numeric. The former behavior wasn't self-consistent. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs