openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mtyle...@apache.org
Subject svn commit: r781107 - /openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
Date Tue, 02 Jun 2009 18:06:06 GMT
Author: mtylenda
Date: Tue Jun  2 18:06:06 2009
New Revision: 781107

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

Modified:
    openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java

Modified: openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
URL: http://svn.apache.org/viewvc/openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java?rev=781107&r1=781106&r2=781107&view=diff
==============================================================================
--- openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
(original)
+++ openjpa/branches/1.3.x/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/jdbc/update/TestParentChild.java
Tue Jun  2 18:06:06 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