1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +02:00

Result::fetchAssoc() DateTime in key is converted to string [Closes #359]

This commit is contained in:
David Grudl
2020-03-03 17:18:37 +01:00
parent 9651835f5b
commit e137dfa28b

View File

@@ -282,7 +282,7 @@ class Result implements IDataSource
}
} elseif ($as !== '|') { // associative-array node
$x = &$x[$row->$as];
$x = &$x[(string) $row->$as];
}
}
@@ -350,7 +350,7 @@ class Result implements IDataSource
}
} else { // associative-array node
$x = &$x[$row->$as];
$x = &$x[(string) $row->$as];
}
}
@@ -452,6 +452,7 @@ class Result implements IDataSource
continue;
}
$value = $row[$key];
if ($type === Type::TEXT) {
$row[$key] = (string) $value;