on H2 after 2.0 don't need column type workaround
Apparently H2 correctly reports column types via JDBC metadata since 2.0, so this workaround is unnecessary. Also add a default mapping for DECIMAL in superclass, just for completeness. cc @famod
This commit is contained in:
parent
0aff8627df
commit
d5b0c167c8
|
@ -210,6 +210,7 @@ public abstract class Dialect implements ConversionContext {
|
|||
registerColumnType( Types.FLOAT, "float($p)" );
|
||||
registerColumnType( Types.DOUBLE, "double precision" );
|
||||
registerColumnType( Types.NUMERIC, "numeric($p,$s)" );
|
||||
registerColumnType( Types.DECIMAL, "decimal($p,$s)" );
|
||||
registerColumnType( Types.REAL, "real" );
|
||||
|
||||
registerColumnType( Types.DATE, "date" );
|
||||
|
|
|
@ -122,7 +122,7 @@ public class H2Dialect extends Dialect {
|
|||
registerColumnType( Types.BIT, "boolean" );
|
||||
registerColumnType( Types.CHAR, "char($l)" );
|
||||
registerColumnType( Types.DATE, "date" );
|
||||
registerColumnType( Types.DECIMAL, buildId >= 201 ? "numeric($p,$s)" : "decimal($p,$s)" );
|
||||
registerColumnType( Types.DECIMAL, "decimal($p,$s)" );
|
||||
registerColumnType( Types.NUMERIC, buildId >= 201 ? "numeric($p,$s)" : "decimal($p,$s)" );
|
||||
registerColumnType( Types.DOUBLE, "double" );
|
||||
registerColumnType( Types.FLOAT, "float" );
|
||||
|
|
Loading…
Reference in New Issue