| От | Edson Carlos Ericksson Richter |
|---|---|
| Тема | Alter column...using failure under 9.0.4 |
| Дата | |
| Msg-id | 000801cc7b96$3e49da40$badd8ec0$@com.br обсуждение исходный текст |
| Ответы |
Re: Alter column...using failure under 9.0.4
|
| Список | pgsql-general |
Dear list,
I’ve a strange issue here. I’ve a table that I’m sure the column type is boolean. I can see the datatype is boolean on PgAdmin.
Nevertheless, when I issue this command
--------------------------------------------------------------------------------
alter table usuario alter column ativo type smallint using (case when ativo then 1 else 0 end);
--------------------------------------------------------------------------------
I get the following error:
--------------------------------------------------------------------------------
ERROR: argument of IS FALSE must be type boolean, not type smallint
********** Error **********
ERROR: argument of IS FALSE must be type boolean, not type smallint
SQL state: 42804
--------------------------------------------------------------------------------
I already run Vacuum just to be sure, but still not working.
I have a script with hundred similar lines (for other tables) without any error, just this table.
Any hints?
Edson Carlos Ericksson Richter | |
Fone: | (51) 3366-7964 |
Celular: | (51) 8585-0796 |
| |
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера
