From: Hélder M. Vieira <hmv@mail.telepac.pt>
To: pgsql-sql@postgresql.org
Subject: Re: [SQL] Problema com função UPPER
Date: Tue, 20 Jun 2006 22:54:35 +0100
Message-ID: <006401c694b4$223d1390$6200a8c0@hmv02> (raw)
References: <3770ee4b0606201209q75f8f6das1ee3ce246250e5cf@mail.gmail.com>
Eduardo, creio que o problema decorre do jogo de caracteres usado...
No meu caso, uma vez que vivo em Portugal, uso o jogo LATIN9 quando crio uma
nova base de dados.
Simplificando:
CREATE DATABASE xpto
WITH OWNER = postgres
ENCODING = 'LATIN9'
TABLESPACE = pg_default;
Hélder M. Vieira
----- Original Message -----
From: Eduardo Giovany Schweigert
To: pgsql-sql@postgresql.org
Sent: Tuesday, June 20, 2006 8:09 PM
Subject: [SQL] Problema com função UPPER
Pessoal estou com um problema para usar a função Upper, pelo que parece esta
havendo uma incompatibilidade pois qd rodo o sql no linux ((Gentoo) funciona
legal, agora no windows não ta trazendo os resultados. Em ambos os casos
estou usando o Postgresql 8.1 com PgAdmin 1.4.1, o sql é o seguinte.
select * from pessoa where UPPER( dsnome ) like'ADÃO%' limit 10 no linux,
retorna as 10 linhas, no windows não
select * from pessoa where dsnome like'Adão%' limit 10 retorna as 10 linhas
tanto num qt noutro.
Agradeço qualquer ajuda....
--
Eduardo Giovany Schweigert
(51) 9183-7474
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: hmv@mail.telepac.pt
Subject: Re: [SQL] Problema com função UPPER
In-Reply-To: <006401c694b4$223d1390$6200a8c0@hmv02>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox