Re: [PgFoundry] Unsigned Data Types [1 of 2]

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PgFoundry] Unsigned Data Types [1 of 2]
Дата
Msg-id 7416.1220766930@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PgFoundry] Unsigned Data Types [1 of 2]  ("Jaime Casanova" <jcasanov@systemguards.com.ec>)
Список pgsql-patches
"Jaime Casanova" <jcasanov@systemguards.com.ec> writes:
> then the patch is right but it seems to me like that is broking the
> law of less surprise i expected -2::uint1 to be equivalent to
> (-2)::uint1 that should be at least documented, no?

See the precedence table here:
http://www.postgresql.org/docs/8.3/static/sql-syntax-lexical.html#SQL-PRECEDENCE

:: binds more tightly than -, and always has.

            regards, tom lane

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

Предыдущее
От: "Jaime Casanova"
Дата:
Сообщение: Re: [PgFoundry] Unsigned Data Types [1 of 2]
Следующее
От: "Jaime Casanova"
Дата:
Сообщение: Re: [PgFoundry] Unsigned Data Types [1 of 2]