openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtyle...@apache.org
Subject svn commit: r781104 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
Date Tue, 02 Jun 2009 18:00:31 GMT
Author: mtylenda
Date: Tue Jun  2 18:00:30 2009
New Revision: 781104

URL: http://svn.apache.org/viewvc?rev=781104&view=rev
Log:
OPENJPA-907: Correct TestParentChild to pass on Oracle and PostgreSQL - patch provided by
Ravi Palacherla

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java?rev=781104&r1=781103&r2=781104&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
Tue Jun  2 18:00:30 2009
@@ -176,7 +176,7 @@
 	 */
 	void assertPhysicalForeignKeyCreation() {
         String regex = "ALTER TABLE .* ADD FOREIGN KEY \\(PARENT_ID\\) "
-		             + "REFERENCES Parent \\(id\\)";
+		             + "REFERENCES Parent \\(id\\)(\\sDEFERRABLE)?";
 		if (getMappingDefaults().contains("restrict")) {
 			assertSQL(regex);
 		} else {



Mime
View raw message