mirror of https://github.com/apache/openjpa.git
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:
parent
ae16f80278
commit
d875749226
|
@ -176,7 +176,7 @@ public class TestParentChild extends CombinatorialPersistenceTestCase {
|
|||
*/
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue