Re: Issues with generate_series using integer boundaries

Поиск
Список
Период
Сортировка
От Thom Brown
Тема Re: Issues with generate_series using integer boundaries
Дата
Msg-id AANLkTikjPmYux5dH_U=cae8cgQ4c7d-69S86GuGJ57k5@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Issues with generate_series using integer boundaries  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Issues with generate_series using integer boundaries
Список pgsql-general
On 1 February 2011 00:36, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Thom Brown <thom@linux.com> writes:
>> Actually, those lower bound errors aren't related to generate_series,
>> but I'd still like to know why -2147483648::int4 is out of range.
>
> :: binds tighter than - (and everything else too).  Write
> (-2147483648)::int4 instead.

D'oh.  You explained this to me before.  This time I'll endeavour to
remember it.  At least that explains the problem I created for myself
with lower boundaries.

--
Thom Brown
Twitter: @darkixion
IRC (freenode): dark_ixion
Registered Linux user: #516935

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Issues with generate_series using integer boundaries
Следующее
От: Thom Brown
Дата:
Сообщение: Re: Issues with generate_series using integer boundaries