-->
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: Interbase - BigDecimal problem ?
PostPosted: Mon Mar 08, 2004 12:37 pm 
Newbie

Joined: Mon Mar 08, 2004 12:04 pm
Posts: 5
I'm using hibernate successfully with MySQL

When I try to connect remotely to an Interbase database (IB 5.6, with Interclient 2.01 from Firebird) I've got a message :

GRAVE: [interclient] Unsupported feature: Using a JDBC 2 method which is not yet supported.
See API reference for exception interbase.interclient.DriverNotCapableException

8 mars 2004 17:34:44 net.sf.hibernate.JDBCException <init>

GRAVE: Could not load object

interbase.interclient.DriverNotCapableException: [interclient] Unsupported feature: Using a JDBC 2 method which is not yet supported.
See API reference for exception interbase.interclient.DriverNotCapableException

at interbase.interclient.ResultSet.getBigDecimal(Unknown Source)

at net.sf.hibernate.type.BigDecimalType.get(BigDecimalType.java:23)


in fact, the method getBigDecimal() seems to be unimplemented in this release of the jdbc driver (which is actually recommanded in hibernate specs)

what can I do ? any idea ?

thanks in advance


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 12:44 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
JDBC Support for Interbase is not particularly great. I think there is a Borland supported version of Interclient, probably use this one? Interclient is no longer supported by the Firebird team, the only developed JDBC driver is JayBird.

But we can't really do anything about this, either find a better JDBC driver, use a better database (Firebird) or don't use BigDecimals.


Top
 Profile  
 
 Post subject: another driver ?
PostPosted: Mon Mar 08, 2004 1:44 pm 
Newbie

Joined: Mon Mar 08, 2004 12:04 pm
Posts: 5
I've tried with the original 1.51 interclient driver, with 1.6, but the problem is still the same ; borland 2.0 driver works only with jdk1.2, so I cannot execute it, but I think the lack of implementation is still the same for bigdecimal

I can't obtain the "new" 2.5 driver because it isn't opensource and available only with interbase 6

Unfortunately, I cannot switch to firebird database

Can I use Jaybird driver with my old interbase 5.6 ?

what can I use to avoid BigDecimal type ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 2:32 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
You can not use something which requires jdk 1.1 but you manage to use Hibernate? How?

I don't think there is a solution, you could try JayBird, but I am not sure it is compatible. Otherwise, don't use types which translate to a BigDecimal when accessing the Database.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 3:04 pm 
Newbie

Joined: Mon Mar 08, 2004 12:04 pm
Posts: 5
borland interclient 2.0 works ONLY with jdk1.2, not with 1.1, and not with my jdk1.4 !!! (neither with 1.3, by the way)

as I said, my test program works fine with hibernate and mysql, I only tried to redirect the db within interbase

what a great driver, with a lot of methods not implemented, and a great compatibility as you see.....


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.