Re: ECPG doesn't return the correct length for an empty - Mailing list pgsql-bugs

From Michael Meskes
Subject Re: ECPG doesn't return the correct length for an empty
Date
Msg-id 20040627123018.GA10738@1
Whole thread Raw
In response to ECPG doesn't return the correct length for an empty  ("Hebert, Caroline" <caroline.hebert@eds.com>)
List pgsql-bugs
On Thu, Jun 24, 2004 at 02:56:04PM +0100, Hebert, Caroline wrote:
> I understand very well your answer, however, I would like to introduce
> briefly our needs and why we decided to use the "-r no_indicator" with ECPG.
> ...

I still think that you are on a risky path by misusing this feature. On
the other hand I see no reason why setting the len to 0 in case of a
NULL could be a problem for ecpg. But please keep in mind that you are
getting NULLs from the DB, not empty varchars, even if they look that
way in C.

I will commit the patch in a few minutes.

Michael

--
Michael Meskes
Email: Michael at Fam-Meskes dot De
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes@jabber.org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

pgsql-bugs by date:

Previous
From: Oleg Bartunov
Date:
Subject: Re: [GENERAL] tsearch2,pgsql 7.4.[1|2], pg_dump problem
Next
From: "PostgreSQL Bugs List"
Date:
Subject: BUG #1184: listeners not cleaned on crash