Closed towr closed 10 years ago
thanks for the patch. In which version of cassandra have you tested it?
I've tested it with Cassandra 2.0.7 (CQL 3.1.1)
Thank you for the patch, it works here :)
cqlsh.mydb > SELECT published_at FROM table LIMIT 1;
published_at
-----------------
2014-05-30 17:00:00+0200
Without the patch :
$ php cassandra.php
Array
(
[published_at] => FM� �
)
With the patch :
$ php cassandra.php
Array
(
[published_at] => 1401462000000
)
$ cat cassandra.php
$db_handle = new PDO("cassandra:host=localhost;port=9160;dbname=mydb");
$stmt = $db_handle->query('SELECT published_at FROM table LIMIT 1');
print_r($stmt->fetch(PDO::FETCH_ASSOC));
Both on cassandra 2.0.7
Can you please merge it ?
What would happen on 32bits PHP version?
Thanks for the patch. I am merging it to an untested branch called 2.0_experimental. We are currently using cassandra at the 1.2.x and we plan to migrate to the 2.0.9 quite soon. We will fix regressions and support new features then.
TimestampType was not considered in the function pdo_cassandra_get_cassandra_type