Description
For some reason all the columns I have in my database that are of type Bit(1) (I didn't check for other Bit sizes) are being fetch as empty strings, I don't know exactly what to look for in order to further investigate this, sorry about the lack of information but I'm open to collaborate to get more data if you give me some light.
In a script as simple as this I can reproduce the issue I'm facing:
<?php
require_once __DIR__ . '/vendor/autoload.php';
use Amp\Mysql\MysqlConfig;
use Amp\Mysql\MysqlConnectionPool;
$config = MysqlConfig::fromString(
"host=localhost user=oneticket password=oneticket db=oneticket"
);
$pool = new MysqlConnectionPool($config);
$statement = $pool->prepare("SELECT * FROM <my_table>");
$result = $statement->execute();
foreach ($result as $row) {
// $row is an associative-array of column values, e.g.: $row['column_name']
print_r($row);
}
The columns of type smallint works just as expected. Before, with PDO, all BIT columns would return as integers so this is currently a big problem for me.
Just to be clear I'm trying to use AMP MySQL as a PDO replacement for Eloquent (based on https://github.com/xpader/amphp-eloquent-mysql) and its been super positive so far, the only issue I have now is with this BIT column.