Re: pgsql-server/src backend/utils/adt/numutils.c ...

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: pgsql-server/src backend/utils/adt/numutils.c ...
Дата
Msg-id 200208280505.g7S55HD07623@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: pgsql-server/src backend/utils/adt/numutils.c ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: pgsql-server/src backend/utils/adt/numutils.c ...  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-committers
Tom Lane wrote:
> Bruce Momjian <pgman@candle.pha.pa.us> writes:
> > I don't even think it was ever a feature.
>
> It was certainly never documented as something that would work, unless
> you chanced to read the one comment in numutils.c.  A normal person
> would not expect an empty string to be taken as a valid representation
> of "zero".

Well, assuming we are matching atoi, it would make sense to return 0 for
'', I think.

> > Let's see if we get any pushback. We can always downgrade it to a
> > warning during beta.
>
> I agree; tighten up and wait to see if anyone yowls.

Yes, we can loosen during beta, but not tighten.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: pgsql-server/src backend/utils/adt/numutils.c ...
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql-server/src backend/utils/adt/numutils.c ...