-->
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.  [ 5 posts ] 
Author Message
 Post subject: Informix dialect
PostPosted: Mon Jan 24, 2005 8:45 am 
Newbie

Joined: Mon May 31, 2004 10:04 am
Posts: 5
Location: Johannesburg, South Africa
Hi

I have a minor compatibility issue between hibernate and Informix.

The Informix dialect is using the SQL statement below, where I would prefer one without the "first ?" (but rather "first 1", for example). I see that DB2400 dialect does not try to use a parameter when generating the first, can the same not be done for Informix?

(i.e.

public String getLimitString(String querySelect, boolean hasOffset, int limit) {
if (hasOffset) throw new UnsupportedOperationException("informix has no offset");
return new StringBuffer( querySelect.length()+8 )
.append(querySelect)
.insert( getAfterSelectInsertPoint(querySelect), " first " +limit )
.toString();
}


)
Hibernate version: 2.1.7
Name and version of the database you are using:IBM Informix JDBC Driver for IBM Informix Dynamic Server 7.31.FD7

The generated SQL (show_sql=true):select first ? this.tt_type as tt_type0_, this.tt_group as tt_group0_, this.tt_lang as tt_lang0_, this.tt_text as tt_text0_ from tt_type_text this where this.tt_lang=? and this.tt_group=? and this.tt_type=?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 8:48 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Take a look at http://www.hibernate.org/221.html there is a lot of stuff about informix there.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 9:00 am 
Newbie

Joined: Mon May 31, 2004 10:04 am
Posts: 5
Location: Johannesburg, South Africa
I did look at that page, the one thing that I noticed there was

"Use new InformixDialect, submitted to JIRA as a patch HB-1167. Note in particular that in our tests we turned off all the "limit" functionality in the dialect, we haven't yet tracked down why this didn't work in our environment."

I looked also at CVS and saw that the latest revision 1.15 (Dec 24) has the code I want in it. Do you know when this will be included in a hibernate release?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 11:29 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
We do not give any schedule, but the next release is expected quite soon.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 11:32 am 
Newbie

Joined: Mon May 31, 2004 10:04 am
Posts: 5
Location: Johannesburg, South Africa
Thanks

I've created my own subclass of InformixDialect for now... and will use the official one when it matches what I want!


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