OPENJPA-907: Correct TestParentChild to pass on Oracle and PostgreSQL - patch provided by Ravi Palacherla

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@781104 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Milosz Tylenda 2009-06-02 18:00:30 +00:00
parent ae16f80278
commit d875749226
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ public class TestParentChild extends CombinatorialPersistenceTestCase {
*/ */
void assertPhysicalForeignKeyCreation() { void assertPhysicalForeignKeyCreation() {
String regex = "ALTER TABLE .* ADD FOREIGN KEY \\(PARENT_ID\\) " String regex = "ALTER TABLE .* ADD FOREIGN KEY \\(PARENT_ID\\) "
+ "REFERENCES Parent \\(id\\)"; + "REFERENCES Parent \\(id\\)(\\sDEFERRABLE)?";
if (getMappingDefaults().contains("restrict")) { if (getMappingDefaults().contains("restrict")) {
assertSQL(regex); assertSQL(regex);
} else { } else {