mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-17 22:56:28 +00:00
#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:
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.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user