pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedAbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate
2+ messages / 2 participants
[nested] [flat]
* AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate
@ 2007-01-04 17:22 Hakan Cunier <hakanc@docuart.com.tr>
2008-02-19 06:14 ` Re: AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate Kris Jurka <books@ejurka.com>
0 siblings, 1 reply; 2+ messages in thread
From: Hakan Cunier @ 2007-01-04 17:22 UTC (permalink / raw)
To: pgsql-jdbc
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
ýd204_ . 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate
2007-01-04 17:22 AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate Hakan Cunier <hakanc@docuart.com.tr>
@ 2008-02-19 06:14 ` Kris Jurka <books@ejurka.com>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2008-02-19 06:14 UTC (permalink / raw)
To: Hakan Cunier <hakanc@docuart.com.tr>; +Cc: pgsql-jdbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2008-02-19 06:14 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 17:22 AbstracJdbc2ResultSet getColumnIndex throws missing column when using with Hibernate Hakan Cunier <hakanc@docuart.com.tr>
2008-02-19 06:14 ` Kris Jurka <books@ejurka.com>
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