-->
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: Linux and Windows - different behavior
PostPosted: Mon Oct 11, 2010 8:28 pm 
Newbie

Joined: Fri Dec 18, 2009 2:28 pm
Posts: 7
I've run into a peculiar problem where a hql query is working as expected on Windows but does not on Linux.

Here is the query:

select distinct resource from Resource resource , ResourceOrganization ro where (resource.active=true) and (resource.published=true) and ((resource.resourcePublic=true) or ((ro.resource.id=resource.id and ro.organization.id=2) and ((ro.resource.id=resource.id and ro.forever=true) or (ro.resource.id=resource.id and current_date between ro.startDate and ro.endDate))))

Explanation: I'm fetching resources from database where they are active, published and either public or shared with an organization such that the sharing is either forever or between 2 dates.

I have the same data in both the databases (exported from Linux and imported in Windows).
On windows I get
Result size = 275

and in Linux I get
Result size = 0

I've looked at the data in Linux and I see that I should get non-zero result size.

Windows has Java 1.5 whereas Linux has Java 1.6

Any suggestions on where I should look to address this problem?

Thanks!


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.