Re: BUG #6214: can't change Column COLLATE

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: BUG #6214: can't change Column COLLATE
Дата
Msg-id 1316498337.9044.0.camel@fsopti579.F-Secure.com
обсуждение исходный текст
Ответ на Re: BUG #6214: can't change Column COLLATE  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On tis, 2011-09-20 at 00:32 -0400, Tom Lane wrote:
> 小豕 <e9320.tw@gmail.com> writes:
> > Use   ALTER TABLE item  ALTER COLUMN title TYPE character varying(2000)
> > COLLATE pg_catalog."zh_TW.euctw";
> > but, SQL state: 42704  "UTF8" "pg_catalog.zh_TW.euctw" not found
>
> I hope that's not the exact phrasing of the error message ... but
> what it's probably trying to tell you is that you can't use an EUC_TW
> based locale in a database with UTF8 encoding.  Try zh_TW.utf8.

It's usually easier to just use COLLATE "zh_TW", and it will pick up the
right encoding.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #6214: can't change Column COLLATE
Следующее
От: "eamanuel"
Дата:
Сообщение: BUG #6215: ODBC - ovelflow with the OIDs - Large Objects