| От | Alexander Reichstadt |
|---|---|
| Тема | Re: Altering column type from text to bytea |
| Дата | |
| Msg-id | 42C685A9-8322-41AD-99F4-998AE0759F9B@mac.com обсуждение исходный текст |
| Ответ на | Altering column type from text to bytea (Alexander Reichstadt <lxr@mac.com>) |
| Список | pgsql-general |
Hi,when trying to change a text column to bytea I am getting the following error:SQL error:
ERROR: column "comment" cannot be cast to type byteaIn statement:
ALTER TABLE "public"."persons" ALTER COLUMN "comment" TYPE byteaI found that others had the same issue but I found no solution for it. I made a test-table and though it was empty meaning the column of concern had only NULL values I got the same error when trying to change that text column to type bytea.Is it possible to change column types later on to bytea?ThanksAlex
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера