-->
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: Wierd JDBC exceptions on "" strings.
PostPosted: Thu Jun 09, 2005 9:59 am 
Newbie

Joined: Wed Aug 11, 2004 7:01 am
Posts: 10
Hibernate version:
3.0.3
MySQL version:
4.1.x
JDBC driver version:
3.1.8a and 3.1.7


Hi,
We have run in to a strange problem with string fields that are stored in MySQL as text. When ever we set the field to "" (empty string) we get a JDBC Exception "Invalid row count for update".

null or any other string length is ok.

Anyone else seen this? Is it hibernate or Mysql or JDBC driver?

/Kristoffer


Top
 Profile  
 
 Post subject: Re: Wierd JDBC exceptions on "" strings.
PostPosted: Thu Jun 09, 2005 10:00 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
Pugnax wrote:
Hibernate version:
3.0.3
MySQL version:
4.1.x
JDBC driver version:
3.1.8a and 3.1.7


Hi,
We have run in to a strange problem with string fields that are stored in MySQL as text. When ever we set the field to "" (empty string) we get a JDBC Exception "Invalid row count for update".

null or any other string length is ok.

Anyone else seen this? Is it hibernate or Mysql or JDBC driver?

/Kristoffer


I don't think it's Hibernate since I do this without problems using SQLServer. You might try and test it using HSQLDB or another free db to see if you get the same results.


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.