Re: function returning array

Поиск
Список
Период
Сортировка
От Dennis
Тема Re: function returning array
Дата
Msg-id courier.407E9639.000006B0@wolverine.lercnetworks.com
обсуждение исходный текст
Ответ на Re: function returning array  (Joe Conway <mail@joeconway.com>)
Список pgsql-sql
Joe Conway writes: 

>> dennis'#                 pParsed         varchar[];
> 
> Make that last line:
>                            pParsed         varchar[] := ''{}''; 
> 
> That initializes pParsed to an *empty* array. Otherwise pParsed is NULL, 
> and when you attempt to extend a NULL array, e.g. "pParsed[1] = ''blah''" 
> you still get NULL. 

Joe, thank you very much! It makes much sense now that you tell me, but it 
was obviously not something I thought of. 

Dennis
pg-user a t calico-consulting dot com


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

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: function returning array
Следующее
От: Dimitar Georgievski
Дата:
Сообщение: Update is very slow on a bigger table