1
0
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:
David Grudl
2018-04-21 15:26:53 +02:00
parent bea524a621
commit 76cff5c10a

View File

@@ -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);