From f6394b632b619a91c12d60e0c3c1b4e18f61c653 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 16 Dec 2008 01:06:32 +0000 Subject: Fix for logging statements with more than 10 parameters. --- .../java/com/amazon/carbonado/repo/jdbc/LoggingPreparedStatement.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/main/java/com/amazon/carbonado/repo/jdbc') diff --git a/src/main/java/com/amazon/carbonado/repo/jdbc/LoggingPreparedStatement.java b/src/main/java/com/amazon/carbonado/repo/jdbc/LoggingPreparedStatement.java index 4d57aac..0b75472 100644 --- a/src/main/java/com/amazon/carbonado/repo/jdbc/LoggingPreparedStatement.java +++ b/src/main/java/com/amazon/carbonado/repo/jdbc/LoggingPreparedStatement.java @@ -436,6 +436,7 @@ class LoggingPreparedStatement extends LoggingStatement implements PreparedState } else if (parameterIndex + 1 >= params.length) { Object[] newParams = new Object[Math.max(parameterIndex + 1, params.length * 2)]; System.arraycopy(params, 0, newParams, 0, params.length); + mParams = params = newParams; } params[parameterIndex] = value; mSetParams = mSetParams.setBit(parameterIndex); -- cgit v1.2.3