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

[jira] [Updated] (PHOENIX-1037) Implement getResultSetSqlType for UNSIGNED date/time types

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

Gabriel Reid updated PHOENIX-1037:
----------------------------------

    Attachment: PHOENIX-1037.patch

Patch to return standard java.sql.Types values for java.sql.Date/Time/Timestamp values.

> Implement getResultSetSqlType for UNSIGNED date/time types
> ----------------------------------------------------------
>
>                 Key: PHOENIX-1037
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-1037
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 4.0.0, 5.0.0
>            Reporter: James Taylor
>            Assignee: Gabriel Reid
>         Attachments: PHOENIX-1037.patch
>
>
> Implement getResultSetSqlType for UNSIGNED date/time types returning the regular Types int so that SQL clients display values correctly.
> For example:
> {code}
>      UNSIGNED_DATE("UNSIGNED_DATE", 19, Date.class, new UnsignedDateCodec()) {
>         @Override
>        public int getResultSetSqlType() {
>             return Types.DATE;
>         }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)