mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Change test to only run with H2 (but it would also run with db's that use history table views/triggers but not with oracle total recall)
This commit is contained in:
@@ -5,6 +5,7 @@ import com.avaje.ebean.Ebean;
|
||||
import com.avaje.ebean.SqlQuery;
|
||||
import com.avaje.ebean.SqlRow;
|
||||
import com.avaje.ebean.Version;
|
||||
import com.avaje.ebeaninternal.api.SpiEbeanServer;
|
||||
import com.avaje.tests.model.converstation.User;
|
||||
import org.junit.Test;
|
||||
|
||||
@@ -18,6 +19,13 @@ public class TestHistoryInsert extends BaseTestCase {
|
||||
@Test
|
||||
public void test() {
|
||||
|
||||
SpiEbeanServer defaultServer = (SpiEbeanServer)Ebean.getDefaultServer();
|
||||
if (!"h2".equals(defaultServer.getDatabasePlatform().getName())) {
|
||||
// Oracle for example uses total recall so we can select the explicit
|
||||
// history tables as we do in this test
|
||||
return;
|
||||
}
|
||||
|
||||
User user = new User();
|
||||
user.setName("Jim");
|
||||
user.setEmail("one@email.com");
|
||||
|
||||
Reference in New Issue
Block a user