Skip to content

Commit

Permalink
I forgot how switches work ...
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffery-Wasty committed May 8, 2024
1 parent 8d946b6 commit d4954b6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2672,7 +2672,8 @@ private void writeSqlVariant(TDSWriter tdsWriter, Object colValue, ResultSet sou
tdsWriter.writeReal(Float.valueOf(colValue.toString()));
break;

case MONEY8, MONEY4:
case MONEY4:
case MONEY8:
// For decimalN we right TDSWriter.BIGDECIMAL_MAX_LENGTH as maximum length = 17
// 17 + 2 for basetype and probBytes + 2 for precision and length = 21 the length of data in header
writeBulkCopySqlVariantHeader(21, TDSType.DECIMALN.byteValue(), (byte) 2, tdsWriter);
Expand Down

0 comments on commit d4954b6

Please sign in to comment.