[hibernate-issues] [Hibernate-JIRA] Resolved: (HSEARCH-913) org.hibernate.search.test.embedded.EmbeddedTest#testEmbeddedToManyInSuperslass fails against MySQL with a constraint violation
Hardy Ferentschik (JIRA)
noreply at atlassian.com
Wed Sep 14 05:56:02 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-913?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik resolved HSEARCH-913.
---------------------------------------
Resolution: Fixed
> org.hibernate.search.test.embedded.EmbeddedTest#testEmbeddedToManyInSuperslass fails against MySQL with a constraint violation
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: HSEARCH-913
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-913
> Project: Hibernate Search
> Issue Type: Bug
> Components: tests
> Affects Versions: 4.0.0.Alpha2
> Reporter: Hardy Ferentschik
> Assignee: Hardy Ferentschik
> Priority: Minor
> Fix For: 4.0.0.Beta1
>
>
> {noformat}
> Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`hibernate`.`productfeature`, CONSTRAINT `FK81EF77272D4C4C2A` FOREIGN KEY (`id`) REFERENCES `productfeature` (`id`))
> at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
> at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2941)
> at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1623)
> at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1715)
> at com.mysql.jdbc.Connection.execSQL(Connection.java:3249)
> at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1268)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1541)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1455)
> at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1440)
> at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:94)
> at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:57)
> ... 57 more
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list