From 0aeb168b35932fd16d24515242f85a4376eb3b72 Mon Sep 17 00:00:00 2001 From: Terry Chow Date: Wed, 17 May 2023 15:02:41 -0700 Subject: [PATCH] Removed useless check --- src/main/java/com/microsoft/sqlserver/jdbc/dtv.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/sqlserver/jdbc/dtv.java b/src/main/java/com/microsoft/sqlserver/jdbc/dtv.java index c2e2e6907..7fd3ba441 100644 --- a/src/main/java/com/microsoft/sqlserver/jdbc/dtv.java +++ b/src/main/java/com/microsoft/sqlserver/jdbc/dtv.java @@ -3589,7 +3589,7 @@ Object denormalizedValue(byte[] decryptedValue, JDBCType jdbcType, TypeInfo base case DATETIME: int ticksSinceMidnight = (Util.readInt(decryptedValue, 4) * 10 + 1) / 3; - if (8 != decryptedValue.length || Integer.MAX_VALUE < ticksSinceMidnight) { + if (8 != decryptedValue.length) { MessageFormat form = new MessageFormat(SQLServerException.getErrString("R_NormalizationErrorAE")); throw new SQLServerException(form.format(new Object[] {baseSSType}), null, 0, null); }