Re: Query inside RTF

From: "Leonardo M(dot)" Ramé <l(dot)rame(at)griensu(dot)com>
To: Emanuel Calvo Franco <postgres(dot)arg(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Query inside RTF
Date: 2009-10-08 21:01:00
Message-ID: 1255035660.2739.7.camel@leonardo-laptop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2009-10-08 21:09:06 Re: Query inside RTF
Previous Message Emanuel Calvo Franco 2009-10-08 20:51:14 Re: Query inside RTF