From 355922e53e9dd6eb0b2dd702953c640b27c2b1c9 Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Thu, 24 Dec 2020 18:55:50 -0500 Subject: [PATCH] Fix ResultSet.getLong() throws com.mysql.cj.exceptions.NumberOutOfRange: Invalid integer format for value '4294967295' --- .../java/com/mysql/cj/protocol/a/MysqlTextValueDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/protocol-impl/java/com/mysql/cj/protocol/a/MysqlTextValueDecoder.java b/src/main/protocol-impl/java/com/mysql/cj/protocol/a/MysqlTextValueDecoder.java index 10f177f4e..afa59559d 100644 --- a/src/main/protocol-impl/java/com/mysql/cj/protocol/a/MysqlTextValueDecoder.java +++ b/src/main/protocol-impl/java/com/mysql/cj/protocol/a/MysqlTextValueDecoder.java @@ -102,7 +102,7 @@ } public T decodeInt4(byte[] bytes, int offset, int length, ValueFactory vf) { - return vf.createFromLong(getInt(bytes, offset, offset + length)); + return vf.createFromLong(getLong(bytes, offset, offset + length)); } public T decodeUInt8(byte[] bytes, int offset, int length, ValueFactory vf) {