-->
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: SQL Server 2000 fetching Clob Data
PostPosted: Tue Jun 15, 2004 9:48 am 
Newbie

Joined: Wed Jun 09, 2004 3:57 am
Posts: 3
Hi again,

I try to retrieve some objects, which contains a clob data field, via hibernate from my database. I an SQL Server 2000. I can fetch the data while the clob field is not filled, I can store data if I create some clob data first and store it on the database. But I can't get my stored data again if the clob field is set with data.
For me it seems the jdbc driver is not handling the clob data correct. What can I do?

Anyone got an awesome idea?

Thx in advance for your help...

Quote:
INFO: no JNDI name configured
Hibernate: select scalegroup0_.IDSCALEGROUP as x0_0_ from T_SCALEGROUPS scalegroup0_
Hibernate: select scalegroup0_.IDSCALEGROUP as IDSCALEG1_0_, scalegroup0_.SCG_NAME as SCG_NAME0_, scalegroup0_.SCG_MEMO as SCG_MEMO0_, sc
group0_.SCG_TYPE as SCG_TYPE0_, scalegroup0_.CHANGEDAT as CHANGEDAT0_, scalegroup0_.CHANGEDBY as CHANGEDBY0_, scalegroup0_.CREATEDAT as C
TEDAT0_, scalegroup0_.CREATEDBY as CREATEDBY0_ from T_SCALEGROUPS scalegroup0_ where scalegroup0_.IDSCALEGROUP=?
15.06.2004 15:38:09 net.sf.hibernate.util.JDBCExceptionReporter logExceptions
WARNUNG: SQL Error: 0, SQLState: HY000
15.06.2004 15:38:09 net.sf.hibernate.util.JDBCExceptionReporter logExceptions
SCHWERWIEGEND: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data conversion.
15.06.2004 15:38:10 net.sf.hibernate.util.JDBCExceptionReporter logExceptions
WARNUNG: SQL Error: 0, SQLState: HY000
15.06.2004 15:38:10 net.sf.hibernate.util.JDBCExceptionReporter logExceptions
SCHWERWIEGEND: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data conversion.
15.06.2004 15:38:10 net.sf.hibernate.JDBCException <init>
SCHWERWIEGEND: could not load: [com.hoellehuettner.persistence.ScaleGroup#4]
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Unsupported data conversion.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseData.unsupportedConversion(Unknown Source)
at com.microsoft.jdbc.base.BaseData.getClob(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.getClob(Unknown Source)
at com.microsoft.jdbc.base.BaseResultSet.getClob(Unknown Source)
at org.apache.commons.dbcp.DelegatingResultSet.getClob(DelegatingResultSet.java:319)
at net.sf.hibernate.type.ClobType.get(ClobType.java:32)
at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:62)
at net.sf.hibernate.type.NullableType.nullSafeGet(NullableType.java:53)


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.