"Greg Sabino Mullane" <[EMAIL PROTECTED]> writes: > CREATE OR REPLACE FUNCTION gregtest(int) RETURNS varchar > LANGUAGE sql AS $$ SELECT 'abc'::text; $$;
Hm, I'd argue that that should be rejected. SQL functions currently demand exact match between the declared return type and their final SELECT command ... wonder why this case is getting past? regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq