Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public BaseDB2Platform() {
this.supportsNativeJavaTime = false;
this.truncateTable = "truncate table %s reuse storage ignore delete triggers immediate";
this.likeClauseRaw = "like ?";
this.existsWithCaseWhen = true;
this.existsFromClause = " from sysibm.sysdummy1";
this.sqlLimiter = new AnsiSqlRowsLimiter();

this.dbIdentity.setSupportsGetGeneratedKeys(true);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package io.ebean.platform.db2;

import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertTrue;

class DB2PlatformTest {

@Test
void existsWithCaseWhen_trueForDB2() {
DB2LuwPlatform platform = new DB2LuwPlatform();

assertTrue(platform.existsWithCaseWhen());
assertEquals(" from sysibm.sysdummy1", platform.existsFromClause());
}
}
Loading