X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1AE8AD8C73 for ; Sun, 2 Oct 2005 22:41:11 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 00625-04 for ; Mon, 3 Oct 2005 01:41:07 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by svr1.postgresql.org (Postfix) with ESMTP id 3825FD8788 for ; Sun, 2 Oct 2005 22:41:08 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EMFKI-00053D-H0; Mon, 03 Oct 2005 14:41:10 +1300 Message-ID: <43408C35.6020902@opencloud.com> Date: Mon, 03 Oct 2005 14:41:09 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jeremy LaCivita Cc: pgsql-jdbc@postgresql.org Subject: Re: Selecting on non ASCII varchars References: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com> In-Reply-To: <19B7E72C-CA44-42AE-803E-E87421EC30F9@broadrelay.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200510/4 X-Sequence-Number: 13935 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