For my memory...
Changing the above to the following worked for the particular tests in question:
switch ( code ) { ... case Types.FLOAT: case Types.NUMERIC: case Types.REAL: return "decimal(" + Column.DEFAULT_PRECISION + "," + Column.DEFAULT_SCALE + ")"; ...
where Column defines:
public static final int DEFAULT_PRECISION = 19; public static final int DEFAULT_SCALE = 2;
Not sure decimal(19,2) will work in all cases though.