MCPcopy Create free account
hub / github.com/jOOQ/jOOQ / checkBindValues

Method checkBindValues

jOOQ/src/main/java/org/jooq/impl/BatchSingle.java:200–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 });

Callers 2

executeMethod · 0.95
onNext0Method · 0.80

Calls 3

sizeMethod · 0.65
getMethod · 0.65
infoMethod · 0.65

Tested by

no test coverage detected