mirror of
https://github.com/dg/dibi.git
synced 2025-08-06 06:07:39 +02:00
Result: calls unescapeBinary() only for strings [Closes #283]
This commit is contained in:
@@ -501,7 +501,7 @@ class Result implements IDataSource
|
||||
$row[$key]->invert = (int) (bool) $m[1];
|
||||
|
||||
} elseif ($type === Type::BINARY) {
|
||||
$row[$key] = $this->getResultDriver()->unescapeBinary($value);
|
||||
$row[$key] = is_string($value) ? $this->getResultDriver()->unescapeBinary($value) : $value;
|
||||
|
||||
} elseif ($type === Type::JSON) {
|
||||
$row[$key] = json_decode($value);
|
||||
|
Reference in New Issue
Block a user