Misc fixes (#1290)

This commit is contained in:
Roland Praml
2018-02-27 11:06:35 +13:00
committed by Rob Bygrave
parent ac9f3408b2
commit bb418456e3
5 changed files with 27 additions and 21 deletions
@@ -4,6 +4,9 @@ import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import io.ebean.EbeanServer;
import io.ebean.Query;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.Platform;
import org.tests.model.basic.Contact;
import org.tests.model.basic.Customer;
import org.tests.model.basic.ResetBasicData;
@@ -17,13 +20,11 @@ import static org.assertj.core.api.Assertions.assertThat;
public class TestDeleteByQuery extends BaseTestCase {
@Test
@IgnorePlatform(Platform.MYSQL)
// FIXME: MySql does not the sub query selecting from the delete table
public void test() {
EbeanServer server = Ebean.getDefaultServer();
if (server.getName().equals("mysql")) {
// MySql does not the sub query selecting from the delete table
return;
}
Query<Contact> query = server.find(Contact.class).where().eq("group.name", "NahYeahMaybe").query();