pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Hakan Cunier <hakanc@docuart.com.tr>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate
Date: Tue, 19 Feb 2008 01:14:13 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0802190113100.27831@leary.csoft.net> (raw)
In-Reply-To: <000301c73024$dbbc86f0$4200000a@HAKAN>
References: <000301c73024$dbbc86f0$4200000a@HAKAN>



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



view thread (2+ messages)

Message-ID: <Pine.BSO.4.64.0802190113100.27831@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0802190113100.27831@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0802190113100.27831@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, hakanc@docuart.com.tr
  Subject: Re: AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate
  In-Reply-To: <Pine.BSO.4.64.0802190113100.27831@leary.csoft.net>
  References: <000301c73024$dbbc86f0$4200000a@HAKAN> <Pine.BSO.4.64.0802190113100.27831@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox