Skip to content

Commit 99e19ba

Browse files
author
anas-srikou
authored
Merge pull request #46 from dreamfactorysoftware/DP-553
Dp 553: Decimal type conversion issue
2 parents 5f7705f + aa58abd commit 99e19ba

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"minimum-stability": "dev",
3232
"prefer-stable": true,
3333
"require": {
34-
"dreamfactory/df-core": "~0.24",
35-
"dreamfactory/df-graphql": "~0.3"
34+
"dreamfactory/df-core": "~0.25",
35+
"dreamfactory/df-graphql": "~0.4"
3636
},
3737
"require-dev": {
3838
"phpunit/phpunit": "@stable"

src/Components/Schema.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2140,6 +2140,8 @@ public function typecastToNative($value, $field_info, $allow_null = true)
21402140
break;
21412141

21422142
case DbSimpleTypes::TYPE_DECIMAL:
2143+
$value = sprintf('%f', floatval($value));
2144+
break;
21432145
case DbSimpleTypes::TYPE_DOUBLE:
21442146
case DbSimpleTypes::TYPE_FLOAT:
21452147
$value = floatval($value);

0 commit comments

Comments
 (0)