Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 37E912E0038 for ; Tue, 19 Feb 2008 02:14:18 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 41027-04 for ; Tue, 19 Feb 2008 02:14:15 -0400 (AST) Received: from mail63.csoft.net (leary.csoft.net [205.205.214.5]) by postgresql.org (Postfix) with SMTP id 4EE112E003B for ; Tue, 19 Feb 2008 02:14:15 -0400 (AST) Received: (qmail 8098 invoked by uid 1112); 19 Feb 2008 06:14:14 -0000 Date: Tue, 19 Feb 2008 01:14:13 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Hakan Cunier cc: pgsql-jdbc@postgresql.org Subject: Re: AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate In-Reply-To: <000301c73024$dbbc86f0$4200000a@HAKAN> Message-ID: References: <000301c73024$dbbc86f0$4200000a@HAKAN> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200802/139 X-Sequence-Number: 18346 On Thu, 4 Jan 2007, Hakan Cunier wrote: > We have a table named as DYSMESSAGES (ID number, FROM varchar(100)...) > > We use hibernate with postgresql-jdbc-8.2-504 driver and PostgreSQLDialect. > Our hql is "from Dysmessages". > > Hibernate convert this hql to "select dysmessage0.ID as ID204_, > dysmessage0.FROM as FROM204_ from DYSMESSAGES dysmessage0" native sql > format. > > Our jvm Works on Jboss / Windows XP Pro Turkish / Turkish Regional Settings > > Hibernate throws exception as no column found named as ID204_ in this > resultset. > > Then we looked at AbstracJdbc2ResultSet class's getColumnIndex method. It > uses toLowerCase(). So problem is that. It should use > toLowerCase(Locale.ENGLISH). > Fixed in CVS and backpatched to 8.0. Kris Jurka