ecpg: arrays and nulls

Поиск
Список
Период
Сортировка
От Kuba Ouhrabka
Тема ecpg: arrays and nulls
Дата
Msg-id dcnbhr$13ed$1@news.hub.org
обсуждение исходный текст
Ответы Re: ecpg: arrays and nulls
Список pgsql-interfaces
Hi,

I'd like to ask how to handle null values when fetching arrays into 
ecpg. Always I get this error:

Data read from backend is not an array in line ...

I'm using indicators and I use char * variables for array values (for 
all column types: int[], text[], bytea[]). It works when the value of 
array is not null but when it's null I get the error above.

Can null values in columns of array type be handled in more convenient 
way than using coalesce/nullif and special reserved value?

Thanks,                     Kuba


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

Предыдущее
От: ljb
Дата:
Сообщение: Re: Problem With TCL
Следующее
От: "Jeff Eckermann"
Дата:
Сообщение: Re: about postgres performance issue