[ 
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)

Reply via email to