Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id B506C9FA4D6 for ; Thu, 4 Jan 2007 13:52:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 37150-06 for ; Thu, 4 Jan 2007 13:51:40 -0400 (AST) X-Greylist: delayed 00:29:15.944572 by SQLgrey-1.7.4 Received: from yaprak.net (mail.yaprak.net [212.174.163.55]) by postgresql.org (Postfix) with ESMTP id 65E299FA4EE for ; Thu, 4 Jan 2007 13:51:38 -0400 (AST) Received: from HAKAN [85.105.69.116] by yaprak.net with ESMTP (SMTPD-8.20) id A8CC0C30; Thu, 04 Jan 2007 19:26:36 +0200 From: "Hakan Cunier" To: Subject: AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate Date: Thu, 4 Jan 2007 19:22:06 +0200 Message-ID: <000301c73024$dbbc86f0$4200000a@HAKAN> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C73035.9F4556F0" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AccwJNtFlCyKL54tSOOTifH9iW1i0w== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=BAYES_50, HTML_MESSAGE X-Spam-Level: X-Archive-Number: 200701/19 X-Sequence-Number: 16384 This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C73035.9F4556F0 Content-Type: text/plain; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable Hello, =20 We have a table named as DYSMESSAGES (ID number, FROM varchar(100)...) =20 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. =20 Our jvm Works on Jboss / Windows XP Pro Turkish / Turkish Regional = Settings =20 Hibernate throws exception as no column found named as ID204_ in this resultset. =20 When we change regional settings to English (U.S.A) NO PROBLEM AT ALL. =20 Then we looked at AbstracJdbc2ResultSet class's getColumnIndex method. = It uses toLowerCase(). So problem is that. It should use toLowerCase(Locale.ENGLISH). =20 Because The field returned from PostgreSql 8.2 is id204_ And toLowerCase() = result is id204_ The field that hibernate requested is ID204_ And toLowerCase() result is =FDd204_ . Because in Turkish I not means small i. The problem is that. =20 Dear jdbc-driver developer, can you help us about this problem. =20 Thank you in advance, Hakan Cunier =20 =20 ------=_NextPart_000_0004_01C73035.9F4556F0 Content-Type: text/html; charset="iso-8859-9" Content-Transfer-Encoding: quoted-printable

Hello,

 

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…

 

When we change regional settings to English (U.S.A) = NO PROBLEM AT ALL.

 

Then we looked at AbstracJdbc2ResultSet class’s getColumnIndex method. It uses toLowerCase(). So problem is that. It = should use toLowerCase(Locale.ENGLISH).

 

Because

The field returned from PostgreSql 8.2 is id204_ And toLowerCase() result is id204_

The field that hibernate requested is ID204_ And toLowerCase() result is =FDd204_ . Because in Turkish I not means small = i. The problem is that.

 

Dear jdbc-driver developer, can you help us about = this problem.

 

Thank you in advance,

Hakan Cunier

 

 

------=_NextPart_000_0004_01C73035.9F4556F0--