Re: Coercion in PGSQL?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: Coercion in PGSQL?
Дата
Msg-id 20070116202706.GA29844@wolff.to
обсуждение исходный текст
Ответ на Coercion in PGSQL?  (Max Ueda <mhanzo@yahoo.com>)
Список pgsql-general
On Tue, Jan 16, 2007 at 04:14:26 -0800,
  Max Ueda <mhanzo@yahoo.com> wrote:
>
> Some results made me think of coercion between int
> types. For example, atributing a int8 value into a
> int2 variable. Does it really happen (coercion)? Is
> the int8 value automatically converted into int2, or
> an error should be returned in that case?

area=> select 99999999999::int8::int2;
ERROR:  smallint out of range

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

Предыдущее
От: Bertram Scharpf
Дата:
Сообщение: Multi-column constraint behaviour
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Multi-column constraint behaviour