| 198 | } |
| 199 | |
| 200 | final void checkBindValues() { |
| 201 | |
| 202 | // [#4071] Help users debug cases where bind value counts don't match the expected number |
| 203 | // [#5362] Don't do this for plain SQL queries |
| 204 | if (expectedBindValues > 0) |
| 205 | for (int i = 0; i < allBindValues.size(); i++) |
| 206 | if (allBindValues.get(i).length != expectedBindValues) |
| 207 | log.info("Bind value count", "Batch bind value set " + i + " has " + allBindValues.get(i).length + " values when " + expectedBindValues + " values were expected"); |
| 208 | } |
| 209 | |
| 210 | private final Object executePrepared(boolean large) { |
| 211 | DefaultExecuteContext ctx = new DefaultExecuteContext(configuration, BatchMode.SINGLE, new Query[] { query }); |