We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58b3eed commit 8e121a6Copy full SHA for 8e121a6
Orm/Xtensive.Orm.SqlServer/Sql.Drivers.SqlServer/InternalHelpers.cs
@@ -137,7 +137,7 @@ private static UInt128 FromSqlDecimalData(int[] a) =>
137
internal static decimal TruncateToNetDecimal(SqlDecimal sqlDecimal)
138
{
139
var inputData = sqlDecimal.Data;
140
- if (sqlDecimal.Scale is var scale && (scale > 28 || scale > 0 && inputData[3] != 0)) {
+ if (sqlDecimal.Scale is var scale && (scale > 28 || inputData[3] != 0)) {
141
var u128 = FromSqlDecimalData(inputData);
142
143
for (; scale > 0 && u128 > Max96bitValue; --scale) {
0 commit comments