Faulty DATETIME
ticksSinceMidnight
overflow check
#2124
Labels
Under Investigation
Used for issues under investigation
DATETIME
ticksSinceMidnight
overflow check
#2124
Driver version
4ff4e7e
Problem description
The
Integer.MAX_VALUE < ticksSinceMidnight
check here is faulty:mssql-jdbc/src/main/java/com/microsoft/sqlserver/jdbc/dtv.java
Line 3592 in 4ff4e7e
ticksSinceMidnight
is anint
, so it cannot be> Integer.MAX_VALUE
. Maybe the solution here is to changeticksSinceMidnight
tolong
(and adjust the calculation from* 10
to* 10L
to avoid overflow there).I am not familiar with this code though and am not planning to submit a pull request.
The text was updated successfully, but these errors were encountered: