Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangyushawn committed Mar 28, 2017
1 parent 56da27f commit 3e9b6e1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ public synchronized void addRow(Object... values) throws SQLServerException {
isColumnMetadataUpdated = true;
}

// precision equal: the maximum number of digits in integer part + the maximum scale
int numberOfDigitsIntegerPart = precision - bd.scale();
if (numberOfDigitsIntegerPart > currentColumnMetadata.numberOfDigitsIntegerPart) {
currentColumnMetadata.numberOfDigitsIntegerPart = numberOfDigitsIntegerPart;
Expand Down

0 comments on commit 3e9b6e1

Please sign in to comment.