-->
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.  [ 3 posts ] 
Author Message
 Post subject: Any way to avoid ANSI style joins?
PostPosted: Thu Jun 28, 2012 1:46 pm 
Newbie

Joined: Fri Jun 22, 2012 11:17 am
Posts: 3
I'm using JPA/Hibernate against an older (7.30) Informix database. I'm using the informix dialect. I'm getting syntax errors when Hibernate generates ANSI style joins like this...
Code:
SELECT blah
FROM foo LEFT OUTER JOIN bar ON foo_id = bar_id


It appears that Informix 7.30 doesn't support ANSI style joins and the SQL needs to look like this...

Code:
SELECT blah
FROM foo, bar
WHERE foo_id = bar_id


Is there anyway to get Hibernate using the Informix dialect to use "old style" joins?

Thanks!
Doc


Top
 Profile  
 
 Post subject: Re: Any way to avoid ANSI style joins?
PostPosted: Thu Aug 02, 2012 3:24 pm 
Newbie

Joined: Fri Jun 22, 2012 11:17 am
Posts: 3
I'm still struggling with this issue. Our version of Informix (7.30) doesn't support ANSI style joins. We have over 1,500 servers across the globe running this database server. So a quick upgrade is not feasible although we are looking at it as a long term solution.

I even looked through the Dialect classes to see if there was an easy change I could make to get it to use "old style" joins and I didn't see anything.

If anyone has any suggestions I'd love to hear them.


Top
 Profile  
 
 Post subject: Re: Any way to avoid ANSI style joins?
PostPosted: Fri Aug 03, 2012 4:20 am 
Newbie

Joined: Fri Aug 03, 2012 4:15 am
Posts: 2
I can't Understand This Issue Yet...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.