Re: character varying as boolean !!! help - Mailing list pgsql-bugs

From Alvaro Herrera
Subject Re: character varying as boolean !!! help
Date
Msg-id 20050113125413.GB23993@dcc.uchile.cl
Whole thread Raw
In response to character varying as boolean !!! help  ("Francesco Andreozzi" <francesco.andreozzi@proxime.it>)
List pgsql-bugs
On Thu, Jan 13, 2005 at 12:18:12PM +0100, Francesco Andreozzi wrote:

Hi,

>                                       Tabella "public.cfp"
>      Colonna      |       Tipo        |                       Modificatori
> ------------------+-------------------+----------------------------------------------------------
>  cod_cfp          | integer           | not null default
> nextval('public.cfp_cod_cfp_seq'::text)
>  cod_procedimento | bigint            |
>  testo            | character varying |
>
>
> 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"

Do you have any trigger or rule on this table?

--
Alvaro Herrera (<alvherre[@]dcc.uchile.cl>)
Oh, oh, las chicas galacianas, lo harán por las perlas,
¡Y las de Arrakis por el agua! Pero si buscas damas
Que se consuman como llamas, ¡Prueba una hija de Caladan! (Gurney Halleck)

pgsql-bugs by date:

Previous
From: laurie.burrow@powerconv.alstom.com
Date:
Subject: Possible problem with pg_get_viewdef on Postgres V8.0.0 rc4
Next
From: Richard Huxton
Date:
Subject: Re: character varying as boolean !!! help