Re: character varying as boolean !!! help

Поиск
Список
Период
Сортировка
От Richard Huxton
Тема Re: character varying as boolean !!! help
Дата
Msg-id 41E67B39.3050704@archonet.com
обсуждение исходный текст
Ответ на character varying as boolean !!! help  ("Francesco Andreozzi" <francesco.andreozzi@proxime.it>)
Список pgsql-bugs
Francesco Andreozzi wrote:
>
> if I try to insert something it works.... but the update no....
>
> sportellounico=# UPDATE cfp SET testo='test' AND cod_procedimento='82' where
> cod_cfp='2';
> ERROR:  invalid input syntax for type boolean: "test"

The error message is misleading you here. You want a comma not AND
above. The parser is reading that as:

UPDATE cfp SET testo=('test' AND cod_procedimento='82')

--
   Richard Huxton
   Archonet Ltd

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: character varying as boolean !!! help
Следующее
От: Tom Lane
Дата:
Сообщение: Re: rc4 and rc3, some deleted, but still needed text in the