Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
1.5.8
-
None
-
JDK 1.8.0.25
Windows Server 2012
MariaDB 10.1.19
JPA 2.1.0
Description
I've recently encountered an issue using the getDouble method of the driver's resultset.
Instead of throwing an SQLException like expected in the documentation (https://github.com/MariaDB/mariadb-connector-j/blob/hotfix/FIX1.5.8/src/main/java/org/mariadb/jdbc/internal/queryresults/resultset/MariaSelectResultSet.java#L1398), it raises a NumberFormatException when passed an empty string.
The document seems to indicate that this kind of behavior should always throws an SQLException (which is catched in our app).
I'll join the anonymized stacktrace to this issue.