Re: cast problem in Postgresql 9.0.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: cast problem in Postgresql 9.0.1
Дата
Msg-id 3346.1296595901@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: cast problem in Postgresql 9.0.1  ("Joshua D. Drake" <jd@commandprompt.com>)
Список pgsql-general
"Joshua D. Drake" <jd@commandprompt.com> writes:
> On Tue, 2011-02-01 at 12:14 +0600, AI Rumman wrote:
>> I migrated my DB from Postgresql 8.1 to Postgresql 9.0.1.
>>
>> I have a table "testtab"
>> \d testtab
>> id int,
>> hours varchar
>>
>> When I execute the following:
>> select sum(hours) from testtab
>> I get cast error.
>>
> In 8.3, implicit casts were removed. You can't sum text.

You couldn't do it in previous releases, either.

            regards, tom lane

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: Book recommendation?
Следующее
От: Alban Hertroys
Дата:
Сообщение: Re: Issues with generate_series using integer boundaries