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

Jonas Olsson (JIRA) noreply at atlassian.com
Wed Jan 27 10:53:32 EST 2010


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.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list