Is there a bug in FOR i IN 1..10 LOOP (8.4.4)?

Поиск
Список
Период
Сортировка
Искать
От
Nick
Тема
Is there a bug in FOR i IN 1..10 LOOP (8.4.4)?
Дата
Msg-id
9a7e70da-e230-47c8-857b-b3df7b47b8c7@y12g2000prb.googlegroups.com
Список
Дерево обсуждения
Is there a bug in FOR i IN 1..10 LOOP (8.4.4)? Nick <nboutelier@gmail.com>
Re: Is there a bug in FOR i IN 1..10 LOOP (8.4.4)? "Rob Richardson" <Rob.Richardson@rad-con.com>
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 по дате отправления
От: Phui Hock
Дата:
От: sunpeng
Дата:
FAQ