ecpg: arrays and nulls - Mailing list pgsql-interfaces

From Kuba Ouhrabka
Subject ecpg: arrays and nulls
Date
Msg-id dcnbhr$13ed$1@news.hub.org
Whole thread Raw
Responses Re: ecpg: arrays and nulls
List 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 by date:

Previous
From: ljb
Date:
Subject: Re: Problem With TCL
Next
From: "Jeff Eckermann"
Date:
Subject: Re: about postgres performance issue