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

Поиск
Список
Период
Сортировка
От
Тема Re: Why don't we accept exponential format for integers?
Дата
Msg-id 816A162DFA20D547AAE6C05FD3CFFAC605BA57DE50@MX06A.corp.emc.com
обсуждение исходный текст
Ответ на Re: Why don't we accept exponential format for integers?  (Josh Berkus <josh@agliodbs.com>)
Список pgsql-hackers
> > 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.
> 

Isn't this a case of an explicit cast?  Shouldn't our answer to 1.234e+1::Integer be the same as CAST(1234e+1 AS
Integer)?
Which is legal ISO SQL, as far as I can see.

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

Предыдущее
От: Marti Raudsepp
Дата:
Сообщение: Re: Why don't we accept exponential format for integers?
Следующее
От: Josh Berkus
Дата:
Сообщение: Re: Why don't we accept exponential format for integers?