Treat BIT if reported by ResultSetMetaData like BOOLEAN

This commit is contained in:
Christian Beikov 2021-09-01 20:58:13 +02:00
parent c9a526999a
commit 59fbdb9039
1 changed files with 3 additions and 1 deletions

View File

@ -44,7 +44,9 @@ public class JdbcTypeDescriptorBaseline {
}
public static void prime(BaselineTarget target) {
target.addDescriptor( BooleanTypeDescriptor .INSTANCE );
target.addDescriptor( BooleanTypeDescriptor.INSTANCE );
// ResultSetMetaData might report BIT on some DBs, so we need to register the boolean type descriptor for that code
target.addDescriptor( Types.BIT, BooleanTypeDescriptor.INSTANCE );
target.addDescriptor( BigIntTypeDescriptor.INSTANCE );
target.addDescriptor( DecimalTypeDescriptor.INSTANCE );
target.addDescriptor( DoubleTypeDescriptor.INSTANCE );