db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1443) DataTypeDescriptor.isBinaryType() return false for Types.BLOB
Date Thu, 20 Jul 2006 09:24:14 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1443?page=all ]

Knut Anders Hatlen updated DERBY-1443:
--------------------------------------

    Attachment: javadoc.diff

Hi Steve,

I don't know what issue you were running into, but changing isBinaryType() to return true
for BLOB is not the correct solution. The attached patch adds javadoc comments to isBinaryType()
and isCharacterType() clarifying why they don't return true for Types.BLOB and Types.CLOB.
I have committed the patch with revision 423827.

Here's the added javadoc for isBinaryType():

private static boolean isBinaryType(int jdbcType)

    Check whether a JDBC type is compatible with the Java type byte[].

    Note: BLOB is not compatible with byte[]. See tables B-4, B-5 and B-6 in the JDBC 3.0
Specification.

    Parameters:
        jdbcType - a JDBC type 
    Returns:
        true iff jdbcType is compatible with byte[]
    See Also:
        Types

> DataTypeDescriptor.isBinaryType() return false for Types.BLOB
> -------------------------------------------------------------
>
>                 Key: DERBY-1443
>                 URL: http://issues.apache.org/jira/browse/DERBY-1443
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions: 10.1.2.1, 10.1.2.2, 10.1.2.3, 10.1.2.4, 10.1.2.5
>            Reporter: Steve Taylor
>            Priority: Minor
>         Attachments: derby-ds.xml, derby-persistence-service.xml, javadoc.diff
>
>
> DataTypeDescriptor.isBinaryType() return false for Types.BLOB.
> Surely BLOB is a binary type and so method should return true?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message