Re: Selecting on non ASCII varchars

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Jeremy LaCivita <jlacivita(at)broadrelay(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Selecting on non ASCII varchars
Date: 2005-10-03 01:41:09
Message-ID: 43408C35.6020902@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Marc Herbert 2005-10-03 09:34:07 Re: setObject(col, blob) throws PSQLException
Previous Message Jeremy LaCivita 2005-10-02 06:22:45 Selecting on non ASCII varchars