summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2008-12-16 01:06:32 +0000
committerBrian S. O'Neill <bronee@gmail.com>2008-12-16 01:06:32 +0000
commitf6394b632b619a91c12d60e0c3c1b4e18f61c653 (patch)
tree055f2cb1f9185475150683651edb6aa0f36a2f75 /src/main/java/com/amazon/carbonado/repo
parent8ad38ab09133b099f6a0b01e6e3df28e07b90de9 (diff)
Fix for logging statements with more than 10 parameters.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/jdbc/LoggingPreparedStatement.java1
1 files changed, 1 insertions, 0 deletions
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);