Skip to content

Commit 5e0b1cf

Browse files
authored
Fix incorrect log message params for getBigInteger (#314)
1 parent 766f6cd commit 5e0b1cf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/com/mysql/cj/LocalizedErrorMessages.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ ReplicationGroupManager.0=Unable to register replication host management bean wi
444444
ResultSet.Retrieved__1=Retrieved
445445
ResultSet.Bad_format_for_BigDecimal=Bad format for BigDecimal ''{0}'' in column {1}.
446446
ResultSet.Bad_format_for_BigInteger=Bad format for BigInteger ''{0}'' in column {1}.
447-
ResultSet.Column_Index_out_of_range_low=Column Index out of range, {0} < 1.
447+
ResultSet.Column_Index_out_of_range_low=Column Index out of range, {0} < {1}.
448448
ResultSet.Column_Index_out_of_range_high=Column Index out of range, {0} > {1}.
449449
ResultSet.Value_is_out_of_range=Value ''{0}'' is out of range [{1}, {2}].
450450
ResultSet.Positioned_Update_not_supported=Positioned Update not supported.

src/main/user-impl/java/com/mysql/cj/jdbc/result/ResultSetImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ public BigInteger getBigInteger(int columnIndex) throws SQLException {
841841
return new BigInteger(stringVal);
842842
} catch (NumberFormatException nfe) {
843843
throw SQLError.createSQLException(
844-
Messages.getString("ResultSet.Bad_format_for_BigInteger", new Object[] { Integer.valueOf(columnIndex), stringVal }),
844+
Messages.getString("ResultSet.Bad_format_for_BigInteger", new Object[] { stringVal, Integer.valueOf(columnIndex) }),
845845
MysqlErrorNumbers.SQL_STATE_ILLEGAL_ARGUMENT, getExceptionInterceptor());
846846
}
847847
}

0 commit comments

Comments
 (0)