-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate unit test for MySQL JDBC driver bug
PostPosted: Thu May 18, 2006 4:16 pm 
Newbie

Joined: Wed Apr 26, 2006 10:13 am
Posts: 8
Location: Waltham, Massachusetts USA
Hibernate version: version 3.2 cr2

MySQL 4.1.19 + MySQL JDBC 3.1.12 driver :

I was trying to solve a problem with Hibernate + boolean mapped to char(1) column. I was getting an unexpected error because of a bug in the MySQL 3.1.12 driver. ResultSet.getBoolean(int index) wasn't clearing the internal null flag from the previous call to getString(int index).

The MySQL jdbc driver bug is fixed in the latest dev build.

I have a simple Hibernate unit test that recreates the problem.

Is there interest in checking in a Hibernate unit test that recreates a bug that exists in the MySQL JDBC driver?

Scott


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 6:11 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
And why do you think Hibernate developers should be concerned about bugs in MySQL drivers?

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 7:06 pm 
Newbie

Joined: Wed Apr 26, 2006 10:13 am
Posts: 8
Location: Waltham, Massachusetts USA
kgignatyev wrote:
And why do you think Hibernate developers should be concerned about bugs in MySQL drivers?


The purpose of this test would be to help ensure that the integration of Hibernate + MySQL is correct. It is currently not correct with regard to ResultSet.wasNull() being called after a call to ResultSet.getBoolean().

I think it would help Hibernate developers to have "integration tests" that verify that a backend database is working correctly with Hibernate. So, I think it is a good idea to check it in.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 18, 2006 7:26 pm 
Expert
Expert

Joined: Fri Jul 22, 2005 2:42 pm
Posts: 670
Location: Seattle, WA
IMO the integration _is_ correct and it is the bug in the some party driver that prevents the tandem from working correctly. I am afraid that if they will follow the logic they would need to test for JVM implementation bugs too. (Google for JRockit and Hibernate issues for example).

_________________
--------------
Konstantin

SourceLabs - dependable OpenSource systems


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.