[CONJ-399] resultSet getLong() for BIGINT column fails if value is Long.MIN_VALUE Created: 2016-12-07  Updated: 2016-12-14  Resolved: 2016-12-12

Status: Closed
Project: MariaDB Connector/J
Component/s: Other
Affects Version/s: 1.5.5
Fix Version/s: 1.5.6

Type: Bug Priority: Major
Reporter: Matthew Assignee: Diego Dupin
Resolution: Fixed Votes: 0
Labels: None


 Description   

Affects latest release 1.5.5, problem does not seem to occur in 1.5.4

Repro Steps:
Column is defined as BIGINT
insert row where column has Long.MIN_VALUE value
Select all rows, call resultSet.getLong(column number) for BIGINT column

Expected:
long value equal to Long.MIN_VALUE to be returned

Actual:
java.sql.SQLException: Out of range value for column 'mybigintcol' : value -9223372036854775808 is not in Long range



 Comments   
Comment by Diego Dupin [ 2016-12-12 ]

corrected in commit https://github.com/mariadb/mariadb-connector-j/commit/a52646d2420017410b86abf6ad38147d20fb3bc9

will be in release 1.5.6 (during the week)

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