ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Igor Sapego (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-4144) ODBC with php PDO: data of Time type cannot be retrieved correctly
Date Tue, 01 Nov 2016 09:57:58 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-4144?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15624974#comment-15624974
] 

Igor Sapego commented on IGNITE-4144:
-------------------------------------

Can't fix while Time type support is not implemented in binary protocol.

> ODBC with php PDO: data of Time type cannot be retrieved correctly
> ------------------------------------------------------------------
>
>                 Key: IGNITE-4144
>                 URL: https://issues.apache.org/jira/browse/IGNITE-4144
>             Project: Ignite
>          Issue Type: Bug
>          Components: odbc
>    Affects Versions: 1.6
>            Reporter: Ksenia Rybakova
>            Assignee: Igor Sapego
>             Fix For: 1.8
>
>
> Setup:
> Windows 10
> php7.0 + php PDO
> Ignite ODBC drivers is installed and DSN is configured
> Cache stores {{AllTypes}} objects, one of the field of this object is {{Time timeCol}}
that stores current time. When we retrieve this field using php pdo
> {noformat}
> $dbh = new PDO('odbc:Apache Ignite DSN');
> $result = $dbh->query('SELECT timeCol from "AllTypes".AllTypes');
> print_r($result->fetch(PDO::FETCH_ASSOC));
> {noformat}
> we get 
> {noformat}
> Array
> (
>     [TIME] => 1970-01-01
> )
> {noformat}
> instead of correct hh:mm:ss value



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

Mime
View raw message