Re: [RFC] Unsigned integer support.

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: [RFC] Unsigned integer support.
Дата
Msg-id 20080725172425.GO9891@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: [RFC] Unsigned integer support.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
Kevin Grittner escribió:
> >>> Alvaro Herrera <alvherre@commandprompt.com> wrote: 
>  
> > consider
> > 
> > alvherre=# select 0.42 + 1;
> >  ?column? 
> > ----------
> >      1.42
> > (1 ligne)
> > 
> > However, it would be neat if this behaved the same as
> > 
> > alvherre=# select '0.42' + 1;
> > ERROR:  invalid input syntax for integer: "0.42"
> > STATEMENT:  select '0.42' + 1;
>  
> I wouldn't want the former to fail.

Sorry, I was unclear.  What I meant was that both 0.42 + 1 and
'0.42' + 1 should be treated the same, and they should both produce a
numeric output.

-- 
Alvaro Herrera                                http://www.CommandPrompt.com/
The PostgreSQL Company - Command Prompt, Inc.


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: [RFC] Unsigned integer support.
Следующее
От: Andrew Dunstan
Дата:
Сообщение: Re: Do we really want to migrate plproxy and citext intoPG core distribution?