I just stumbled on this buried treasure in {{OracleDialect}}:
{code:java} case Types.DECIMAL: if ( scale == 0 ) { switch ( precision ) { case 1: return jdbcTypeRegistry.getDescriptor( Types.BOOLEAN );{code}
Of course, {{precision==1}} means one _decimal_ digit of precision, not one bit.
UPDATE: So, OK, this is for reverse engineering I guess, but it still seems pretty wrong to assume that every {{NUMBER(1,0)}} is a boolean value and not a one- digit decimal. |
|