-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix support for integer values in float/decimal type columns (#2205)
## Why make this change? - Closes #1629 - Unable to cast object of type 'HotChocolate.Language.IntValueNode' to type 'HotChocolate.Language.FloatValueNode', when using Integer values for float/decimal/single column types ## What is this change? - using `float.Parse()` and `decimal.Parse()` which automatically takes care of int values. ## How was this tested? - Added new test data points in the existing tests for insertion/updation of float/decimal/single type columns with Integer values ## Sample Request(s) ### Before: ![image](https://github.com/Azure/data-api-builder/assets/102276754/4d08254e-2fe0-458a-b0fc-9974c2e66caa) ![image](https://github.com/Azure/data-api-builder/assets/102276754/288c05aa-6f65-456f-9d81-29a71e5c6606) ### After: ![image](https://github.com/Azure/data-api-builder/assets/102276754/36da5645-8f51-45e2-9b46-bfa29c8802e1) ![image](https://github.com/Azure/data-api-builder/assets/102276754/15f9cd93-9f26-4b64-85d7-c79e2f1ad051) --------- Co-authored-by: Aniruddh Munde <[email protected]>
- Loading branch information
1 parent
0e4696d
commit df426a4
Showing
2 changed files
with
21 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters