Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Sep 3, 2024
1 parent 592b709 commit 93ba769
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Database/Helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ public static function normalizeRow(
$row[$key] = is_float($tmp = $value * 1) ? $value : $tmp;

} elseif ($type === IStructure::FIELD_FLOAT || $type === IStructure::FIELD_DECIMAL) {
dump($value);
if (is_string($value) && str_starts_with($value, '.')) {
$value = '0' . $value;
}
Expand Down
1 change: 1 addition & 0 deletions tests/Database/ResultSet.normalizeRow.sqlsrv.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Assert::equal([
'xml' => '',
], (array) $res->fetch());

throw new \Exception;
Assert::same([
'bigint' => null,
'binary_3' => null,
Expand Down

0 comments on commit 93ba769

Please sign in to comment.