Re: ECPG doesn't return the correct length for an empty

Поиск
Список
Период
Сортировка
От Michael Meskes
Тема Re: ECPG doesn't return the correct length for an empty
Дата
Msg-id 20040627123018.GA10738@1
обсуждение исходный текст
Ответ на ECPG doesn't return the correct length for an empty  ("Hebert, Caroline" <caroline.hebert@eds.com>)
Список 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 по дате отправления:

Предыдущее
От: Oleg Bartunov
Дата:
Сообщение: Re: [GENERAL] tsearch2,pgsql 7.4.[1|2], pg_dump problem
Следующее
От: "PostgreSQL Bugs List"
Дата:
Сообщение: BUG #1184: listeners not cleaned on crash