Re: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"
Дата
Msg-id 4836BDDB.7000509@enterprisedb.com
обсуждение исходный текст
Ответ на BUG #4188: Array field column (varchar[]) cannot be cast to type "text"  ("Murali Doss" <murali.doss@mphasis.com>)
Список pgsql-bugs
Murali Doss wrote:
> I have a array field column varchar[] data type and i need to change to text
> data type.but it throwing following error
>
> ALTER TABLE mytable ALTER mycolumn TYPE text;
>
> ERROR: column "mycolumn" cannot be cast to type "text"
> SQL state: 42804

This is not a bug. Use "ALTER TABLE mytable ALTER mycolumn TYPE text
USING ...".

--
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

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

Предыдущее
От: "Murali Doss"
Дата:
Сообщение: BUG #4188: Array field column (varchar[]) cannot be cast to type "text"
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4187: function to_tsvector not immutable