Re: Query inside RTF - Mailing list pgsql-general

From Leonardo M." Ramé
Subject Re: Query inside RTF
Date
Msg-id 1255035660.2739.7.camel@leonardo-laptop
Whole thread Raw
In response to Re: Query inside RTF  (Emanuel Calvo Franco <postgres.arg@gmail.com>)
Responses Re: Query inside RTF
List pgsql-general
On jue, 2009-10-08 at 17:51 -0300, Emanuel Calvo Franco wrote:

> part=# select * from p  where i::text ~~ $$%\\\\''f3%$$;
>     i
> ----------
>  \\\\''f3
> (1 row)
>
> I don't have any problem, wich enconding you are using?
> (select getdatabaseencoding(); )
>

Thanks, now this works:

set standard_conforming_strings = 0;

select
  idturno,
  infres::text
from turno
where
  infres::text ~~ $$%diagn\\\\'f3stico%$$;

This database has WIN1252 encoding.

--
Leonardo M. Ramé
Griensu S.A. - Medical IT Córdoba
Tel.: 0351-4247979


pgsql-general by date:

Previous
From: Emanuel Calvo Franco
Date:
Subject: Re: Query inside RTF
Next
From: Alvaro Herrera
Date:
Subject: Re: Query inside RTF