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

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Why don't we accept exponential format for integers?
Дата
Msg-id 4D0BDEBD.9010904@agliodbs.com
обсуждение исходный текст
Ответ на Re: Why don't we accept exponential format for integers?  (Jeff Janes <jeff.janes@gmail.com>)
Ответы Re: Why don't we accept exponential format for integers?  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: Why don't we accept exponential format for integers?  (Marti Raudsepp <marti@juffo.org>)
Re: Why don't we accept exponential format for integers?  (<Charles.McDevitt@emc.com>)
Список pgsql-hackers
On 12/17/10 12:46 PM, Jeff Janes wrote:
> 
> And so does:
> SELECT 1.23e+01::Integer
> 
> 
>> > which I find just as dangerous as
>> > SELECT '1.234e+01'::Integer;
> 
> Add quotes to either of the other two, and then they don't work either.

Well, that's stupidly arbitrary.  If we're not going to accept
'1.234e+01'::Integer, then we shouldn't accept 1.234e+01::Integer either.

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


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: ps_status on fastpath
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: proposal : cross-column stats