summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/amazon')
-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);