simple fix for colon use in SQL select statement
This commit is contained in:
parent
d35071b910
commit
81a0bd8bc9
1 changed files with 13 additions and 11 deletions
|
@ -65,6 +65,7 @@ public class MixedParameterSql {
|
||||||
}
|
}
|
||||||
newSql.append(sql, searchIndex, nextColonIndex);
|
newSql.append(sql, searchIndex, nextColonIndex);
|
||||||
String paramName = sql.substring(nextColonIndex + 1, endOfNameIndex);
|
String paramName = sql.substring(nextColonIndex + 1, endOfNameIndex);
|
||||||
|
if (!"".equals(paramName)) {
|
||||||
boolean secretParam = paramName.startsWith("secret");
|
boolean secretParam = paramName.startsWith("secret");
|
||||||
Object arg = nameToArg.get(paramName);
|
Object arg = nameToArg.get(paramName);
|
||||||
if (arg instanceof RewriteArg) {
|
if (arg instanceof RewriteArg) {
|
||||||
|
@ -79,6 +80,7 @@ public class MixedParameterSql {
|
||||||
}
|
}
|
||||||
argNamesList.add(paramName);
|
argNamesList.add(paramName);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
searchIndex = endOfNameIndex;
|
searchIndex = endOfNameIndex;
|
||||||
} else {
|
} else {
|
||||||
// The next parameter we found is a positional parameter ("?")
|
// The next parameter we found is a positional parameter ("?")
|
||||||
|
|
Loading…
Reference in a new issue