calling functions in select

Поиск
Список
Период
Сортировка
От Jakub Ouhrabka
Тема calling functions in select
Дата
Msg-id Pine.LNX.4.33.0204240839180.15439-100000@u-pl1.ms.mff.cuni.cz
обсуждение исходный текст
Ответы Re: calling functions in select  (Jakub Ouhrabka <jouh8664@ss1000.ms.mff.cuni.cz>)
Список pgsql-general
hi,

i'd like to ask if these two pl/pgsql fragmets are always giving same
results:

1)
FOR lr_rec IN SELECT func(table.x, ...) FROM table,... WHERE ... LOOP
END LOOP;

2)
FOR lr_rec IN SELECT * FROM table,... WHERE ... LOOP
    li_x := func(lr_rec.x, ...);
END LOOP;

function func has some "side effects", e.g. inserting rows somewhere...

i think that 1) and 2) should be the same but i'd like to make sure..

thanks,

kuba



В списке pgsql-general по дате отправления:

Предыдущее
От: Hubert depesz Lubaczewski
Дата:
Сообщение: problems with non-trust authentication methods in 7.3devel?
Следующее
От: "Raymond O'Donnell"
Дата:
Сообщение: Re: delphi