Re: recursive function needs static variable

Поиск
Список
Период
Сортировка
От Nabil Sayegh
Тема Re: recursive function needs static variable
Дата
Msg-id 1056548190.15395.2.camel@billy
обсуждение исходный текст
Ответ на Re: recursive function needs static variable  (Joe Conway <mail@joeconway.com>)
Список pgsql-novice
Am Mit, 2003-06-25 um 06.35 schrieb Joe Conway:
> >>Add the counter variable to build_tuplestore_recursively()'s arguments.
> >>Initialize it in connectby(), and increment it every time
> >>BuildTupleFromCStrings() is called.
> >
> > Already tried that, but due to the recursion the incrementation steps
> > get undone each time the build_tuplestore_recursively returns :).
> > => The serial is nomore UNIQUE
>
> Not if you pass it by reference.

Oh, my stupid :) Of course.

thx again
--
 e-Trolley Sayegh & John, Nabil Sayegh
 Tel.: 0700 etrolley /// 0700 38765539
 Fax.: +49 69 8299381-8
 PGP : http://www.e-trolley.de


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

Предыдущее
От: Kaarel
Дата:
Сообщение: Re: Name limitation question
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Name limitation question