How can we solve a "maximum number of expressions in a list is 1000" when encountered while using batchUpdate with the use of ArrayDescriptor
?
ArrayDescriptor oracleCollection = ArrayDescriptor
.createDescriptor(oracleType, connection);
stmt = connection.prepareStatement(sql);
stmt.setFetchSize(FETCH_SIZE);
ARRAY jdbcArray = new ARRAY(oracleCollection, connection, array);
stmt.setObject(1, jdbcArray);
result = stmt.executeQuery();