if (com.arsdigita.db.Initializer.getDatabase() != com.arsdigita.db.Initializer.POSTGRES) {
if (com.arsdigita.db.DbHelper.getDatabase() != com.arsdigita.db.DbHelper.DB_POSTGRES) {
    public void testCascadedDeletes() {	DataObject group = getSession().create(getModelName() + ".Group");        group.set("id", new BigInteger("1"));        group.set("email", "test@group.com");        group.set("name", "Test Group");	DataAssociation members = (DataAssociation) group.get("members");	for (int i = 2; i < NUM_MEMBERS + 2; i++) {	    DataObject user = getSession().create(getModelName() + ".User");	    user.set("id", new BigInteger(Integer.toString(i)));	    user.set("email", "user" + i + "@foo.com");	    user.set("firstName", "Joe");	    user.set("lastNames", "User " + i);	    user.save();	    members.add(user);	}	group.save();	assertEquals("members not saved properly", 10, members.size());	OID oid = new OID(getModelName() + ".Group", new BigInteger("1"));    if (com.arsdigita.db.Initializer.getDatabase() !=        com.arsdigita.db.Initializer.POSTGRES) {        group = getSession().retrieve(oid);        try {            group.delete();            fail("group was successfully deleted when it should " +                 "have errored out with constraint failures");        } catch (PersistenceException e) {            // Do nothing.        }    }	group = getSession().retrieve(oid);	members = (DataAssociation) group.get("members");	DataAssociationCursor cursor = members.cursor();    cursor = members.cursor();	while (cursor.next()) {	    cursor.remove();	}	group.delete();	assertEquals("group was not properly deleted",		     null,		     getSession().retrieve(oid));    }