Hibernate SVN: r21011 - core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/dialect.
by hibernate-commits@lists.jboss.org
Author: stliu
Date: 2012-01-28 20:44:24 -0500 (Sat, 28 Jan 2012)
New Revision: 21011
Modified:
core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java
Log:
JBPAPP-7998 Apply JBPAPP-7294 (HHH-4854) to EAP 5.1.3
Modified: core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java
===================================================================
--- core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java 2012-01-10 09:25:55 UTC (rev 21010)
+++ core/branches/Branch_3_3_2_GA_CP/core/src/main/java/org/hibernate/dialect/Oracle8iDialect.java 2012-01-29 01:44:24 UTC (rev 21011)
@@ -375,7 +375,7 @@
public String extractConstraintName(SQLException sqle) {
int errorCode = JDBCExceptionHelper.extractErrorCode(sqle);
if ( errorCode == 1 || errorCode == 2291 || errorCode == 2292 ) {
- return extractUsingTemplate( "constraint (", ") violated", sqle.getMessage() );
+ return extractUsingTemplate( "(", ")", sqle.getMessage() );
}
else if ( errorCode == 1400 ) {
// simple nullability constraint