db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-2425) ResultSetMetaData.getColumnDisplaySize() returns a negative value for BLOB columns for client
Date Wed, 25 Apr 2007 16:47:16 GMT

     [ https://issues.apache.org/jira/browse/DERBY-2425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kathey Marsden updated DERBY-2425:
----------------------------------

    Derby Info:   (was: [Patch Available])

committed this patch. 
I also enabled the test for the issue in ResultSetMiscTest.java




> ResultSetMetaData.getColumnDisplaySize() returns a negative value for BLOB columns for
client 
> ----------------------------------------------------------------------------------------------
>
>                 Key: DERBY-2425
>                 URL: https://issues.apache.org/jira/browse/DERBY-2425
>             Project: Derby
>          Issue Type: Bug
>          Components: Network Client
>    Affects Versions: 10.3.0.0
>            Reporter: Kathey Marsden
>         Assigned To: Mayuresh Nirhali
>            Priority: Minor
>             Fix For: 10.3.0.0
>
>         Attachments: derby2425.diff
>
>
> Client getColumnDisplaySize on a BLOB(1G) column returns 
> -2147483648
> embedded returns  2147483647
> In client, the issue is that for binary values it multiplies the length * 2 and this
overflows the int range.
> return (int) (2 * sqlLength_[column - 1]); 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message