-->
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: i don't konw wether it is a little bug of StringType
PostPosted: Mon Jan 05, 2004 2:50 am 
Beginner
Beginner

Joined: Sat Nov 01, 2003 6:14 am
Posts: 30
you can see below:

i try to save some Text String in Mysql , and the first Step in hibernate:

Code:
DEBUG [2004-01-05 14:42:21,152] net.sf.hibernate.impl.Printer  - net.magician.business.forumnuke.views.PostContent{postContentID=27636, notes=null, content=FN 代码
直接插入
提示插入
帮助信息 , subject=test, ip=127.0.0.1, post=Post#27636}


you can see , 'content' column has the right content with perfect RETURN

and next step :

Code:
DEBUG [2004-01-05 14:42:24,336] net.sf.hibernate.type.TextType  - returning 'FN 代码\r
直接插入\r
提示插入\r
帮助信息 ' as column: content0_


something strange happened , all ENTER was added a '\r'!!!

what's the problem?

any help is high appreciated!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 2:55 am 
Beginner
Beginner

Joined: Sat Nov 01, 2003 6:14 am
Posts: 30
forgive me

more detail:

Application Server is Tomcat 4.1.29

Operation System is Windows 2000 English Professional with Region is China

DataBase is Mysql 4.0

Hibernate 2.1 final release


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 2:08 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Probably a JDBC dirver issue. Hibernate does nothing to strings. Search the forum, It reminds me something

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 05, 2004 11:57 pm 
Beginner
Beginner

Joined: Sat Nov 01, 2003 6:14 am
Posts: 30
that's quite right!!!

i change to oracle jdbc , and then the bug is disappear

thank you , epbernard!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 06, 2004 1:46 am 
Beginner
Beginner

Joined: Sat Nov 01, 2003 6:14 am
Posts: 30
and for mysql

you can use 3.10 deployment release to solve this , too


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.