SQL Server: remove unchecked casting of int to byte for Precision/Scale #30111
Labels
area-sqlserver
area-type-mapping
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
type-bug
Milestone
In various places, we do an unchecked cast of precision/scale to byte when setting them on the SqlParameter (e.g. here). This could make an out-of-range value accidentally become in-range, yielding wrong results instead of an error. We should probably just do a checked cast, in which case the cast would fail for out-of-range values.
The text was updated successfully, but these errors were encountered: