Repository navigation
Commit adda208
committed
GH-745: fix money-range floor + Copilot review findings
- Lower bound of the redeclare range is MONEY_MIN, not SMALLMONEY_MIN: a value like Decimal('-300000') is in the MONEY range but below SMALLMONEY_MIN and was left as SQL_VARCHAR, reintroducing the overflow on negative money-range values.
- Test: cover the negative-money-below-SMALLMONEY_MIN edge and the below-MONEY_MIN boundary; clarify the _ParamInfo docstring.
(Copilot columnSize concern is not reachable for the money range: money has <=4 decimal places so the string length is always <38 and the declared precision is never < the scale.)1 parent 93ef1bd commit adda208
2 files changed
Lines changed: 31 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2390 | 2390 | | |
2391 | 2391 | | |
2392 | 2392 | | |
2393 | | - | |
| 2393 | + | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
2394 | 2400 | | |
2395 | 2401 | | |
2396 | 2402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
530 | 530 | | |
531 | 531 | | |
532 | 532 | | |
533 | | - | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
534 | 542 | | |
535 | 543 | | |
536 | 544 | | |
| |||
570 | 578 | | |
571 | 579 | | |
572 | 580 | | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
573 | 596 | | |
574 | 597 | | |
575 | 598 | | |
| |||
0 commit comments