-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Database Collation vs Java Collation
PostPosted: Fri May 21, 2004 12:03 pm 
Beginner
Beginner

Joined: Thu Mar 04, 2004 11:51 am
Posts: 34
I recognize that this is not a Hibernate problem per se, but no one is more informed than the people here on java-vs-database issues so I thought I'd give it a shot.

I am running into a problem where a query with an order-by including character fields is run. It turns out that the database seems to be running with a different collator assumption than java is, even when both database (Postgres in this case) and java are running on the same box under the same user.

This creates some annoying issues. Is there a way via Hibernate and/or JDBC to get the collation scheme used by Postgres, and use that to do String comparisons under java? I've never run into this problem before and a quick glance at documentation isn't helping.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.