[CONJ-446] ResultSet.getBigDecimal throwns NumberFormatException when value is an empty string Created: 2017-03-17  Updated: 2017-03-30  Resolved: 2017-03-30

Status: Closed
Project: MariaDB Connector/J
Component/s: JDBC 4.2 compatibility
Affects Version/s: 1.5.8
Fix Version/s: 2.0.0-RC, 1.6.0

Type: Bug Priority: Major
Reporter: Gabor Csertan Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None
Environment:

Manjaro Linux
MariaDB 10.1.20



 Description   

When the result set contains an empty string and I try to retrieve it as a BigDecimal with getBigDecimal, a NumberFormatException is thrown. MySQL connector in this case simply returns null.


Generated at Thu Feb 08 03:15:43 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.