Re: Why don't we accept exponential format for integers?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Why don't we accept exponential format for integers?
Дата
Msg-id 4340.1292614518@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Why don't we accept exponential format for integers?  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: Why don't we accept exponential format for integers?  (Bill Moran <wmoran@potentialtech.com>)
Re: Why don't we accept exponential format for integers?  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> postgres=# select '1e+01'::Integer
> postgres-# ;
> ERROR:  invalid input syntax for integer: "1e+01"

I have never heard of any programming system anywhere that accepts such
a syntax for integers (assuming it distinguishes integers from other
numbers at all).  I'm not excited about being the first.  Why does this
error surprise you?  It doesn't seem particularly different from arguing
that 1.000 should be considered an integer, which strikes me as a
seriously bad idea.
        regards, tom lane


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: unlogged tables vs. GIST
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: ps_status on fastpath