Ksenia Rybakova created IGNITE-4144:
---------------------------------------
Summary: Ignite 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
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)