[exo-jcr-commits] exo-jcr SVN: r3406 - jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/cas.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Nov 8 04:53:44 EST 2010
Author: dkuleshov
Date: 2010-11-08 04:53:44 -0500 (Mon, 08 Nov 2010)
New Revision: 3406
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java
Log:
EXOJCR-1038: "Some Unit Tests on DB2 related to the CAS plugin fail" fixed db2 error message parsing in accordance to a new driver
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java 2010-11-08 08:43:42 UTC (rev 3405)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/storage/value/cas/JDBCValueContentAddressStorageImpl.java 2010-11-08 09:53:44 UTC (rev 3406)
@@ -100,7 +100,7 @@
* %s must be replaced with original table name before compile Pattern.
*/
private static final String DB2_PK_CONSTRAINT_DETECT_PATTERN =
- "(.*DB2 SQL error+.*SQLCODE: -803+.*SQLSTATE: 23505+.*%s.*)+?";
+ "(.*DB2 SQL [Ee]rror+.*SQLCODE[:=].?-803+.*SQLSTATE[:=].?23505+.*JCR_VCAS_TEST.*)+?";
/**
* MYSQL_PK_CONSTRAINT_DETECT_PATTERN.
More information about the exo-jcr-commits
mailing list