Skip site navigation (1) Skip section navigation (2)

ecpg: arrays and nulls

From: Kuba Ouhrabka <kuba(at)comgate(dot)cz>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: ecpg: arrays and nulls
Date: 2005-08-02 08:40:23
Message-ID: dcnbhr$13ed$ (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces

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

Next:From: Jeff EckermannDate: 2005-08-03 00:25:40
Subject: Re: about postgres performance issue
Previous:From: ljbDate: 2005-08-01 02:21:13
Subject: Re: Problem With TCL

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group