Is there a bug in FOR i IN 1..10 LOOP (8.4.4)? - Mailing list pgsql-general

From Nick
Subject Is there a bug in FOR i IN 1..10 LOOP (8.4.4)?
Date
Msg-id 9a7e70da-e230-47c8-857b-b3df7b47b8c7@y12g2000prb.googlegroups.com
Whole thread Raw
Responses Re: Is there a bug in FOR i IN 1..10 LOOP (8.4.4)?  ("Rob Richardson" <Rob.Richardson@rad-con.com>)
List pgsql-general
CREATE FUNCTION test() RETURNS text
    LANGUAGE plpgsql
    AS $$DECLARE
  num_var TEXT;
BEGIN
  FOR i IN 1..10 LOOP
    num_var := num_var || ',' || i;
  END LOOP;
  RETURN num_var;
END;$$;

SELECT test();

returns NULL

pgsql-general by date:

Previous
From: Phui Hock
Date:
Subject: Re: How to inherit search_path from template
Next
From: sunpeng
Date:
Subject: hi, how to let the inserted tuple visible to other backend when current backend hasn't finish?