Re: [RFC] Unsigned integer support.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [RFC] Unsigned integer support.
Дата
Msg-id 338.1217286800@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [RFC] Unsigned integer support.  (Gregory Stark <stark@enterprisedb.com>)
Список pgsql-hackers
Gregory Stark <stark@enterprisedb.com> writes:
> "Decibel!" <decibel@decibel.org> writes:
>> Do we really want to be making it easier for people to wrap numbers  in quotes?

> Currently wrapping numbers in quotes is really the way Postgres expects to get
> them.

Really?

regression=# select '2' + '2';
ERROR:  operator is not unique: unknown + unknown
LINE 1: select '2' + '2';                  ^
HINT:  Could not choose a best candidate operator. You might need to add explicit type casts.


We've worked really hard to get to a point where interpretation of
literals mostly behaves unsurprisingly.  I think most people would
find it surprising to think that quoting a number is the preferred
way to represent it.
        regards, tom lane


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

Предыдущее
От: Andrew Dunstan
Дата:
Сообщение: Re: WITH RECUSIVE patches 0723
Следующее
От: Robert Lor
Дата:
Сообщение: Re: Review: DTrace probes (merged version) ver_03