You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2017/07/10 07:08:08 UTC

[jira] [Updated] (IGNITE-4144) ODBC with php PDO: data of Time type cannot be retrieved correctly

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

Vladimir Ozerov updated IGNITE-4144:
------------------------------------
    Fix Version/s:     (was: 2.1)
                   2.2

> 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
>             Fix For: 2.2
>
>
> 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.4.14#64029)