You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide the Operating System the client application is running on.
JAVA/JVM version
1.8.0.272
Problem description
When trying to convert a column read from a recordset using getLong() and the column being converted is a string date-representation the following (expected) error message is shown:
The conversion from datetime to BIGINT is unsupported.
However the SQLState is reported as 'null'
Expected behavior
When the exception is thrown the SQLState '22005' was expected.
Actual behavior
SQLState is reported as 'null'
When using the jtds driver the SQLState is reported correctly.
The text was updated successfully, but these errors were encountered:
Thanks for letting us know. I'll need to attempt a repro to confirm this. I'll come back to this later and let you know as I'm in the middle of performing release tasks.
There's still more places in the driver where we are throwing null for the SQL state code. I'm marking this as an enhancement as we'll need to eventually resolve those as well.
Driver version
12.2
SQL Server version
SQL Server 2017 - 14.0.2042.3 (x64)
Client Operating System
Provide the Operating System the client application is running on.
JAVA/JVM version
1.8.0.272
Problem description
When trying to convert a column read from a recordset using getLong() and the column being converted is a string date-representation the following (expected) error message is shown:
The conversion from datetime to BIGINT is unsupported.
However the SQLState is reported as 'null'
Expected behavior
When the exception is thrown the SQLState '22005' was expected.
Actual behavior
SQLState is reported as 'null'
When using the jtds driver the SQLState is reported correctly.
The text was updated successfully, but these errors were encountered: