return value;
return resultSet.wasNull() ? null : value;
    protected Object getObjectFromResultSet(ResultSet resultSet, String columnName, Table table) throws SQLException    {        Column column = (table == null ? null : table.findColumn(columnName, isDelimitedIdentifierModeOn()));        Object value  = null;        if (column != null)        {            int originalJdbcType = column.getTypeCode();            int targetJdbcType   = getPlatformInfo().getTargetJdbcType(originalJdbcType);            int jdbcType         = originalJdbcType;            // in general we're trying to retrieve the value using the original type            // but sometimes we also need the target type:            if ((originalJdbcType == Types.BLOB) && (targetJdbcType != Types.BLOB))            {                // we should not use the Blob interface if the database doesn't map to this type                 jdbcType = targetJdbcType;            }            if ((originalJdbcType == Types.CLOB) && (targetJdbcType != Types.CLOB))            {                // we should not use the Clob interface if the database doesn't map to this type                 jdbcType = targetJdbcType;            }            value = extractColumnValue(resultSet, columnName, jdbcType);        }        else        {            value = resultSet.getObject(columnName);        }        return value;    }