-->
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.  [ 2 posts ] 
Author Message
 Post subject: Inconsistent string sorting across different JVM's
PostPosted: Thu Dec 06, 2012 9:30 am 
Beginner
Beginner

Joined: Thu Oct 16, 2008 11:19 am
Posts: 23
Location: Norway
Hi,

I have a problem that has been troubling me for days..

Given following database table with varchar2 column:

testColumn
-----------
'1'
'2'
'R1'
'R2'

When i use criteria API and add order clause "testColumn asc" on some environments it returns order 1,2,R1,R2 which is right, but on some environments it returns R1, R2, 1, 2.

I have tried many combinations, but I found that on my local machine, by switching to JVM 1.6.0_35 it gives wrong ordering, but on 1.7.0 it gives correct ordering, but unforunatly on our TeamCity buildserver it gives wrong ordering even on 1.7.0.

We use hibernate 3.6.10. Database is Oracle 11g.

What could be wrong?


Top
 Profile  
 
 Post subject: Re: Inconsistent string sorting across different JVM's
PostPosted: Wed Dec 12, 2012 4:35 am 
Beginner
Beginner

Joined: Thu Oct 16, 2008 11:19 am
Posts: 23
Location: Norway
Not anybody knows?


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

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.