Why don't we accept exponential format for integers?

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Why don't we accept exponential format for integers?
Дата
Msg-id 4D0BB490.3030000@agliodbs.com
обсуждение исходный текст
Ответы Re: Why don't we accept exponential format for integers?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Folks,

Is there any good reason that this works:

postgres=# select ('1e+01'::numeric)::integer
postgres-# ;int4
------  10

But this doesn't?

postgres=# select '1e+01'::Integer
postgres-# ;
ERROR:  invalid input syntax for integer: "1e+01"
LINE 1: select '1e+01'::Integer

... or did we just never implement it?

--                                  -- Josh Berkus                                    PostgreSQL Experts Inc.
                        http://www.pgexperts.com
 


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

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: FOREACH-IN-ARRAY (probably for 9.2?)