Message:
The following issue has been closed.
Resolver: Gavin King
Date: Fri, 5 Sep 2003 7:39 AM
I'm rejecting this because it should be correctly considered to be a MySQL bug that is best worked-around using a UserType. It is _quite_ incorrect for Hibernate to interpret the empty string "" as an actual space character " ".
Just use a UserType. Thats what its there for!
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-313
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-313
Summary: CharacterType throws NullpointerException on empty characters
Type: Bug
Status: Closed
Priority: Major
Resolution: REJECTED
Project: Hibernate2
Components:
core
Assignee:
Reporter: Klaus Zimmermann
Created: Fri, 5 Sep 2003 6:40 AM
Updated: Fri, 5 Sep 2003 7:39 AM
Environment: mysql, mysql-connector-java-2.0.14
Description:
Some databases (i.e. MySql) seem to trim whitespaces under certain conditions. This leads to an empty String in CharacterType.get(ResultSet rs, String name) being provided by the ResultSet which passes the Null check and causes the NullPointer Exception in the str.charAt(0).
Patch attached.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|