mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - alter tests to run against Oracle
This commit is contained in:
@@ -7,6 +7,7 @@ import com.avaje.ebean.annotation.Draftable;
|
||||
import com.avaje.ebean.annotation.History;
|
||||
import com.avaje.ebean.annotation.SoftDelete;
|
||||
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.ManyToMany;
|
||||
import java.sql.Timestamp;
|
||||
@@ -34,7 +35,7 @@ public class Link extends BaseDomain {
|
||||
/**
|
||||
* Draft reset to null on publish.
|
||||
*/
|
||||
@DraftReset
|
||||
@DraftReset @Column(name = "link_comment")
|
||||
String comment;
|
||||
|
||||
/**
|
||||
|
||||
@@ -62,7 +62,8 @@ public class TestSoftDeleteBasic extends BaseTestCase {
|
||||
|
||||
List<String> loggedSql = LoggedSqlCollector.stop();
|
||||
assertThat(loggedSql).hasSize(1);
|
||||
assertThat(loggedSql.get(0)).contains("where coalesce(t0.deleted,false)=false");
|
||||
// usually where coalesce(t0.deleted,false)=false but false is 0 for Oracle etc
|
||||
assertThat(loggedSql.get(0)).contains("where coalesce(t0.deleted,");
|
||||
|
||||
assertThat(rowCountAfter).isEqualTo(rowCountBefore - 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user