[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4854) Make constraint violation name extraction language neutral

Strong Liu (JIRA) noreply at atlassian.com
Tue Sep 27 12:50:39 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4854?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43737#comment-43737 ] 

Strong Liu commented on HHH-4854:
---------------------------------

https://issues.jboss.org/browse/JBPAPP-7294

> 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
>
> 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