pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Jeremy LaCivita <jlacivita@broadrelay.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Selecting on non ASCII varchars
Date: Mon, 03 Oct 2005 14:41:09 +1300
Message-ID: <43408C35.6020902@opencloud.com> (raw)
In-Reply-To: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com>
References: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com>

Jeremy LaCivita wrote:

> PreparedStatement pst = conn.prepareStatement("SELECT * from mytable  m
> where m.title ~* ?");

If you use direct equality (=), does it work?

There have been comments on pgsql-bugs recently that some areas of the
backend code (case insensitive comparison and regexp) do not work
correctly in all cases when multibyte encodings are used. You might want
to repost to -bugs if basic equality works correctly.

Do you have a selfcontained testcase we can try? In particular we need
to know the actual column values and regexp patterns you have problems with.

-O



view thread (7+ messages)  latest in thread

Message-ID: <43408C35.6020902@opencloud.com>
Permalink:  ../43408C35.6020902@opencloud.com/
Also on:    postgresql.org/message-id/43408C35.6020902@opencloud.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, jlacivita@broadrelay.com
  Subject: Re: Selecting on non ASCII varchars
  In-Reply-To: <43408C35.6020902@opencloud.com>
  References: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com> <43408C35.6020902@opencloud.com>

* 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