Re: Selecting on non ASCII varchars - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Selecting on non ASCII varchars
Date
Msg-id 43408C35.6020902@opencloud.com
Whole thread Raw
In response to Selecting on non ASCII varchars  (Jeremy LaCivita <jlacivita@broadrelay.com>)
Responses Re: Selecting on non ASCII varchars
List 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

pgsql-jdbc by date:

Previous
From: Jeremy LaCivita
Date:
Subject: Selecting on non ASCII varchars
Next
From: Marc Herbert
Date:
Subject: Re: setObject(col, blob) throws PSQLException