-->
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: Retrived data from Sybase ASE12.5 truncated.
PostPosted: Thu May 12, 2005 10:19 pm 
Newbie

Joined: Thu May 12, 2005 6:16 am
Posts: 4
Hi all,

I am using hibernate2.1.x+jboss3.0.8 with tomcat4.1.x+jdk1.4.2 in my project, but i meet a serious problem when get data from Sybase ASE 12.5.

Details:

1,Table has a column named contents, type is varchar(2048), generated from the HBM file.

...
<property column="contents" insert="true" length="2048" name="contents" not-null="false" type="string" update="true"/>
...

2,When insert a string into Sybase via hibernate, and if the length of the string is larger than 255/256bytes, only 255/256 bytes stored into DB.

3,When retrive data from that table, and if the length of the contents larger than 255/256(insert a string directly via isql console.), only 255/256 bytes retrived.

4,If I switch from Sybase to Oracle/MySQL, it works fine.

How can I solve this problem? Many thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 13, 2005 4:28 am 
Newbie

Joined: Thu May 12, 2005 6:16 am
Posts: 4
Problem has not been solved yet. Anybody suffered this problem? Is this a bug of hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Tue May 17, 2005 7:21 pm 
Newbie

Joined: Fri Dec 19, 2003 1:31 pm
Posts: 12
had you tried using type="text" instead of "string" and remove the lenght to see what happends....


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.