for (int i = 0; i < len; i++) {
Object value = bindings[i].getValue();
ExtendedType extendedType = value != null
? getAdapter().getExtendedTypes().getRegisteredType(value.getClass())
: getAdapter().getExtendedTypes().getDefaultType();
<BUG>ParameterBinding binding = new ParameterBinding(extendedType);
binding.setType(bindings[i].getJdbcType());</BUG>
binding.setStatementPosition(i + 1);
<BUG>binding.setValue(value);
dataNode.getAdapter().bindParameter(preparedStatement, binding);</BUG>
}

for (int i = 0; i < len; i++) {
Object value = bindings[i].getValue();
ExtendedType extendedType = value != null
? getAdapter().getExtendedTypes().getRegisteredType(value.getClass())
: getAdapter().getExtendedTypes().getDefaultType();
ParameterBinding binding = new ParameterBinding();
binding.setType(bindings[i].getJdbcType());
binding.setStatementPosition(i + 1);
binding.setValue(value);
binding.setExtendedType(extendedType);
dataNode.getAdapter().bindParameter(preparedStatement, binding);
