The following issue has been updated:
Updater: Will Glass-Husain (mailto:wg...@fo...)
Date: Tue, 15 Jul 2003 1:11 PM
Comment:
test case for this bug. call com.wgh.Test hibernate.properties data.hbm.xml log4j.properties
Changes:
Attachment changed to test.zip
---------------------------------------------------------------------
For a full history of the issue, see:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-193&page=history
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-193
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-193
Summary: ArrayIndexOutOfBoundsException with Map of composite-elements
Type: Bug
Status: Unassigned
Priority: Major
Project: Hibernate2
Versions:
2.0 final
Assignee:
Reporter: Will Glass-Husain
Created: Tue, 15 Jul 2003 1:09 PM
Updated: Tue, 15 Jul 2003 1:11 PM
Environment: Win XP, MySQL 3.23.53, JDK 1.3.1, MySQL Connector J (3.0.8)
Description:
Reference: forum msg http://sourceforge.net/forum/forum.php?thread_id=900653&forum_id=128638
Hibernate creates an invalid PreparedStatement when saving a map of composite elements. The arguments are incorrectly ordered, resulting in an ArrayIndexOutOfBoundsException with the MySql Connector J driver. There are no duplicate column names. See attached test case.
2003-07-15 11:07:59 DEBUG Flushing entities and processing referenced collections
2003-07-15 11:07:59 DEBUG Collection found: [com.wgh.Rent.amenities#1], was: [<unreferenced>]
2003-07-15 11:07:59 DEBUG Processing unreferenced collections
2003-07-15 11:07:59 DEBUG Scheduling collection removes/(re)creates/updates
2003-07-15 11:07:59 DEBUG Flushed: 0 insertions, 0 updates, 0 deletions to 1 objects
2003-07-15 11:07:59 DEBUG Flushed: 1 (re)creations, 0 updates, 0 removals to 1 collections
2003-07-15 11:07:59 DEBUG executing flush
2003-07-15 11:07:59 DEBUG Inserting collection: com.wgh.Rent.amenities#1
2003-07-15 11:07:59 DEBUG about to open: 0 open PreparedStatements, 0 open ResultSets
2003-07-15 11:07:59 DEBUG prepared statement get: insert into amenities (rent_id, category, amenity_key) values (?, ?, ?)
2003-07-15 11:07:59 DEBUG preparing statement
2003-07-15 11:07:59 DEBUG binding '1' to parameter: 1
2003-07-15 11:07:59 DEBUG binding '1' to parameter: 3
2003-07-15 11:07:59 DEBUG binding 'airconditioning' to parameter: 4
---------------------------------------------------------------------
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
|