You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by "Samarth Jain (JIRA)" <ji...@apache.org> on 2014/11/05 02:06:34 UTC

[jira] [Updated] (PHOENIX-1394) getColumnDisplaySize() method returns incorrect value for varchar columns

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

Samarth Jain updated PHOENIX-1394:
----------------------------------
    Attachment: PHOENIX-1394.patch

Patch to correctly show the column display size with max length of the column when available. For cases when we don't know the max length, it returns the default size of 40.

[~jamestaylor] - please review.

> getColumnDisplaySize() method returns incorrect value for varchar columns
> -------------------------------------------------------------------------
>
>                 Key: PHOENIX-1394
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1394
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.1
>         Environment: windows 7
>            Reporter: Sergio Lob
>            Assignee: Samarth Jain
>         Attachments: PHOENIX-1394.patch
>
>
> The ResultSetMetaData.getColumnDisplaySize() method returns incorrect value for varchar columns. For example: for a varchar(20) column, getColumnDisplaySize() incorrectly returns value of 10 instead of 20. This contrasts with a char(20) column, for which getColumnDisplaySize() returns the correct value of 20.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)