Commit df426a4
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:


### After:


---------
Co-authored-by: Aniruddh Munde <anmunde@microsoft.com>1 parent 0e4696d commit df426a4
File tree
2 files changed
+21
-3
lines changed- src
- Core/Services
- Service.Tests/SqlTests/GraphQLSupportedTypesTests
2 files changed
+21
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
321 | | - | |
322 | | - | |
323 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
328 | 329 | | |
329 | 330 | | |
330 | 331 | | |
| |||
413 | 414 | | |
414 | 415 | | |
415 | 416 | | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
416 | 420 | | |
| 421 | + | |
| 422 | + | |
417 | 423 | | |
| 424 | + | |
| 425 | + | |
418 | 426 | | |
419 | 427 | | |
420 | 428 | | |
| |||
464 | 472 | | |
465 | 473 | | |
466 | 474 | | |
| 475 | + | |
467 | 476 | | |
468 | 477 | | |
469 | 478 | | |
470 | 479 | | |
| 480 | + | |
471 | 481 | | |
472 | 482 | | |
473 | 483 | | |
| 484 | + | |
474 | 485 | | |
475 | 486 | | |
476 | 487 | | |
| |||
512 | 523 | | |
513 | 524 | | |
514 | 525 | | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
515 | 529 | | |
| 530 | + | |
| 531 | + | |
516 | 532 | | |
| 533 | + | |
| 534 | + | |
517 | 535 | | |
518 | 536 | | |
519 | 537 | | |
| |||
0 commit comments