[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-4854) Make constraint violation name extraction language neutral
Strong Liu (JIRA)
noreply at atlassian.com
Tue Oct 11 23:24:19 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Strong Liu resolved HHH-4854.
-----------------------------
Resolution: Fixed
Fix Version/s: 4.0.0.next
thanks
> Make constraint violation name extraction language neutral
> ----------------------------------------------------------
>
> Key: HHH-4854
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4854
> Project: Hibernate Core
> Issue Type: Improvement
> Components: core
> Affects Versions: 3.2.6
> Environment: Oracle 8 or later
> Reporter: Jonas Olsson
> Assignee: Strong Liu
> Fix For: 4.0.0.next
>
> Attachments: HHH-4854.patch
>
>
> The ViolatedConstraintNameExtracter of Oracle8iDialect uses the following pattern for extracting the contraint violated:
> return extractUsingTemplate( "constraint (", ") violated", sqle.getMessage() );
> and is highly error message language dependent. Changing to:
> return extractUsingTemplate( "(", ")", sqle.getMessage() );
> would eliminate this while still getting the constraint name.
--
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