[#2905] [#3940] Ensure that inline variables don't interfere with named variables when using batch

This commit is contained in:
Lukas Eder 2015-02-18 13:16:07 +01:00
parent a10a413383
commit d48960d80c

View File

@ -89,7 +89,7 @@ class BatchSingle implements BatchBindStep {
this.nameToIndexMapping = new LinkedHashMap<String, List<Integer>>();
int i = 0;
for (Entry<String, Param<?>> entry : query.getParams().entrySet()) {
for (Entry<String, Param<?>> entry : new DefaultDSLContext(configuration).extractParams0(query, false).entrySet()) {
List<Integer> list = nameToIndexMapping.get(entry.getKey());
if (list == null) {