#1295 - Multiple platform DbMigration generation with non-native boolean type (BIT, INTEGER etc) produces incorrect DDL for other DB Platform with native boolean

This commit is contained in:
Rob Bygrave committed 2018-03-01 12:55:22 +13:00
1 parent 0d0a3422fc
commit 6f2e1c0248
6 files changed
+78 -18

No files matched your search

@@ -3,7 +3,7 @@ package io.ebeaninternal.server.type;
/**
* Boolean ScalarType's must implement to support DDL default values etc.
*/
public interface ScalarTypeBool extends ScalarType<Boolean> {
public interface ScalarTypeBool extends ScalarType<Boolean>, ScalarTypeLogicalType {
/**
* Return the DB literal value for FALSE.
@@ -302,6 +302,11 @@ public class ScalarTypeBoolean {
super(Boolean.class, jdbcNative, jdbcType);
}
@Override
public int getLogicalType() {
return Types.BOOLEAN;
}
/**
* Return the DB literal value for false.
*/