-->
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: How to specify allowed query syntax & functionality?
PostPosted: Tue Jul 27, 2004 12:35 pm 
Newbie

Joined: Mon Jul 19, 2004 12:57 pm
Posts: 8
Location: UK
Hi,

I am trying to get Hibernate working nicely with Informix, and have come across several issues that are to do with Informix functionality:

1. It doesn't seem like we can put two count(distinct(x)) expressions in a single select
2. We can't use select distinct if one of the selected columns is a BLOB type
3. When using order by count(b), Informix seems much happier if you put the count expression in the select, like select a, count(b) as c ... order by c

These all crop up when running the Hibernate unit tests. What is the recommended way to deal with these kinds of restrictions? I don't see how they can be added to the dialect.

Versions:
Hibernate 2.1.4
Informix 9.4 UC2 on RedHat
JDBC 2.21JC5
JRockit 1.4.2_04

Thanks,

Marko


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 27, 2004 4:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
edit the test case to look like:

Code:
if ( !( getDialect() instanceof InformixDialect) ) { .... }



;-)


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.